SlickGrid Options

As included in the examples or described in stable releases.

Booleans:

  • autoEdit Cell will not automatically go into edit mode when selected.
  • autoHeight
  • editable
  • enableAddRow If true, a blank row will be displayed at the bottom - typing values in that row will add a new one.
  • enableAsyncPostRender If true, async post rendering will occur and asyncPostRender delegates on columns will be called.
  • enableCellNavigation
  • enableColumnReorder
  • enableRowReordering
  • forceFitColumns Force column sizes to fit into the viewport (avoid horizontal scrolling).
  • showHeaderRow
  • leaveSpaceForNewRows
  • enableCellRangeSelection
  • asyncEditorLoading Makes cell editors load asynchronously after a small delay. This greatly increases keyboard navigation speed.
  • multiSelect
  • enableTextSelectionOnCells
  • explicitInitialization (http://mleibman.github.com/SlickGrid/examples/example-explicit-initialization.html)
  • multiColumnSort (http://mleibman.github.com/SlickGrid/examples/example-multi-column-sort.html)

Others (with sample values)

  • cellFlashingCssClass: "flashing" A CSS class to apply to flashing cells via flashCell().
  • cellHighlightCssClass: "selected" A CSS class to apply to cells highlighted via setHighlightedCells().
  • editCommandHandler: queueAndExecuteCommand
  • rowHeight: 140
  • topPanelHeight: 25
  • defaultColumnWidth: 80
  • asyncEditorLoadDelay: 100 Delay after which cell editor is loaded. Ignored unless asyncEditorLoading is true.
  • asyncPostRenderDelay: 60 Delay after which async post renderer delegate is called.
  • editorLock: A Slick.EditorLock instance to use for controlling concurrent data edits.
  • headerRowHeight: 25
  • formatterFactory: A factory object responsible to creating a formatter for a given cell. Must implement getFormatter(column).
  • editorFactory: A factory object responsible to creating an editor for a given cell. Must implement getEditor(column).
posted @ 2012-05-09 23:59  水之原  阅读(1254)  评论(0编辑  收藏  举报