Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add api methods to control the chart toolbar items
chart toolbar items can be add/removed now using the api methods (configuration & api) `addChartToolbarItem` & `removeChartToolbarItem`
- Loading branch information
Showing
6 changed files
with
164 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* This file is part of the BBjGridExWidget plugin. | ||
* (c) Basis Europe <eu@basis.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
/** | ||
* Return the chart toolbar items defined in the grid's context | ||
* | ||
* @param {Object} params | ||
* @returns {Array} array of supported chart items | ||
*/ | ||
export function gw_getChartToolbarItems(params) { | ||
return params | ||
.api | ||
.gridOptionsWrapper | ||
.gridOptions | ||
.context | ||
.chartToolbarItems || []; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters