Sha256: b66713bad2cf12b6bc3ae1ecd95999f2a193db682744615d1d3d06327573778f
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
class Lanes.Components.FormGroup extends Lanes.React.Component mixins: [ Lanes.React.Mixins.ReadEditingState Lanes.React.Mixins.FieldErrors ] propTypes: align: React.PropTypes.oneOf([ 'right', 'left', 'center' ]) bindDataEvents: -> model: "invalid-fields invalid-field:#{@getInvalidFieldName()}" render: -> className = _.classnames(className, @props.className, "field" editing: @props.editing "align-#{@props.align}": @props.align display: false == @props.editing 'has-error': @isFieldValueInvalid() ) colProps = _.omit(@props, 'name', 'label', 'type', 'editing', 'display') valueClassNames = _.classnames('value', { "align-#{@props.align}": @props.align }) <BS.Col {...colProps} className={className}> <BS.FormGroup className={valueClassNames}> <BS.ControlLabel>{@props.label}</BS.ControlLabel> {@props.children} </BS.FormGroup> </BS.Col>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.5.6 | client/lanes/components/shared/FormGroup.cjsx |
lanes-0.5.5 | client/lanes/components/shared/FormGroup.cjsx |