jam-cloud/web/app/assets/javascripts/react-components/InstrumentCheckBoxList.js.j...

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>`
})