Sha256: 6e0536a2f8a883d407687ceddfa9580f97af125d068f10ac10f7241be16c1a35
Contents?: true
Size: 903 Bytes
Versions: 3
Compression:
Stored size: 903 Bytes
Contents
class Lanes.Component.Grid.RowEditor extends Lanes.Component.Grid.Editor templateName: '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