Sha256: b6117c615762cbf6e9c3cdb1c1ab95fad2a3d24e629fc6e812edc632b697a4b9

Contents?: true

Size: 608 Bytes

Versions: 8

Compression:

Stored size: 608 Bytes

Contents

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

    getChildContext: ->
        context = {}
        context.recordDisplay = if @props.editOnly or @state.isEditing then 'edit' else 'display'
        if @props.readonly?
            context.readonly = @props.readonly
        if @props.writable?
            context.writable = @props.writable
        context

    setModelUrl: (model) ->
        @props.screen.model = model

}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lanes-0.7.0 client/lanes/react/mixins/RelayEditingState.coffee
lanes-0.6.1 client/lanes/react/mixins/RelayEditingState.coffee
lanes-0.6.0 client/lanes/react/mixins/RelayEditingState.coffee
lanes-0.5.6 client/lanes/react/mixins/RelayEditingState.coffee
lanes-0.5.5 client/lanes/react/mixins/RelayEditingState.coffee
lanes-0.5.0 client/lanes/react/mixins/RelayEditingState.coffee
lanes-0.4.0 client/lanes/react/mixins/RelayEditingState.coffee
lanes-0.3.0 client/lanes/react/mixins/RelayEditingState.coffee