Sha256: 58e246a812dfb08e6beade07d90a66cbfd6ca3a124c68db915a294a00c131356

Contents?: true

Size: 624 Bytes

Versions: 19

Compression:

Stored size: 624 Bytes

Contents

Luca.components.FormButtonToolbar = Luca.components.Toolbar.extend
  className: 'luca-ui-form-toolbar form-actions'

  position: 'bottom'

  includeReset: false
  
  render: ()->
    $(@container).append(@el)

  initialize: (@options={})->
    Luca.components.Toolbar.prototype.initialize.apply @, arguments

    @components = [
      ctype: 'button_field'
      label: 'Submit'
      class: 'btn submit-button'
    ]

    if @includeReset
      @components.push
        ctype: 'button_field'
        label: 'Reset'
        class: 'btn reset-button'

Luca.register "form_button_toolbar", "Luca.components.FormButtonToolbar"

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
luca-0.8.3 src/components/form_button_toolbar.coffee
luca-0.8.2 src/components/form_button_toolbar.coffee
luca-0.8.06 src/components/form_button_toolbar.coffee
luca-0.8 src/components/form_button_toolbar.coffee
luca-0.7.92 src/components/form_button_toolbar.coffee
luca-0.7.91 src/components/form_button_toolbar.coffee
luca-0.7.9 src/components/form_button_toolbar.coffee
luca-0.7.8 src/components/form_button_toolbar.coffee
luca-0.7.7 src/components/form_button_toolbar.coffee
luca-0.7.6 src/components/form_button_toolbar.coffee
luca-0.7.5 src/components/form_button_toolbar.coffee
luca-0.7.4 src/components/form_button_toolbar.coffee
luca-0.7.3 src/components/form_button_toolbar.coffee
luca-0.7.2 src/components/form_button_toolbar.coffee
luca-0.7.0 src/components/form_button_toolbar.coffee
luca-0.6.9 src/components/form_button_toolbar.coffee
luca-0.6.8 src/components/form_button_toolbar.coffee
luca-0.6.7 src/components/form_button_toolbar.coffee
luca-0.6.6 src/components/form_button_toolbar.coffee