Sha256: 49865dc95292932e0f35b674e074ce836e510a45cb5f18b8582e494b2b8d99fb
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
class Skr.Components.PrintFormChooser extends Lanes.React.Component mixins: [ Lanes.Components.Form.FieldMixin ] propTypes: label: React.PropTypes.string.isRequired model: Lanes.PropTypes.Model.isRequired choices: React.PropTypes.array getDefaultProps: -> name: 'form' onChange: (val) -> if @props.onChange @props.onChange?(val, @props) else @props.model[@props.name] = val renderEdit: (props) -> choices = @props.choices || @props.model.constructor.Templates value = @props.value or @props.model[@props.name] <Lanes.Vendor.ReactWidgets.DropdownList data={choices} value={value} onChange={@onChange} />
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.5.0 | client/skr/components/PrintFormChooser.cjsx |
stockor-0.4.0 | client/skr/components/PrintFormChooser.cjsx |