Sha256: 51b435026f266f9a3313dd3e7fcec5f0efd8a84818801001cf12d9e13ae85fe4
Contents?: true
Size: 900 Bytes
Versions: 3
Compression:
Stored size: 900 Bytes
Contents
class Lanes.Components.Grid.RowEditor extends Lanes.Components.Grid.Editor template: 'grid/row-editor' move: (row)-> super pos = this.row.position() this.$el.css({ left: pos.left, top: pos.top, width: this.row.width() }) this.$('form').css({ height: this.row.height() }) inputs = this.form.children() for input, index in inputs column = Lanes.$(this.row[0].cells[index]) definition = this.grid.column_definitions[index] Lanes.$(input) .width(column.width()) .css("left", column.position().left) .val(this.model.get(definition.field)) this.form.find('.edit').first().focus() render: -> super for cell in this.row[0].cells this.form.append('<input class="edit">') this
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.1.0 | client/lanes/components/grid/RowEditor.coffee |
lanes-0.0.8 | client/lanes/components/grid/RowEditor.coffee |
lanes-0.0.5 | client/lanes/components/grid/RowEditor.coffee |