Sha256: 8af80f5046ca08d41f064c2f417327ec0f5fb8d9c04ba244f1f08dc267baed44
Contents?: true
Size: 848 Bytes
Versions: 2
Compression:
Stored size: 848 Bytes
Contents
class Skr.Components.PrintFormChooser extends Lanes.React.Component 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 renderValue: (value) -> value render: -> choices = @props.choices || @props.model.constructor.Templates value = @props.value or @props.model[@props.name] <LC.FieldWrapper {...@props} value={value}> <Lanes.Vendor.ReactWidgets.DropdownList data={choices} value={value} onChange={@onChange} /> </LC.FieldWrapper>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.3.0 | client/skr/components/PrintFormChooser.cjsx |
stockor-0.2 | client/skr/components/PrintFormChooser.cjsx |