Sha256: ea2f9b192e6d5b9ca6688a7ddd34248c9d58ff96ad7baa33836d150ca0741590
Contents?: true
Size: 910 Bytes
Versions: 3
Compression:
Stored size: 910 Bytes
Contents
_.def('Luca.fields.TextAreaField').extends('Luca.core.Field').with events: "keydown input" : "keydown_handler" "blur input" : "blur_handler" "focus input" : "focus_handler" template: 'fields/text_area_field' height: "200px" width: "90%" initialize: (@options={})-> _.bindAll @, "keydown_handler" Luca.core.Field::initialize.apply @, arguments @input_id ||= _.uniqueId('field') @input_name ||= @name @label ||= @name @input_class ||= @class @input_value ||= "" @inputStyles ||= "height:#{ @height };width:#{ @width }" setValue: (value)-> $( @field() ).val(value) getValue: ()-> $( @field() ).val() field: ()-> @input = $("textarea##{ @input_id }", @el) keydown_handler: (e)-> me = my = $( e.currentTarget ) blur_handler: (e)-> me = my = $( e.currentTarget ) focus_handler: (e)-> me = my = $( e.currentTarget )
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
luca-0.9.7 | src/components/fields/text_area_field.coffee |
luca-0.9.65 | src/components/fields/text_area_field.coffee |
luca-0.9.6 | src/components/fields/text_area_field.coffee |