summaryrefslogtreecommitdiffstats
path: root/examples/example-checkbox-row-select.html
diff options
context:
space:
mode:
authormleibman <michael.leibman@gmail.com>2011-02-22 01:40:10 -0800
committermleibman <michael.leibman@gmail.com>2011-02-22 01:40:10 -0800
commit34db300b61560ac31d4e3a2426dea291c3d01057 (patch)
treed5d3bb85f1505582a61e735dc0aec0f3e22ccc17 /examples/example-checkbox-row-select.html
parentf5932598cb2999d64152bc4ede9ef9ad03f8c5b9 (diff)
downloadSlickGrid-34db300b61560ac31d4e3a2426dea291c3d01057.zip
SlickGrid-34db300b61560ac31d4e3a2426dea291c3d01057.tar.gz
SlickGrid-34db300b61560ac31d4e3a2426dea291c3d01057.tar.bz2
Cleaned up column width calculations and removed syncColumnCellResize option.
Added a way to provide row and/or cell specific metadata: The item metadata is retrieved separately from the item itself. It is done via the optional "getItemMetadata(index)" method on the data provider. The method should return an object that will be queried by the grid. The object can contain row-level properties itself (currently supported: selectable, focusable, cssClasses, formatter, editor) and a "columns" collection with column-level properties (currently supported: selectable, focusable, cssClasses, formatter, editor, colspan) indexed by column id or index. The grid will first try to read a supported property off row-level metadata, then off column-level metadata first by id and then by index, and then off the column definition. Renamed "unselectable" into "selectable" and changed how it works. It is now queried in the order described above, and the first available value is read. The new "focusable" property works the same way. Separated logic for determining whether a cell can be active/focused and selected. Added "canCellBeActive" method. Removed grouping-related code from the grid core and implemented it via "getItemMetadata" on the DataView. Rewrote cell navigation to work with colspan. Added support for colspan. Colspan can be defined on the column definition (or item metadata via getItemMetadata). A special value of "*" is taken to mean "span the rest of the row". TODO: Further decouple grouping. Add a grouping plugin to handle toggling and provide formatters. Move that stuff out of the DataView.
Diffstat (limited to 'examples/example-checkbox-row-select.html')
-rw-r--r--examples/example-checkbox-row-select.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/examples/example-checkbox-row-select.html b/examples/example-checkbox-row-select.html
index 9ce8132..3499cb2 100644
--- a/examples/example-checkbox-row-select.html
+++ b/examples/example-checkbox-row-select.html
@@ -14,16 +14,18 @@
</style>
</head>
<body>
-<div style="width:600px;float:left;">
- <div id="myGrid" style="width:100%;height:500px;"></div>
-</div>
+ <div style="position:relative">
+ <div style="width:600px;">
+ <div id="myGrid" style="width:100%;height:500px;"></div>
+ </div>
-<div class="options-panel" style="width:320px;margin-left:650px;">
- <h2>Demonstrates:</h2>
- <ul>
- <li>Checkbox row select column</li>
- </ul>
-</div>
+ <div class="options-panel">
+ <h2>Demonstrates:</h2>
+ <ul>
+ <li>Checkbox row select column</li>
+ </ul>
+ </div>
+ </div>
<script src="../lib/firebugx.js"></script>