Skip to content

CellSelection

bitpshr edited this page Jan 25, 2013 · 8 revisions

CellSelection

The CellSelection mixin extends upon the functionality of the Selection mixin to provide selection at the cell level instead. Some key differences include:

  • The selection object now stores a hash of hashes, where the outer hash is keyed by item ID and the inner hash is keyed by column ID.
  • The dgrid-select and dgrid-deselect events still fire, but include a cells property containing an array of cell objects, rather than a rows property.
  • Whereas Selection's select, deselect, and isSelected methods look up the passed argument via List's row method, CellSelection looks it up via Grid's cell method.
  • The allowSelect method is passed a cell object instead of a row object.
Clone this wiki locally