-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e53f43
commit 326d768
Showing
5 changed files
with
26 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"extends": "ta-webapp", | ||
"env": { | ||
"node": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
import React, {Component} from 'react'; | ||
import {Checkbox} from 'stardust'; | ||
import {Button, Checkbox} from 'stardust'; | ||
|
||
export default class CheckboxCheckboxExample extends Component { | ||
toggle = () => { | ||
this.refs.checkbox.plugin('toggle'); | ||
}; | ||
|
||
handleChange(e) { | ||
console.log('it change'); | ||
console.log(e); | ||
} | ||
|
||
render() { | ||
return ( | ||
<Checkbox label='Make my profile visible'/> | ||
<div> | ||
<Button onClick={this.toggle}>Toggle it!</Button> | ||
<Checkbox label='Make my profile visible' ref='checkbox' onChange={this.handleChange}/> | ||
</div> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters