summaryrefslogtreecommitdiffstats
path: root/examples/example-grouping.html
diff options
context:
space:
mode:
authorMichael Leibman <michael.leibman@gmail.com>2012-01-23 23:18:21 -0800
committerMichael Leibman <michael.leibman@gmail.com>2012-01-23 23:18:21 -0800
commit2cdad7efa7b7892beea0508dd52aa49894f02343 (patch)
tree5d88fcf13ef33fcfeea2dbc8bc19832547c1b5bf /examples/example-grouping.html
parent1190b2317f82930774b8893410be32704426b46b (diff)
downloadSlickGrid-2cdad7efa7b7892beea0508dd52aa49894f02343.zip
SlickGrid-2cdad7efa7b7892beea0508dd52aa49894f02343.tar.gz
SlickGrid-2cdad7efa7b7892beea0508dd52aa49894f02343.tar.bz2
Formatter & Editor cleanup.
- Split up formatters into a separate file. - Moved both formatters and editors into Slick.Formatters.* and Slick.Editors.* namespaces. Renamed some for clarity. - Removed obscure unused formatters from old examples. - Made the default formatter escape HTML since that seems to be the more common expectation (issue #267).
Diffstat (limited to 'examples/example-grouping.html')
-rw-r--r--examples/example-grouping.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/example-grouping.html b/examples/example-grouping.html
index 28b685d..48db2cb 100644
--- a/examples/example-grouping.html
+++ b/examples/example-grouping.html
@@ -77,6 +77,7 @@
<script src="../lib/jquery.event.drag-2.0.min.js"></script>
<script src="../slick.core.js"></script>
+<script src="../slick.formatters.js"></script>
<script src="../slick.editors.js"></script>
<script src="../plugins/slick.cellrangedecorator.js"></script>
<script src="../plugins/slick.cellrangeselector.js"></script>
@@ -93,12 +94,12 @@ var grid;
var data = [];
var columns = [
{id: "sel", name: "#", field: "num", cssClass: "cell-selection", width: 40, resizable: false, selectable: false, focusable: false },
- {id: "title", name: "Title", field: "title", width: 120, minWidth: 120, cssClass: "cell-title", sortable: true, editor: TextCellEditor},
+ {id: "title", name: "Title", field: "title", width: 120, minWidth: 120, cssClass: "cell-title", sortable: true, editor: Slick.Editors.Text},
{id: "duration", name: "Duration", field: "duration", sortable: true},
- {id: "%", name: "% Complete", field: "percentComplete", width: 80, formatter: GraphicalPercentCompleteCellFormatter, sortable: true, groupTotalsFormatter: avgTotalsFormatter},
+ {id: "%", name: "% Complete", field: "percentComplete", width: 80, formatter: Slick.Formatters.PercentCompleteBar, sortable: true, groupTotalsFormatter: avgTotalsFormatter},
{id: "start", name: "Start", field: "start", minWidth: 60, sortable: true},
{id: "finish", name: "Finish", field: "finish", minWidth: 60, sortable: true},
- {id: "effort-driven", name: "Effort Driven", width: 80, minWidth: 20, maxWidth: 80, cssClass: "cell-effort-driven", field: "effortDriven", formatter: BoolCellFormatter, sortable: true}
+ {id: "effort-driven", name: "Effort Driven", width: 80, minWidth: 20, maxWidth: 80, cssClass: "cell-effort-driven", field: "effortDriven", formatter: Slick.Formatters.Checkmark, sortable: true}
];
var options = {