Sha256: b382ffe2ae9c306eabd3cfb994567aa26549caa358afd54ea08f7a72b60a5703

Contents?: true

Size: 312 Bytes

Versions: 6

Compression:

Stored size: 312 Bytes

Contents

Lanes.React.Mixins.ReadEditingState = {
    contextTypes:
        recordDisplay:  React.PropTypes.oneOf(
            ['edit', 'display']
        )
        writable: React.PropTypes.bool
        readonly: React.PropTypes.bool

    isEditingRecord: ->
        @props.editOnly or @context.recordDisplay == 'edit'
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lanes-0.5.6 client/lanes/react/mixins/ReadEditingState.coffee
lanes-0.5.5 client/lanes/react/mixins/ReadEditingState.coffee
lanes-0.5.0 client/lanes/react/mixins/ReadEditingState.coffee
lanes-0.4.0 client/lanes/react/mixins/ReadEditingState.coffee
lanes-0.3.0 client/lanes/react/mixins/ReadEditingState.coffee
lanes-0.1.9.5 client/lanes/react/mixins/ReadEditingState.coffee