├── .gitignore ├── .npmignore ├── index.html ├── demo ├── index.html ├── miscellaneous │ ├── bwt-datatable-edit-dialog.html │ ├── icons.html │ ├── light.html │ ├── events.html │ └── theming.html ├── libs │ └── relativeDate.js ├── paper-datatable │ ├── race.html │ ├── sorting.html │ ├── mobile.html │ ├── index.html │ ├── bindings.html │ ├── switching-datas.html │ ├── filter.html │ ├── playground.html │ ├── editable.html │ ├── dynamic-columns.html │ └── resize-behavior.html ├── data │ ├── fakeDB.js │ └── users.json └── paper-datatable-card │ ├── playground.html │ ├── index.html │ └── full-implementation.html ├── images ├── icon.png ├── screenshot.png ├── header-fixed.gif └── bwt-datatable-mobile.png ├── src ├── whatever.js ├── collectionHelpers.js └── weakCache.js ├── docs ├── api.html ├── events.md ├── browser-support.md ├── installation.md ├── getting-started-with-data-table-cards.md ├── docs.html ├── styling.md ├── getting-started.md └── documentation-menu.html ├── test ├── index.html └── bwt-datatable.html ├── bwt-datatable-styles.js ├── bower.json ├── datatable-icons.js ├── package.json ├── bwt-datatable-edit-dialog.js ├── README.md ├── examples └── your-datatable-implementation.js ├── bwt-datatable-column.js └── bwt-datatable-card.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | bower_components -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | bower_components -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bluewatertracks/bwt-datatable/HEAD/images/icon.png -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bluewatertracks/bwt-datatable/HEAD/images/screenshot.png -------------------------------------------------------------------------------- /images/header-fixed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bluewatertracks/bwt-datatable/HEAD/images/header-fixed.gif -------------------------------------------------------------------------------- /images/bwt-datatable-mobile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bluewatertracks/bwt-datatable/HEAD/images/bwt-datatable-mobile.png -------------------------------------------------------------------------------- /src/whatever.js: -------------------------------------------------------------------------------- 1 | export const Whenever = () => { 2 | var callbacks = []; 3 | var ready = false; 4 | var args; 5 | return { 6 | get state(){ 7 | return { 8 | ready: ready, 9 | args: args, 10 | pendingCallbacks: callbacks.length 11 | }; 12 | }, 13 | ready() { 14 | args = arguments; 15 | callbacks.forEach(function(callback){ 16 | callback.apply(this, args); 17 | }); 18 | callbacks = []; 19 | ready = true; 20 | }, 21 | whenReady(callback) { 22 | if(ready){ 23 | callback.apply(this, args); 24 | }else{ 25 | callbacks.push(callback); 26 | } 27 | } 28 | } 29 | }; -------------------------------------------------------------------------------- /docs/api.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 || Column 1 | 59 |Column 2 | 60 |
|---|---|
| Cell 1 | 65 |Cell 2 | 66 |
| Cell 1 | 69 |Cell 2 | 70 |
<table> element after including
76 | paper-datable-styles using:
77 |
78 | <style is="custom-style" include="paper-datatable-styles"></style>
79 |
80 | with class="card" added for a simple MD card design.
81 | <paper-datatable-card>` does support those things, but is a lot more
58 | complex and can thus be harder to understand initially.
59 | 79 | Note: This demo attempts to showcase as many events as possible. It should be understood however that a single demo can not show all events as some 80 | events are mutually exclusive. 81 |
82 |
50 |
51 |
56 |
57 |
setTimeout's
105 | to emulate AJAX requests) and it should provide a solid starting point when you implement an AJAX
106 | based datatable. Also do please check out the edit dialog (by double clicking or selecting a row and
107 | hitting the edit icon in the toolbar).
108 | <datatable>
98 | <datatable>
101 | <datatable>
104 | <datatable-card>
110 | <datatable-card> full impl.
113 | <table>
145 | <datatable> element
154 | <datatable-card> element
157 | <datatable> API
166 | <datatable-column> API
169 | <datatable-card> API
172 |