19 lines
588 B
CoffeeScript
19 lines
588 B
CoffeeScript
context = window
|
|
rest = window.JK.Rest()
|
|
logger = context.JK.logger
|
|
|
|
@InstrumentCheckBoxList = React.createClass({
|
|
|
|
mixins: [Reflux.listenTo(@InstrumentStore,"onInstrumentsChanged")]
|
|
|
|
getInitialState: () ->
|
|
{instruments: []}
|
|
|
|
onInstrumentsChanged: (instruments) ->
|
|
@setState({instruments: instruments})
|
|
|
|
render: () ->
|
|
`<div className="InstrumentCheckBoxList react-component">
|
|
<CheckBoxList objectName='instruments' onItemChanged={this.props.onItemChanged} sourceObjects={this.state.instruments} selectedObjects={this.props.selectedInstruments}/>
|
|
</div>`
|
|
}) |