Sha256: be31250a7dda9a00920fbd510854bc4f8fcf31cfec3c8dbfd56a1b708fb0beeb
Contents?: true
Size: 877 Bytes
Versions: 30
Compression:
Stored size: 877 Bytes
Contents
(function() { Luca.components.FormButtonToolbar = Luca.components.Toolbar.extend({ className: 'luca-ui-form-toolbar form-actions', position: 'bottom', includeReset: false, render: function() { return $(this.container).append(this.el); }, initialize: function(options) { this.options = options != null ? options : {}; Luca.components.Toolbar.prototype.initialize.apply(this, arguments); this.components = [ { ctype: 'button_field', label: 'Submit', "class": 'btn submit-button' } ]; if (this.includeReset) { return this.components.push({ ctype: 'button_field', label: 'Reset', "class": 'btn reset-button' }); } } }); Luca.register("form_button_toolbar", "Luca.components.FormButtonToolbar"); }).call(this);
Version data entries
30 entries across 30 versions & 1 rubygems