From f0e2269d15ced2a77e849827b5bb5f92f9d5ccb5 Mon Sep 17 00:00:00 2001 From: Rogerio Angeliski Date: Tue, 20 Aug 2019 14:47:20 -0300 Subject: [PATCH 1/2] docs(events): add docs for events --- docs/guide/README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docs/guide/README.md b/docs/guide/README.md index 2948472..76ca301 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -121,7 +121,30 @@ The update strategy is responsible for how data is updated in the Tabulator inst ::: warning Use update in editable tables To avoid [problems](https://github.com/angeliski/vue-tabulator/issues/13) prefer use `UPDATE` strategy on editable tables ::: - +## Events +The Callbacks Tabulator will be avaliable in the vue-way: + + - Table Callbacks (Soon) + - Column Callbacks (Soon) + - Data Callbacks (Soon) + - Ajax Callbacks (Soon) + - Filter Callbacks (Soon) + - Sorting Callbacks (Soon) + - Layout Callbacks (Soon) + - Pagination Callbacks (Soon) + - Group Callbacks (Soon) + - Selection Callbacks (Soon) + - Row Movement Callbacks (Soon) + - Validation Callbacks (Soon) + - History Callbacks (Soon) + - Clipboard Callbacks (Soon) + - Download Callbacks (Soon) + - Data Tree Callbacks (Soon) + +### Row Callbacks +- (Available in Release 1.2.0) +### Cell Callbacks +- (Available in Release 1.2.0) ## Advanced Interaction From fb8dfcd449b2eefa7c7983cebcaabf0de5937bbe Mon Sep 17 00:00:00 2001 From: Rogerio Angeliski Date: Tue, 20 Aug 2019 21:59:18 -0300 Subject: [PATCH 2/2] docs(events): add docs for events --- .gitignore | 2 +- docs/guide/README.md | 47 +++++++++++++++++++++++++++++++++++++++----- 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 2fbda12..8468282 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ docs/.vuepress/dist /tests/e2e/videos/ /tests/e2e/screenshots/ -vue-tabulator-v*.tgz +vue-tabulator*.tgz # local env files .env.local .env.*.local diff --git a/docs/guide/README.md b/docs/guide/README.md index 76ca301..01eb50d 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -122,8 +122,49 @@ The update strategy is responsible for how data is updated in the Tabulator inst To avoid [problems](https://github.com/angeliski/vue-tabulator/issues/13) prefer use `UPDATE` strategy on editable tables ::: ## Events -The Callbacks Tabulator will be avaliable in the vue-way: +All events in Tabulator follow CamelCase convention, but the events in vue-tabulator will follow the kebab-case: + +`rowClick -> row-click` + +:::tip +You can use the options object next to the vue event system to configure your instance. +The vue-tabulator will call both methods: first emit the event then run the callback in the options object. +::: + +### Row Callbacks +- (Available in Release 1.2.0) + +You can see all events available [here](http://tabulator.info/docs/4.4/callbacks#row). + + The events will be emitted in the root component: + +```html{5} + +``` + +### Cell Callbacks +- (Available in Release 1.2.0) + +You can see all events available [here](http://tabulator.info/docs/4.4/callbacks#cell). + + The events will be emitted in the root component: + +```html{5} + +``` + +The Callbacks Tabulator will be soon available in the vue-way: - Table Callbacks (Soon) - Column Callbacks (Soon) - Data Callbacks (Soon) @@ -141,10 +182,6 @@ The Callbacks Tabulator will be avaliable in the vue-way: - Download Callbacks (Soon) - Data Tree Callbacks (Soon) -### Row Callbacks -- (Available in Release 1.2.0) -### Cell Callbacks -- (Available in Release 1.2.0) ## Advanced Interaction