Sha256: f87c7cb2832e65e74497522da544ce3f07f24625a2fb8534835b04137980890c
Contents?: true
Size: 1.06 KB
Versions: 3
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' ]) bindEvents: -> model: "invalid-fields invalid-field:#{@getInvalidFieldName()}" render: -> className = _.classnames(className, @props.className, "lanes-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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.7.0 | client/lanes/components/shared/FormGroup.cjsx |
lanes-0.6.1 | client/lanes/components/shared/FormGroup.cjsx |
lanes-0.6.0 | client/lanes/components/shared/FormGroup.cjsx |