Sha256: 43045262b41bf85b742cbe6a454639bb2446197e6f3d590f34c7d53c9b0907d3
Contents?: true
Size: 827 Bytes
Versions: 6
Compression:
Stored size: 827 Bytes
Contents
class Lanes.Components.Grid.PopOverEditor extends Lanes.Components.Grid.Editor template: 'grid/popover-editor' templateModels: -> { columns: this.grid.columnDefinitions } session: view: 'object' title: 'string' move: (row,ev)-> super if @popover @popover.destroy() @popover = new Lanes.Components.PopOver({ parent: this className: 'grid-popover-editor' target: Lanes.$(ev.target) title: this.title || this.calculatedTitle() content: this.el autoShow: true }) calculatedTitle: -> (if this.model.isNew() then "Create: " else "Edit: ") + this.model.constructor.name cancelEditing: -> @popover.destroy() super
Version data entries
6 entries across 6 versions & 1 rubygems