Sha256: 6df44225a8c3e384240effaf1eb08de437fb2ae1805b4068c0b6a6fae874827c
Contents?: true
Size: 932 Bytes
Versions: 2
Compression:
Stored size: 932 Bytes
Contents
_.component('Luca.fields.ButtonField').extends('Luca.core.Field').with readOnly: true events: "click input" : "click_handler" hooks:[ "button:click" ] className: 'luca-ui-field luca-ui-button-field' template: 'fields/button_field' click_handler: (e)-> me = my = $( e.currentTarget ) @trigger "button:click" initialize: (@options={})-> _.extend @options _.bindAll @, "click_handler" Luca.core.Field::initialize.apply @, arguments @template = "fields/button_field_link" if @icon_class?.length afterInitialize: ()-> @input_id ||= _.uniqueId('button') @input_name ||= @name ||= @input_id @input_value ||= @label ||= @text @input_type ||= "button" @input_class ||= @class @icon_class ||= "" @icon_class = "icon-#{ @icon_class }" if @icon_class.length and !@icon_class.match(/^icon-/) @icon_class += " icon-white" if @white setValue: ()-> true
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
luca-0.8.599 | src/components/fields/button_field.coffee |
luca-0.8.59 | src/components/fields/button_field.coffee |