Sha256: 76ace20410c1ed71a9e71c661cf78e3f4e9ba2429c52aa1853797b542b92cab7
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
class Skr.Components.GlAccountChooser extends Lanes.React.Component propTypes: model: Lanes.PropTypes.Model label: React.PropTypes.string name: React.PropTypes.string getDefaultProps: -> label: 'Account', name: 'gl_account' dataObjects: query: -> new Lanes.Models.Query({ syncOptions: @props.syncOptions, autoRetrieve: true src: Skr.Models.GlAccount.all, fields: [ {id:'id', visible: false} {id: 'number', fixedWidth: 130 } 'name', 'description' ] }) render: -> props = _.clone(@props) if props.finderField <LC.RecordFinder ref="finder" commands={@props.commands} query={@query} {...props} /> else <LC.SelectField queryModel={Skr.Models.GlAccount} choices={Skr.Models.GlAccount.all.models} labelField="combined_name" model={@props.model} {...props} />
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.4.0 | client/skr/components/GlAccountChooser.cjsx |
stockor-0.3.0 | client/skr/components/GlAccountChooser.cjsx |
stockor-0.2 | client/skr/components/GlAccountChooser.cjsx |