gridx-rails 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/LICENSE +2 -0
- data/README.md +18 -0
- data/Rakefile +36 -0
- data/app/assets/images/gridx/mobile/themes/iphone/images/ajax-loader.gif +0 -0
- data/app/assets/images/gridx/mobile/themes/iphone/images/arrow.png +0 -0
- data/app/assets/images/gridx/resources/images/checkboxpartial.png +0 -0
- data/app/assets/images/gridx/resources/images/checkboxpartialdisabled.png +0 -0
- data/app/assets/images/gridx/resources/images/claro-grid-header-onepixel.bmp +0 -0
- data/app/assets/images/gridx/resources/images/dndCopy.png +0 -0
- data/app/assets/images/gridx/resources/images/dndMove.png +0 -0
- data/app/assets/images/gridx/resources/images/dndNoCopy.png +0 -0
- data/app/assets/images/gridx/resources/images/dndNoMove.png +0 -0
- data/app/assets/images/gridx/resources/images/gridxCellChanged.png +0 -0
- data/app/assets/images/gridx/resources/images/header.png +0 -0
- data/app/assets/images/gridx/resources/images/header_shadow.png +0 -0
- data/app/assets/images/gridx/resources/images/loadingAnimation.gif +0 -0
- data/app/assets/images/gridx/resources/images/row_back.png +0 -0
- data/app/assets/images/gridx/resources/images/row_back_changed.png +0 -0
- data/app/assets/images/gridx/resources/images/sprite_icons.png +0 -0
- data/app/assets/images/gridx/resources/images/treeExpandImages.png +0 -0
- data/app/assets/images/gridx/resources/images/treeExpand_loading.gif +0 -0
- data/app/assets/javascripts/gridx/Grid.js +224 -0
- data/app/assets/javascripts/gridx/GridCommon.js +52 -0
- data/app/assets/javascripts/gridx/allModules.js +105 -0
- data/app/assets/javascripts/gridx/core/Cell.js +86 -0
- data/app/assets/javascripts/gridx/core/Column.js +183 -0
- data/app/assets/javascripts/gridx/core/Core.js +447 -0
- data/app/assets/javascripts/gridx/core/Row.js +174 -0
- data/app/assets/javascripts/gridx/core/_Module.js +285 -0
- data/app/assets/javascripts/gridx/core/model/Model.js +495 -0
- data/app/assets/javascripts/gridx/core/model/_Extension.js +84 -0
- data/app/assets/javascripts/gridx/core/model/cache/Async.js +469 -0
- data/app/assets/javascripts/gridx/core/model/cache/Sync.js +59 -0
- data/app/assets/javascripts/gridx/core/model/cache/_Cache.js +386 -0
- data/app/assets/javascripts/gridx/core/model/extensions/ClientFilter.js +303 -0
- data/app/assets/javascripts/gridx/core/model/extensions/FormatSort.js +103 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Mark.js +370 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Modify.js +418 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Move.js +429 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Query.js +50 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Sort.js +81 -0
- data/app/assets/javascripts/gridx/core/util.js +13 -0
- data/app/assets/javascripts/gridx/mobile/Grid.js +300 -0
- data/app/assets/javascripts/gridx/mobile/LazyLoad.js +88 -0
- data/app/assets/javascripts/gridx/mobile/PullRefresh.js +117 -0
- data/app/assets/javascripts/gridx/mobile/Sort.js +66 -0
- data/app/assets/javascripts/gridx/mobile/nls/LazyLoad.js +38 -0
- data/app/assets/javascripts/gridx/mobile/nls/PullRefresh.js +39 -0
- data/app/assets/javascripts/gridx/mobile/nls/ar/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ar/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ar/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/bg/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/bg/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/bg/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ca/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ca/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ca/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/common.js +37 -0
- data/app/assets/javascripts/gridx/mobile/nls/cs/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/cs/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/cs/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/da/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/da/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/da/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/de/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/de/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/de/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/el/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/el/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/el/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/es/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/es/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/es/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/fi/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/fi/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/fi/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/fr/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/fr/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/fr/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/he/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/he/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/he/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/hr/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/hr/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/hr/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/hu/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/hu/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/hu/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/it/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/it/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/it/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ja/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ja/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ja/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/kk/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/kk/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/kk/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ko/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ko/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ko/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/nb/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/nb/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/nb/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/nl/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/nl/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/nl/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/pl/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/pl/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/pl/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt-pt/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt-pt/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt-pt/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ro/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ro/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ro/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ru/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ru/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ru/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/sk/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/sk/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/sk/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/sl/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/sl/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/sl/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/sv/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/sv/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/sv/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/th/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/th/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/th/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/tr/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/tr/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/tr/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/uk/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/uk/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/uk/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh-tw/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh-tw/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh-tw/common.js +5 -0
- data/app/assets/javascripts/gridx/modules/AutoScroll.js +100 -0
- data/app/assets/javascripts/gridx/modules/Bar.js +322 -0
- data/app/assets/javascripts/gridx/modules/Body.js +1059 -0
- data/app/assets/javascripts/gridx/modules/CellWidget.js +538 -0
- data/app/assets/javascripts/gridx/modules/ColumnLock.js +254 -0
- data/app/assets/javascripts/gridx/modules/ColumnResizer.js +278 -0
- data/app/assets/javascripts/gridx/modules/ColumnWidth.js +320 -0
- data/app/assets/javascripts/gridx/modules/Dod.js +368 -0
- data/app/assets/javascripts/gridx/modules/Edit.js +1024 -0
- data/app/assets/javascripts/gridx/modules/Filter.js +482 -0
- data/app/assets/javascripts/gridx/modules/Focus.js +439 -0
- data/app/assets/javascripts/gridx/modules/GroupHeader.js +437 -0
- data/app/assets/javascripts/gridx/modules/HLayout.js +139 -0
- data/app/assets/javascripts/gridx/modules/HScroller.js +172 -0
- data/app/assets/javascripts/gridx/modules/Header.js +289 -0
- data/app/assets/javascripts/gridx/modules/HeaderMenu.js +63 -0
- data/app/assets/javascripts/gridx/modules/HeaderRegions.js +201 -0
- data/app/assets/javascripts/gridx/modules/HiddenColumns.js +274 -0
- data/app/assets/javascripts/gridx/modules/IndirectSelect.js +287 -0
- data/app/assets/javascripts/gridx/modules/IndirectSelectColumn.js +277 -0
- data/app/assets/javascripts/gridx/modules/Menu.js +167 -0
- data/app/assets/javascripts/gridx/modules/NavigableCell.js +170 -0
- data/app/assets/javascripts/gridx/modules/NestedSort.js +280 -0
- data/app/assets/javascripts/gridx/modules/PagedBody.js +409 -0
- data/app/assets/javascripts/gridx/modules/Pagination.js +293 -0
- data/app/assets/javascripts/gridx/modules/Persist.js +266 -0
- data/app/assets/javascripts/gridx/modules/Printer.js +49 -0
- data/app/assets/javascripts/gridx/modules/RowHeader.js +412 -0
- data/app/assets/javascripts/gridx/modules/RowLock.js +143 -0
- data/app/assets/javascripts/gridx/modules/SingleSort.js +276 -0
- data/app/assets/javascripts/gridx/modules/SummaryBar.js +33 -0
- data/app/assets/javascripts/gridx/modules/TitleBar.js +51 -0
- data/app/assets/javascripts/gridx/modules/ToolBar.js +55 -0
- data/app/assets/javascripts/gridx/modules/TouchScroll.js +103 -0
- data/app/assets/javascripts/gridx/modules/TouchVScroller.js +89 -0
- data/app/assets/javascripts/gridx/modules/Traverse.js +159 -0
- data/app/assets/javascripts/gridx/modules/Tree.js +646 -0
- data/app/assets/javascripts/gridx/modules/VLayout.js +152 -0
- data/app/assets/javascripts/gridx/modules/VScroller.js +342 -0
- data/app/assets/javascripts/gridx/modules/View.js +540 -0
- data/app/assets/javascripts/gridx/modules/VirtualVScroller.js +445 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/DropDownPager.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/DropDownSizer.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/GotoPageButton.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/LinkPager.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/LinkSizer.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/Summary.js +16 -0
- data/app/assets/javascripts/gridx/modules/dnd/Avatar.js +45 -0
- data/app/assets/javascripts/gridx/modules/dnd/Column.js +210 -0
- data/app/assets/javascripts/gridx/modules/dnd/Row.js +286 -0
- data/app/assets/javascripts/gridx/modules/dnd/_Base.js +60 -0
- data/app/assets/javascripts/gridx/modules/dnd/_Dnd.js +371 -0
- data/app/assets/javascripts/gridx/modules/exporter/CSV.js +43 -0
- data/app/assets/javascripts/gridx/modules/exporter/Exporter.js +34 -0
- data/app/assets/javascripts/gridx/modules/exporter/Table.js +42 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/Cell.js +491 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/Column.js +290 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/Row.js +458 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/_Base.js +244 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/_RowCellBase.js +35 -0
- data/app/assets/javascripts/gridx/modules/filter/DistinctComboBoxMenu.js +22 -0
- data/app/assets/javascripts/gridx/modules/filter/Filter.js +16 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterBar.js +649 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterConfirmDialog.js +33 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterDialog.js +179 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterPane.js +340 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterTooltip.js +103 -0
- data/app/assets/javascripts/gridx/modules/filter/QuickFilter.js +33 -0
- data/app/assets/javascripts/gridx/modules/move/Column.js +223 -0
- data/app/assets/javascripts/gridx/modules/move/Row.js +154 -0
- data/app/assets/javascripts/gridx/modules/pagination/Pagination.js +16 -0
- data/app/assets/javascripts/gridx/modules/pagination/PaginationBar.js +68 -0
- data/app/assets/javascripts/gridx/modules/pagination/PaginationBarDD.js +40 -0
- data/app/assets/javascripts/gridx/modules/pagination/_PaginationBarBase.js +105 -0
- data/app/assets/javascripts/gridx/modules/select/Cell.js +229 -0
- data/app/assets/javascripts/gridx/modules/select/Column.js +209 -0
- data/app/assets/javascripts/gridx/modules/select/Row.js +302 -0
- data/app/assets/javascripts/gridx/modules/select/_Base.js +99 -0
- data/app/assets/javascripts/gridx/modules/select/_RowCellBase.js +51 -0
- data/app/assets/javascripts/gridx/nls/Body.js +47 -0
- data/app/assets/javascripts/gridx/nls/FilterBar.js +133 -0
- data/app/assets/javascripts/gridx/nls/NestedSort.js +45 -0
- data/app/assets/javascripts/gridx/nls/PaginationBar.js +68 -0
- data/app/assets/javascripts/gridx/nls/QuickFilter.js +40 -0
- data/app/assets/javascripts/gridx/nls/SummaryBar.js +38 -0
- data/app/assets/javascripts/gridx/nls/ar/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ar/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ar/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ar/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ar/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ar/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/bg/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/bg/FilterBar.js +88 -0
- data/app/assets/javascripts/gridx/nls/bg/NestedSort.js +12 -0
- data/app/assets/javascripts/gridx/nls/bg/PaginationBar.js +28 -0
- data/app/assets/javascripts/gridx/nls/bg/QuickFilter.js +8 -0
- data/app/assets/javascripts/gridx/nls/bg/SummaryBar.js +6 -0
- data/app/assets/javascripts/gridx/nls/ca/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ca/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ca/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/ca/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/ca/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/ca/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/cs/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/cs/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/cs/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/cs/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/cs/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/cs/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/da/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/da/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/da/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/da/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/da/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/da/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/de/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/de/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/de/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/de/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/de/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/de/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/el/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/el/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/el/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/el/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/el/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/el/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/es/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/es/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/es/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/es/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/es/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/es/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/fi/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/fi/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/fi/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/fi/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/fi/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/fi/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/fr/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/fr/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/fr/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/fr/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/fr/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/fr/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/he/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/he/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/he/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/he/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/he/QuickFilter.js +6 -0
- data/app/assets/javascripts/gridx/nls/he/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/hr/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/hr/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/hr/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/hr/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/hr/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/hr/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/hu/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/hu/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/hu/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/hu/PaginationBar.js +33 -0
- data/app/assets/javascripts/gridx/nls/hu/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/hu/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/it/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/it/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/it/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/it/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/it/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/it/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/ja/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ja/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ja/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ja/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ja/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ja/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/kk/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/kk/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/kk/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/kk/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/kk/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/kk/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/ko/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ko/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ko/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ko/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ko/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ko/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/nb/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/nb/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/nb/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/nb/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/nb/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/nb/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/nl/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/nl/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/nl/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/nl/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/nl/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/nl/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/pl/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/pl/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pl/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/pl/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/pl/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/pl/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/pt/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/pt/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pt/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/pt/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/pt/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/pt/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/pt-br/Body.js +6 -0
- data/app/assets/javascripts/gridx/nls/pt-br/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pt-br/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/pt-br/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/pt-br/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/pt-br/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/ro/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ro/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ro/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/ro/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/ro/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/ro/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/ru/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ru/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ru/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ru/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ru/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ru/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/sk/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/sk/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/sk/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/sk/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/sk/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/sk/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/sl/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/sl/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/sl/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/sl/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/sl/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/sl/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/sv/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/sv/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/sv/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/sv/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/sv/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/sv/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/th/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/th/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/th/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/th/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/th/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/th/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/tr/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/tr/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/tr/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/tr/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/tr/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/tr/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/uk/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/uk/FilterBar.js +88 -0
- data/app/assets/javascripts/gridx/nls/uk/NestedSort.js +12 -0
- data/app/assets/javascripts/gridx/nls/uk/PaginationBar.js +28 -0
- data/app/assets/javascripts/gridx/nls/uk/QuickFilter.js +8 -0
- data/app/assets/javascripts/gridx/nls/uk/SummaryBar.js +6 -0
- data/app/assets/javascripts/gridx/nls/zh/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/zh/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/zh/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/zh/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/support/DropDownPager.js +111 -0
- data/app/assets/javascripts/gridx/support/DropDownSizer.js +112 -0
- data/app/assets/javascripts/gridx/support/GotoPageButton.js +92 -0
- data/app/assets/javascripts/gridx/support/GotoPagePane.js +61 -0
- data/app/assets/javascripts/gridx/support/LinkPager.js +180 -0
- data/app/assets/javascripts/gridx/support/LinkSizer.js +138 -0
- data/app/assets/javascripts/gridx/support/QuickFilter.js +138 -0
- data/app/assets/javascripts/gridx/support/Summary.js +49 -0
- data/app/assets/javascripts/gridx/support/_LinkPageBase.js +92 -0
- data/app/assets/javascripts/gridx/support/exporter/exporter.js +350 -0
- data/app/assets/javascripts/gridx/support/exporter/toCSV.js +75 -0
- data/app/assets/javascripts/gridx/support/exporter/toTable.js +92 -0
- data/app/assets/javascripts/gridx/support/menu/AZFilterMenu.js +57 -0
- data/app/assets/javascripts/gridx/support/menu/NumberFilterMenu.js +87 -0
- data/app/assets/javascripts/gridx/support/menu/_FilterMenuBase.js +83 -0
- data/app/assets/javascripts/gridx/support/printer.js +157 -0
- data/app/assets/javascripts/gridx/templates/FilterBar.html +8 -0
- data/app/assets/javascripts/gridx/templates/FilterConfirmDialog.html +5 -0
- data/app/assets/javascripts/gridx/templates/FilterDialog.html +19 -0
- data/app/assets/javascripts/gridx/templates/FilterPane.html +64 -0
- data/app/assets/javascripts/gridx/templates/GotoPagePane.html +28 -0
- data/app/assets/javascripts/gridx/templates/Grid.html +19 -0
- data/app/assets/javascripts/gridx/templates/LinkPager.html +24 -0
- data/app/assets/javascripts/gridx/templates/PaginationBar.html +60 -0
- data/app/assets/javascripts/gridx/templates/PaginationBarDD.html +23 -0
- data/app/assets/javascripts/gridx/templates/QuickFilter.html +38 -0
- data/app/assets/stylesheets/gridx/mobile/themes/iphone/Grid.css +107 -0
- data/app/assets/stylesheets/gridx/resources/Dod.css +39 -0
- data/app/assets/stylesheets/gridx/resources/Gridx.css +10 -0
- data/app/assets/stylesheets/gridx/resources/Gridx_rtl.css +5 -0
- data/app/assets/stylesheets/gridx/resources/Tree.css +46 -0
- data/app/assets/stylesheets/gridx/resources/Tree_rtl.css +4 -0
- data/app/assets/stylesheets/gridx/resources/bar.css +24 -0
- data/app/assets/stylesheets/gridx/resources/basic.css +482 -0
- data/app/assets/stylesheets/gridx/resources/basic_rtl.css +37 -0
- data/app/assets/stylesheets/gridx/resources/claro/Gridx.css +16 -0
- data/app/assets/stylesheets/gridx/resources/claro/Gridx_rtl.css +7 -0
- data/app/assets/stylesheets/gridx/resources/claro/basic.css +109 -0
- data/app/assets/stylesheets/gridx/resources/claro/basic_rtl.css +21 -0
- data/app/assets/stylesheets/gridx/resources/claro/filter.css +47 -0
- data/app/assets/stylesheets/gridx/resources/claro/lock.css +19 -0
- data/app/assets/stylesheets/gridx/resources/claro/pagination.css +33 -0
- data/app/assets/stylesheets/gridx/resources/claro/select.css +20 -0
- data/app/assets/stylesheets/gridx/resources/dnd.css +108 -0
- data/app/assets/stylesheets/gridx/resources/filter.css +321 -0
- data/app/assets/stylesheets/gridx/resources/filter_rtl.css +38 -0
- data/app/assets/stylesheets/gridx/resources/lock.css +20 -0
- data/app/assets/stylesheets/gridx/resources/pagination.css +142 -0
- data/app/assets/stylesheets/gridx/resources/pagination_rtl.css +54 -0
- data/app/assets/stylesheets/gridx/resources/select.css +39 -0
- data/app/assets/stylesheets/gridx/resources/sort.css +154 -0
- data/app/assets/stylesheets/gridx/resources/sort_rtl.css +51 -0
- data/lib/gridx-rails/engine.rb +8 -0
- data/lib/gridx-rails/version.rb +3 -0
- data/lib/gridx-rails.rb +4 -0
- data/lib/tasks/gridx-rails_tasks.rake +52 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +78 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/gridx-rails_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +621 -0
@@ -0,0 +1,92 @@
|
|
1
|
+
define([
|
2
|
+
/*====="dojo/_base/declare", =====*/
|
3
|
+
"./exporter"
|
4
|
+
], function(/*=====declare, =====*/exporter){
|
5
|
+
|
6
|
+
/*=====
|
7
|
+
function toTable(grid, args){
|
8
|
+
// summary:
|
9
|
+
// Export the grid contents to HTML table according to the given args.
|
10
|
+
// args: __TableExportArgs?
|
11
|
+
// The args to configure the export result and the export process.
|
12
|
+
// returns:
|
13
|
+
// A deferred object indicating when the export process is completed,
|
14
|
+
// and then pass the exported HTML table (as string) to callbacks.
|
15
|
+
}
|
16
|
+
|
17
|
+
toTable.__TableExportArgs = declare(exporter.__ExportArgs, {
|
18
|
+
// natualWidth: Boolean
|
19
|
+
natualWidth: false,
|
20
|
+
|
21
|
+
// columnWidth: Object
|
22
|
+
columnWidth: {}
|
23
|
+
});
|
24
|
+
|
25
|
+
return toTable;
|
26
|
+
=====*/
|
27
|
+
|
28
|
+
function toTable(grid, args){
|
29
|
+
return exporter(grid, toTable.writer, args || {}); //dojo.Deferred
|
30
|
+
}
|
31
|
+
|
32
|
+
toTable.writer = {
|
33
|
+
_cellattrs: function(grid, args, col, cellContent){
|
34
|
+
var cw = args.columnWidth,
|
35
|
+
w = (cw && cw[col.id]) || (args.natualWidth ? '' : col.getWidth()) || 'auto',
|
36
|
+
dir = grid.getTextDirStyle(col.id, cellContent);
|
37
|
+
return [' colid="', col.id, '" style="', dir, ' width:', w, '"'].join('');
|
38
|
+
},
|
39
|
+
|
40
|
+
initialize: function(context, /* __TableExportArgs */ args){
|
41
|
+
this._rst = ['<table class="grid"',
|
42
|
+
args.natualWidth ? '' : ' style="table-layout:fixed;"',
|
43
|
+
' border="0" cellpadding="0" cellspacing="0">'
|
44
|
+
];
|
45
|
+
},
|
46
|
+
|
47
|
+
beforeHeader: function(){
|
48
|
+
this._rst.push('<thead><tr class="grid_header">');
|
49
|
+
},
|
50
|
+
|
51
|
+
handleHeaderCell: function(/* __ExportContext */ context, /* __TableExportArgs */ args){
|
52
|
+
var col = context.column;
|
53
|
+
this._rst.push('<th class="grid_header_cell"',
|
54
|
+
this._cellattrs(col.grid, args, col, col.name()),
|
55
|
+
'>', col.name(), '</th>');
|
56
|
+
},
|
57
|
+
|
58
|
+
afterHeader: function(){
|
59
|
+
this._rst.push('</tr><thead>');
|
60
|
+
},
|
61
|
+
|
62
|
+
beforeBody: function(){
|
63
|
+
this._rst.push('<tbody>');
|
64
|
+
},
|
65
|
+
|
66
|
+
beforeRow: function(/* __ExportContext */ context){
|
67
|
+
var r = context.row, idx = r.index();
|
68
|
+
this._rst.push('<tr class="grid_row grid_row_', idx % 2 ? 'even' : 'odd',
|
69
|
+
'" rowid="', r.id, '" rowindex="', idx, '">');
|
70
|
+
},
|
71
|
+
|
72
|
+
handleCell: function(/* __ExportContext */ context, /* __TableExportArgs */ args){
|
73
|
+
this._rst.push('<td class="grid_cell"',
|
74
|
+
this._cellattrs(context.grid, args, context.column, context.data),
|
75
|
+
'>', context.data, '</td>');
|
76
|
+
},
|
77
|
+
|
78
|
+
afterRow: function(){
|
79
|
+
this._rst.push('</tr>');
|
80
|
+
},
|
81
|
+
|
82
|
+
afterBody: function(){
|
83
|
+
this._rst.push('</tbody></table>');
|
84
|
+
},
|
85
|
+
|
86
|
+
getResult: function(){
|
87
|
+
return this._rst.join('');
|
88
|
+
}
|
89
|
+
};
|
90
|
+
|
91
|
+
return toTable;
|
92
|
+
});
|
@@ -0,0 +1,57 @@
|
|
1
|
+
define([
|
2
|
+
"dojo/_base/declare",
|
3
|
+
"dojo/_base/array",
|
4
|
+
"./_FilterMenuBase",
|
5
|
+
"dijit/CheckedMenuItem"
|
6
|
+
], function(declare, array, _FilterMenuBase, CheckedMenuItem){
|
7
|
+
|
8
|
+
/*=====
|
9
|
+
return declare(_FilterMenuBase, {
|
10
|
+
// summary:
|
11
|
+
// This is a sample implementation for the alphabetic filter, default
|
12
|
+
// to ['A-F', 'G-L', 'M-R', 'S-Z'].
|
13
|
+
|
14
|
+
// alphabeticRanges: String[]
|
15
|
+
// The ranges of alphabetic filter.
|
16
|
+
alphabeticRanges: ['A-F', 'G-L', 'M-R', 'S-Z']
|
17
|
+
});
|
18
|
+
=====*/
|
19
|
+
|
20
|
+
return declare(_FilterMenuBase, {
|
21
|
+
|
22
|
+
alphabeticRanges: ['A-F', 'G-L', 'M-R', 'S-Z'],
|
23
|
+
|
24
|
+
_createMenuItems: function(){
|
25
|
+
var t = this,
|
26
|
+
arr = t.alphabeticRanges;
|
27
|
+
array.forEach(arr, function(item){
|
28
|
+
t.addChild(new CheckedMenuItem({
|
29
|
+
label: item,
|
30
|
+
onChange: function(){
|
31
|
+
t._addRule();
|
32
|
+
}
|
33
|
+
}));
|
34
|
+
});
|
35
|
+
},
|
36
|
+
|
37
|
+
_addRule: function(){
|
38
|
+
var t = this,
|
39
|
+
key = 'azfilter',
|
40
|
+
reg = '';
|
41
|
+
array.forEach(t.getChildren(), function(mi){
|
42
|
+
if(mi.get('checked')){
|
43
|
+
reg += mi.get('label');
|
44
|
+
}
|
45
|
+
});
|
46
|
+
if(reg){
|
47
|
+
reg = new RegExp('^[' + reg + ']', 'i');
|
48
|
+
t._addFilter(key, function(row){
|
49
|
+
return reg.test(String(row.data[t.colId]));
|
50
|
+
});
|
51
|
+
}else{
|
52
|
+
//If reg is empty string, remove this filter
|
53
|
+
t._removeFilter(key);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
});
|
57
|
+
});
|
@@ -0,0 +1,87 @@
|
|
1
|
+
define([
|
2
|
+
"dojo/_base/declare",
|
3
|
+
"dojo/_base/array",
|
4
|
+
"./_FilterMenuBase",
|
5
|
+
"dijit/CheckedMenuItem"
|
6
|
+
], function(declare, array, _FilterMenuBase, CheckedMenuItem){
|
7
|
+
|
8
|
+
/*=====
|
9
|
+
return declare(_FilterMenuBase, {
|
10
|
+
// summary:
|
11
|
+
// This is a number range adaptive filter sample.
|
12
|
+
|
13
|
+
// numbers: Integer[]
|
14
|
+
// The number ranges for the adaptive filter.
|
15
|
+
// example:
|
16
|
+
// numbers: [-Infinity, 10, 50, 100] will show the adaptive filter: '< 10', '10 - 50', '50 - 100'
|
17
|
+
numbers: []
|
18
|
+
});
|
19
|
+
=====*/
|
20
|
+
|
21
|
+
return declare(_FilterMenuBase, {
|
22
|
+
numbers: [],
|
23
|
+
|
24
|
+
_createMenuItems: function(){
|
25
|
+
var t = this,
|
26
|
+
numbers = t.numbers,
|
27
|
+
arr = [],
|
28
|
+
n = numbers.shift();
|
29
|
+
while(numbers.length){
|
30
|
+
if(n === -Infinity){
|
31
|
+
n = numbers.shift();
|
32
|
+
arr.push('< ' + n);
|
33
|
+
}else{
|
34
|
+
var s;
|
35
|
+
if(numbers[0] === Infinity){
|
36
|
+
s = '> ' + n;
|
37
|
+
numbers.length = 0;
|
38
|
+
}else{
|
39
|
+
s = n + ' - ';
|
40
|
+
n = numbers.shift();
|
41
|
+
s += n;
|
42
|
+
}
|
43
|
+
arr.push(s);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
array.forEach(arr, function(item){
|
48
|
+
t.addChild(new CheckedMenuItem({
|
49
|
+
label: item,
|
50
|
+
onChange: function(){
|
51
|
+
t._addRule();
|
52
|
+
}
|
53
|
+
}));
|
54
|
+
});
|
55
|
+
},
|
56
|
+
|
57
|
+
_addRule: function(){
|
58
|
+
var colId = this.colId,
|
59
|
+
key = 'numberfilter',
|
60
|
+
exp = '1>1';
|
61
|
+
array.forEach(this.getChildren(), function(mi){
|
62
|
+
if(mi.get('checked')){
|
63
|
+
var label = mi.get('label');
|
64
|
+
if(/\</.test(label)){
|
65
|
+
exp += '|| value ' + label;
|
66
|
+
}else if(/\>/.test(label)){
|
67
|
+
exp += '|| value' + label;
|
68
|
+
}else{
|
69
|
+
var arr = label.split(' ');
|
70
|
+
var low = arr[0], high = arr[2];
|
71
|
+
exp += '|| (value >=' + low + ' && value <=' + high + ')';
|
72
|
+
}
|
73
|
+
}
|
74
|
+
});
|
75
|
+
|
76
|
+
if(exp != '1>1'){
|
77
|
+
eval('var checker = function(value){return ' + exp + ';};');
|
78
|
+
this._addFilter(key, function(row){
|
79
|
+
|
80
|
+
return checker(parseFloat(row.data[colId], 10));
|
81
|
+
});
|
82
|
+
}else{
|
83
|
+
this._removeFilter(key);
|
84
|
+
}
|
85
|
+
}
|
86
|
+
});
|
87
|
+
});
|
@@ -0,0 +1,83 @@
|
|
1
|
+
define([
|
2
|
+
"dojo/_base/declare",
|
3
|
+
"dijit/Menu",
|
4
|
+
"../../modules/Filter"
|
5
|
+
], function(declare, Menu, Filter){
|
6
|
+
|
7
|
+
/*=====
|
8
|
+
return declare(Menu, {
|
9
|
+
// summary
|
10
|
+
// This menu base is used for adaptive filter.
|
11
|
+
|
12
|
+
// grid: [const] gridx.Grid
|
13
|
+
// The grid widget this plugin works for.
|
14
|
+
grid: null,
|
15
|
+
|
16
|
+
// colId: Integer|String
|
17
|
+
// The column id the menu attached to.
|
18
|
+
colId: null,
|
19
|
+
|
20
|
+
// leftClickToOpen: Boolean
|
21
|
+
// Whether left or right mouse click to open the menu.
|
22
|
+
leftClickToOpen: true,
|
23
|
+
|
24
|
+
bindGrid: function(grid, col){
|
25
|
+
// summary:
|
26
|
+
// When the menu is created, bind the grid to the menu. So that menu logic
|
27
|
+
// could do the filter for the grid.
|
28
|
+
},
|
29
|
+
|
30
|
+
});
|
31
|
+
=====*/
|
32
|
+
|
33
|
+
return declare(Menu, {
|
34
|
+
// summary:
|
35
|
+
//
|
36
|
+
|
37
|
+
// grid: gridx/Grid
|
38
|
+
//
|
39
|
+
grid: null,
|
40
|
+
|
41
|
+
// colId: String
|
42
|
+
//
|
43
|
+
colId: null,
|
44
|
+
|
45
|
+
leftClickToOpen: true,
|
46
|
+
|
47
|
+
postCreate: function(){
|
48
|
+
this.inherited(arguments);
|
49
|
+
this._createMenuItems();
|
50
|
+
},
|
51
|
+
|
52
|
+
bindGrid: function(grid, col){
|
53
|
+
//summary:
|
54
|
+
// Attach the menu with grid, so that it could do filter actions
|
55
|
+
this.grid = grid;
|
56
|
+
this.colId = col.id;
|
57
|
+
grid.filter._rules = grid.filter._rules || {};
|
58
|
+
},
|
59
|
+
|
60
|
+
_addFilter: function(key, rule){
|
61
|
+
this.grid.filter._rules[key] = rule;
|
62
|
+
this._doFilter();
|
63
|
+
},
|
64
|
+
|
65
|
+
_removeFilter: function(key){
|
66
|
+
delete this.grid.filter._rules[key];
|
67
|
+
this._doFilter();
|
68
|
+
},
|
69
|
+
|
70
|
+
_doFilter: function(){
|
71
|
+
var filter = this.grid.filter,
|
72
|
+
rules = filter._rules;
|
73
|
+
filter.setFilter(function(row){
|
74
|
+
for(var key in rules){
|
75
|
+
if(!rules[key](row)){
|
76
|
+
return 0;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
return 1;
|
80
|
+
});
|
81
|
+
}
|
82
|
+
});
|
83
|
+
});
|
@@ -0,0 +1,157 @@
|
|
1
|
+
define([
|
2
|
+
/*====="./exporter/exporter",=====*/
|
3
|
+
"./exporter/toTable",
|
4
|
+
"dojo/_base/declare",
|
5
|
+
"dojo/_base/lang",
|
6
|
+
"dojo/_base/Deferred",
|
7
|
+
"dojo/_base/xhr",
|
8
|
+
"dojo/_base/sniff",
|
9
|
+
"dojo/_base/window"
|
10
|
+
], function(/*=====exporter, =====*/exportToTable, declare, lang, Deferred, xhr, has, win){
|
11
|
+
|
12
|
+
/*=====
|
13
|
+
function printer(grid, args){
|
14
|
+
// summary:
|
15
|
+
// Print grid contents.
|
16
|
+
// args: __PrinterArgs
|
17
|
+
// Print args
|
18
|
+
// returns:
|
19
|
+
// A deferred object indicating when the export process is completed.
|
20
|
+
}
|
21
|
+
|
22
|
+
printer.toHTML = function(grid, args){
|
23
|
+
// summary
|
24
|
+
// Export to printable html, used for preview
|
25
|
+
// args: __PrinterArgs
|
26
|
+
// Print args
|
27
|
+
// returns:
|
28
|
+
// A deferred object indicating when the export process is completed.
|
29
|
+
};
|
30
|
+
|
31
|
+
printer.__PrinterArgs = declare(exporter.__ExporterArgs, {
|
32
|
+
// style: String
|
33
|
+
// The CSS string for the printed document
|
34
|
+
style: '',
|
35
|
+
|
36
|
+
// styleSrc: URL String
|
37
|
+
// The CSS file url used for the printed document
|
38
|
+
styleSrc: '',
|
39
|
+
|
40
|
+
// title: String
|
41
|
+
// The content of the <title> element in the <head> of the printed document
|
42
|
+
title: '',
|
43
|
+
|
44
|
+
// description: String
|
45
|
+
// Any HTML content that will be put before the grid in the printed document.
|
46
|
+
description: '',
|
47
|
+
|
48
|
+
// customHead: String
|
49
|
+
// Any HTML <head> content that will be put in the <head> of the printed document.
|
50
|
+
customHead: ''
|
51
|
+
});
|
52
|
+
|
53
|
+
return printer;
|
54
|
+
=====*/
|
55
|
+
|
56
|
+
var printFrame,
|
57
|
+
hitch = lang.hitch;
|
58
|
+
|
59
|
+
function loadStyleFiles(src){
|
60
|
+
var d = new Deferred(),
|
61
|
+
loaded = hitch(d, d.callback);
|
62
|
+
if(src){
|
63
|
+
xhr.get({
|
64
|
+
url: src
|
65
|
+
}).then(loaded, function(){
|
66
|
+
console.warn('Failed to load resource: ', src);
|
67
|
+
loaded('');
|
68
|
+
});
|
69
|
+
}else{
|
70
|
+
loaded('');
|
71
|
+
}
|
72
|
+
return d;
|
73
|
+
}
|
74
|
+
|
75
|
+
function _print(str){
|
76
|
+
var w, fillDoc = function(w){
|
77
|
+
var doc = w.document;
|
78
|
+
doc.open();
|
79
|
+
doc.write(str);
|
80
|
+
doc.close();
|
81
|
+
};
|
82
|
+
if(!window.print){
|
83
|
+
console.warn('Print function is not available');
|
84
|
+
return;
|
85
|
+
}else if(has('chrome') || has('opera')){
|
86
|
+
//referred from dijit._editor.plugins.Print._print()
|
87
|
+
//In opera and chrome the iframe.contentWindow.print
|
88
|
+
//will also print the outside window. So we must create a
|
89
|
+
//stand-alone new window.
|
90
|
+
w = window.open("javascript:''", "",
|
91
|
+
"status=0,menubar=0,location=0,toolbar=0,width=1,height=1,resizable=0,scrollbars=0");
|
92
|
+
fillDoc(w);
|
93
|
+
w.print();
|
94
|
+
//Opera will stop at this point, showing the popping-out window.
|
95
|
+
//If the user closes the window, the following codes will not execute.
|
96
|
+
//If the user returns focus to the main window, the print function
|
97
|
+
// is executed, but still a no-op.
|
98
|
+
w.close();
|
99
|
+
}else{
|
100
|
+
if(!printFrame){
|
101
|
+
//create an iframe to store the grid data.
|
102
|
+
printFrame = win.doc.createElement('iframe');
|
103
|
+
printFrame.frameBorder = 0;
|
104
|
+
var s = printFrame.style;
|
105
|
+
s.position = 'absolute';
|
106
|
+
s.width = s.height = '1px';
|
107
|
+
s.right = s.bottom = 0;
|
108
|
+
s.border = 'none';
|
109
|
+
s.overflow = 'hidden';
|
110
|
+
if(!has('ie')){
|
111
|
+
s.visibility = 'hidden';
|
112
|
+
}
|
113
|
+
win.body().appendChild(printFrame);
|
114
|
+
}
|
115
|
+
w = printFrame.contentWindow;
|
116
|
+
fillDoc(w);
|
117
|
+
//IE requires the frame to be focused for print to work, and it's harmless for FF.
|
118
|
+
w.focus();
|
119
|
+
w.print();
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
function wrap(grid, args, styleSrc, bodyContent){
|
124
|
+
return [
|
125
|
+
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html ',
|
126
|
+
grid.isLeftToRight() ? '' : 'dir="rtl"',
|
127
|
+
'><head><title>',
|
128
|
+
args.title || '',
|
129
|
+
'</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta><style type="text/css">',
|
130
|
+
styleSrc,
|
131
|
+
'</style><style type="text/css">',
|
132
|
+
args.style || '',
|
133
|
+
'</style>',
|
134
|
+
args.customHead || '',
|
135
|
+
'</head><body>',
|
136
|
+
args.description || '',
|
137
|
+
bodyContent,
|
138
|
+
'</body></html>'
|
139
|
+
].join('');
|
140
|
+
}
|
141
|
+
|
142
|
+
function printer(grid, args){
|
143
|
+
return printer.toHTML(grid, args).then(_print);
|
144
|
+
}
|
145
|
+
|
146
|
+
printer.toHTML = function(grid, args){
|
147
|
+
var d = new Deferred();
|
148
|
+
loadStyleFiles(args.styleSrc).then(function(styleSrc){
|
149
|
+
exportToTable(grid, args).then(function(str){
|
150
|
+
d.callback(wrap(grid, args, styleSrc, str));
|
151
|
+
}, hitch(d, d.errback), hitch(d, d.progress));
|
152
|
+
});
|
153
|
+
return d;
|
154
|
+
};
|
155
|
+
|
156
|
+
return printer;
|
157
|
+
});
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<input type="button" data-dojo-type="dijit.form.Button" data-dojo-props="
|
2
|
+
iconClass: 'gridxFilterBarBtnIcon',
|
3
|
+
label: '...',
|
4
|
+
title: '${defineFilter}'" aria-label='${defineFilter}'
|
5
|
+
/><div class="gridxFilterBarStatus"
|
6
|
+
><span>${noFilterApplied}</span
|
7
|
+
><span class="gridxFilterBarCloseBtn" tabindex="-1" title="${closeFilterBarBtn}"><span class="gridxFilterBarCloseBtnText">x</span></span
|
8
|
+
></div>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<div class="gridxFilterConfirmDialogMessage">${clearFilterMsg}</div
|
2
|
+
><div class="gridxFilterConfirmDialogButtons"
|
3
|
+
><input type="button" data-dojo-type="dijit.form.Button" label="${clearButton}"
|
4
|
+
/><input type="button" data-dojo-type="dijit.form.Button" label="${cancelButton}"
|
5
|
+
/></div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<form action="./" onsubmit="return false;">
|
2
|
+
<label id="${id}_MatchOptionLabel" for="${id}_MatchOptionSelect">${i18n.relationMsgFront} </label>
|
3
|
+
<select data-dojo-type="dijit.form.Select" id="${id}_MatchOptionSelect" aria-labelledby="${id}_MatchOptionLabel">
|
4
|
+
<option value="all">${i18n.relationAll}</option>
|
5
|
+
<option value="any">${i18n.relationAny}</option>
|
6
|
+
</select>
|
7
|
+
|
8
|
+
<div class="gridxFilterAccordionWrapper">
|
9
|
+
<div data-dojo-type="dijit.layout.AccordionContainer"></div>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<div class="gridxFilterDialogButtons">
|
13
|
+
<input type="button" class="gridxFilterDialogBtnAdd" data-dojo-type="dijit.form.Button"
|
14
|
+
showLabel="false" iconClass="gridxFilterBtnAddRule" label="${i18n.addRuleButton}"/>
|
15
|
+
<input type="submit" data-dojo-type="dijit.form.Button" label="${i18n.filterButton}"/>
|
16
|
+
<input type="button" data-dojo-type="dijit.form.Button" label="${i18n.clearButton}"/>
|
17
|
+
<input type="button" data-dojo-type="dijit.form.Button" label="${i18n.cancelButton}"/>
|
18
|
+
</div>
|
19
|
+
</form>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
<ul class="gridxFilterPaneForm">
|
2
|
+
<li><label id="${id}_ColumnLabel" for="${id}_ColumnSelect">${i18n.columnSelectLabel}</label></li>
|
3
|
+
<li name="sltColumn">
|
4
|
+
<div data-dojo-type="dijit.form.Select" id="${id}_ColumnSelect" aria-labelledby="${id}_ColumnLabel" style="width:100%;"></div>
|
5
|
+
</li>
|
6
|
+
<li><label id="${id}_ConditionLabel" for="${id}_ConditionSelect">${i18n.conditionSelectLabel}</label></li>
|
7
|
+
<li name="sltCondition">
|
8
|
+
<div data-dojo-type="dijit.form.Select" id="${id}_ConditionSelect" style="width:100%;" aria-labelledby="${id}_ConditionLabel"></div>
|
9
|
+
</li>
|
10
|
+
<li><label id="${id}_ValueLabel">${i18n.valueBoxLabel}</label></li>
|
11
|
+
|
12
|
+
<li class="gridxFilterPaneFieldWrapper gridxFilterPaneTextWrapper">
|
13
|
+
<input type="text" data-dojo-type="dijit.form.TextBox" intermediateChanges="true"
|
14
|
+
style="width:100%;" aria-labelledby="${id}_ValueLabel"/>
|
15
|
+
</li>
|
16
|
+
|
17
|
+
<!-- dropDownClass="gridx.modules.filter.DistinctComboBoxMenu"-->
|
18
|
+
<li class="gridxFilterPaneFieldWrapper gridxFilterPaneComboWrapper">
|
19
|
+
<input type="text" data-dojo-type="dijit.form.ComboBox"
|
20
|
+
intermediateChanges="true" autoComplete="false" queryExpr="*${i18n.startsWithExpr}"
|
21
|
+
style="width:100%;" aria-labelledby="${id}_ValueLabel"/>
|
22
|
+
</li>
|
23
|
+
|
24
|
+
<li class="gridxFilterPaneFieldWrapper gridxFilterPaneNumberWrapper">
|
25
|
+
<input type="text" data-dojo-type="dijit.form.NumberTextBox" aria-labelledby="${id}_ValueLabel" intermediateChanges="true" style="width:100%;"/>
|
26
|
+
</li>
|
27
|
+
|
28
|
+
<li class="gridxFilterPaneFieldWrapper gridxFilterPaneDateWrapper">
|
29
|
+
<div data-dojo-type="dijit.form.DateTextBox" aria-labelledby="${id}_ValueLabel" intermediateChanges="true" style="width: 100%"></div>
|
30
|
+
</li>
|
31
|
+
|
32
|
+
<li class="gridxFilterPaneFieldWrapper gridxFilterPaneDateRangeWrapper">
|
33
|
+
<div data-dojo-type="dijit.form.DateTextBox" style="width:44%; float: left;" intermediateChanges="true"
|
34
|
+
aria-label="${i18n.beginDateRangeLabel}"></div>
|
35
|
+
<div style="width:10%; text-align: center; float: left;">${i18n.rangeTo}</div>
|
36
|
+
<div data-dojo-type="dijit.form.DateTextBox" style="width:44%; float: right;" intermediateChanges="true"
|
37
|
+
aria-label="${i18n.endDateRangeLabel}"></div>
|
38
|
+
</li>
|
39
|
+
|
40
|
+
<li class="gridxFilterPaneFieldWrapper gridxFilterPaneTimeWrapper">
|
41
|
+
<div data-dojo-type="dijit.form.TimeTextBox" aria-labelledby="${id}_ValueLabel" style="width: 100%" intermediateChanges="true"></div>
|
42
|
+
</li>
|
43
|
+
|
44
|
+
<li class="gridxFilterPaneFieldWrapper gridxFilterPaneTimeRangeWrapper">
|
45
|
+
<div data-dojo-type="dijit.form.TimeTextBox" style="width:44%; float: left;" intermediateChanges="true"
|
46
|
+
aria-label="${i18n.beginTimeRangeLabel}"></div>
|
47
|
+
<div style="text-align: center; float: left; width: 10%;">${i18n.rangeTo}</div>
|
48
|
+
<div data-dojo-type="dijit.form.TimeTextBox" style="width:44%; float: right;" intermediateChanges="true"
|
49
|
+
aria-label="${i18n.endTimeRangeLabel}"></div>
|
50
|
+
</li>
|
51
|
+
|
52
|
+
<li class="gridxFilterPaneFieldWrapper gridxFilterPaneRadioWrapper">
|
53
|
+
<span style="width:49%; float:left;">
|
54
|
+
<div data-dojo-type="dijit.form.RadioButton" aria-label="${i18n.radioTrueLabel}" checked="true"></div><span>${i18n.trueLabel}</span>
|
55
|
+
</span>
|
56
|
+
<span style="width:49%; float: right;">
|
57
|
+
<div data-dojo-type="dijit.form.RadioButton" aria-label="${i18n.radioFalseLabel}"></div><span>${i18n.falseLabel}</span>
|
58
|
+
</span>
|
59
|
+
</li>
|
60
|
+
|
61
|
+
<li class="gridxFilterPaneFieldWrapper gridxFilterPaneSelectWrapper">
|
62
|
+
<div data-dojo-type="dijit.form.Select" aria-labelledby="${id}_ValueLabel" style="width: 100%"></div>
|
63
|
+
</li>
|
64
|
+
</ul>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div class='gridxGotoPage'
|
2
|
+
><table><tbody
|
3
|
+
><tr><td id='${id}-pageInputLabel' class='gridxGotoPageMainMsg'>
|
4
|
+
${gotoDialogMainMsg}
|
5
|
+
</td></tr
|
6
|
+
><tr><td class='gridxGotoPageInput'
|
7
|
+
><input data-dojo-type='${numberTextBoxClass}'
|
8
|
+
data-dojo-props='"aria-labelledby": "${id}-pageInputLabel"'
|
9
|
+
class='gridxGotoPageInputBox'
|
10
|
+
data-dojo-attach-point='pageInputBox'
|
11
|
+
data-dojo-attach-event='onKeyUp: _updateStatus, onKeyDown: _onKeyDown'></input
|
12
|
+
><span
|
13
|
+
class='gridxPageCountMsg'
|
14
|
+
data-dojo-attach-point='pageCountMsgNode'></span
|
15
|
+
></td></tr
|
16
|
+
><tr><td class='gridxGotoPageBtns'
|
17
|
+
><button data-dojo-type='${buttonClass}'
|
18
|
+
data-dojo-attach-point='okBtn'
|
19
|
+
data-dojo-attach-event='onClick: _onOK'>
|
20
|
+
${gotoDialogOKBtn}
|
21
|
+
</button
|
22
|
+
><button data-dojo-type='${buttonClass}'
|
23
|
+
data-dojo-attach-event='onClick: _onCancel'>
|
24
|
+
${gotoDialogCancelBtn}
|
25
|
+
</button
|
26
|
+
></td></tr
|
27
|
+
></tbody></table
|
28
|
+
></div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div class="gridx" role="grid" tabindex="0" aria-readonly="true" aria-label="grid"
|
2
|
+
><div class="gridxLoad" data-dojo-attach-point="loadingNode"></div
|
3
|
+
><div class="gridxHeader" role="presentation" data-dojo-attach-point="headerNode"></div
|
4
|
+
><div class="gridxMain" role="presentation" data-dojo-attach-point="mainNode"
|
5
|
+
><div class="gridxBodyEmpty" role="alert" tabindex="-1" data-dojo-attach-point="emptyNode"></div
|
6
|
+
><div class="gridxBody" role="presentation" data-dojo-attach-point="bodyNode"></div
|
7
|
+
><div class="gridxVScroller" data-dojo-attach-point="vScrollerNode" tabindex="-1"
|
8
|
+
><div style='width: 1px;'></div
|
9
|
+
></div
|
10
|
+
></div
|
11
|
+
><div class="gridxFooter" data-dojo-attach-point="footerNode"
|
12
|
+
><div class="gridxHScroller"
|
13
|
+
><div class="gridxHScrollerInner" data-dojo-attach-point="hScrollerNode" tabindex="-1"
|
14
|
+
><div style="width:1px; height: 1px;"></div
|
15
|
+
></div
|
16
|
+
></div
|
17
|
+
></div
|
18
|
+
><span data-dojo-attach-point="lastFocusNode" tabindex="0"></span
|
19
|
+
></div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<div class="gridxLinkPager" role="toolbar" aria-label="${pagerWai}"
|
2
|
+
><span class='gridxPagerStepperBtn gridxPagerPrevPage'
|
3
|
+
tabindex='${_tabIndex}'
|
4
|
+
title='${prevPageTitle}'
|
5
|
+
aria-label='${prevPageTitle}'
|
6
|
+
pageindex='prev',
|
7
|
+
data-dojo-attach-point='_prevPageBtn'
|
8
|
+
data-dojo-attach-event='onclick: _prevPage'
|
9
|
+
><span class='gridxPagerA11yInner'> <</span
|
10
|
+
></span
|
11
|
+
><span class='gridxPagerPages'
|
12
|
+
data-dojo-attach-point='_pageBtnContainer'
|
13
|
+
data-dojo-attach-event='onclick: _gotoPage, onmouseover: _onHover, onmouseout: _onHover'
|
14
|
+
></span
|
15
|
+
><span class='gridxPagerStepperBtn gridxPagerNextPage'
|
16
|
+
tabindex='${_tabIndex}'
|
17
|
+
title='${nextPageTitle}'
|
18
|
+
aria-label='${nextPageTitle}'
|
19
|
+
pageindex='next',
|
20
|
+
data-dojo-attach-point='_nextPageBtn'
|
21
|
+
data-dojo-attach-event='onclick: _nextPage'
|
22
|
+
><span class='gridxPagerA11yInner'> ></span
|
23
|
+
></span
|
24
|
+
></div>
|