Sha256: e5cd254a28107ea1665b1eb3bde23e389c9ae1f5cb98153309c463ee21762339

Contents?: true

Size: 565 Bytes

Versions: 7

Compression:

Stored size: 565 Bytes

Contents

_.def('Luca.components.FormButtonToolbar').extends('Luca.components.Toolbar').with

  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'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
luca-0.9.65 src/components/form_button_toolbar.coffee
luca-0.9.6 src/components/form_button_toolbar.coffee
luca-0.9.42 src/components/form_button_toolbar.coffee
luca-0.9.4 src/components/form_button_toolbar.coffee
luca-0.9.2 src/components/form_button_toolbar.coffee
luca-0.9.1 src/components/form_button_toolbar.coffee
luca-0.9.0 src/components/form_button_toolbar.coffee