Skip to content

Commit

Permalink
Extend the docs for the hiddenRows/hiddenColumns hooks. #5522
Browse files Browse the repository at this point in the history
  • Loading branch information
jansiegel committed Oct 24, 2018
1 parent 6240785 commit 90cb1a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pluginHooks.js
Expand Up @@ -1511,6 +1511,7 @@ const REGISTERED_HOOKS = [
* @pro
* @event Hooks#beforeHideRows
* @param {Array} rows Array of row indexes about to be marked as hidden.
* @param {Boolean} actionPossible `true`, if all of the row indexes from `rows` are withing the bounds of the table, `false` otherwise.
* @returns {undefined|Boolean} If the callback returns `false`, the hiding action will not be completed.
*/
'beforeHideRows',
Expand All @@ -1521,6 +1522,7 @@ const REGISTERED_HOOKS = [
* @pro
* @event Hooks#afterHideRows
* @param {Array} rows Array of row indexes marked as hidden.
* @param {Boolean} stateChanged `true`, if the action affected any non-hidden rows, `false` otherwise.
*/
'afterHideRows',

Expand All @@ -1531,6 +1533,7 @@ const REGISTERED_HOOKS = [
* @pro
* @event Hooks#beforeUnhideRows
* @param {Array} rows Array of row indexes about to be marked as not hidden.
* @param {Boolean} actionPossible `true`, if all of the row indexes from `rows` are withing the bounds of the table, `false` otherwise.
* @returns {undefined|Boolean} If the callback returns `false`, the revealing action will not be completed.
*/
'beforeUnhideRows',
Expand All @@ -1541,6 +1544,7 @@ const REGISTERED_HOOKS = [
* @pro
* @event Hooks#afterUnhideRows
* @param {Array} rows Array of row indexes marked as not hidden.
* @param {Boolean} stateChanged `true`, if the action affected any hidden rows, `false` otherwise.
*/
'afterUnhideRows',

Expand All @@ -1551,6 +1555,7 @@ const REGISTERED_HOOKS = [
* @pro
* @event Hooks#beforeHideColumns
* @param {Array} columns Array of column indexes about to be marked as hidden.
* @param {Boolean} actionPossible `true`, if all of the column indexes from `columns` are withing the bounds of the table, `false` otherwise.
* @returns {undefined|Boolean} If the callback returns `false`, the hiding action will not be completed.
*/
'beforeHideColumns',
Expand All @@ -1561,6 +1566,7 @@ const REGISTERED_HOOKS = [
* @pro
* @event Hooks#afterHideColumns
* @param {Array} columns Array of column indexes marked as hidden.
* @param {Boolean} stateChanged `true`, if the action affected any non-hidden columns, `false` otherwise.
*/
'afterHideColumns',

Expand All @@ -1571,6 +1577,7 @@ const REGISTERED_HOOKS = [
* @pro
* @event Hooks#beforeUnhideColumns
* @param {Array} columns Array of column indexes about to be marked as not hidden.
* @param {Boolean} actionPossible `true`, if all of the column indexes from `columns` are withing the bounds of the table, `false` otherwise.
* @returns {undefined|Boolean} If the callback returns `false`, the revealing action will not be completed.
*/
'beforeUnhideColumns',
Expand All @@ -1581,6 +1588,7 @@ const REGISTERED_HOOKS = [
* @pro
* @event Hooks#afterUnhideColumns
* @param {Array} columns Array of column indexes marked as not hidden.
* @param {Boolean} stateChanged `true`, if the action affected any hidden columns, `false` otherwise.
*/
'afterUnhideColumns',

Expand Down

0 comments on commit 90cb1a2

Please sign in to comment.