Sha256: 3cb41c4d268bdd64b1814014ecf3219e0f711151b29921a5a6c21f4bac8ed938
Contents?: true
Size: 892 Bytes
Versions: 2
Compression:
Stored size: 892 Bytes
Contents
_.component('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 @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
luca-0.8.599 | src/components/fields/text_area_field.coffee |
luca-0.8.59 | src/components/fields/text_area_field.coffee |