Constructor
new ToggleButton()
Create the ToggleButton.
Extends
- React.Component
Members
contextTypes :Object
The context types.
Type:
- Object
defaultProps :Object
The default properties.
Type:
- Object
pressedClass :String
The class to apply for a toggled/pressed button.
Type:
- String
propTypes :Object
The properties.
Type:
- Object
Methods
componentWillReceiveProps(nextProps)
Called if this component receives properties.
Parameters:
Name | Type | Description |
---|---|---|
nextProps |
Object | The received properties. |
onClick(evt)
Called on click
Parameters:
Name | Type | Description |
---|---|---|
evt |
ClickEvent | the clickeEvent |
render()
The render function.