show-config-panel
Description
Fires when the visibility of the Configuration panel changes
Usage
"show-config-panel": ({
mode: boolean
})
Parameters
The callback of the action takes an object with the following parameter:
mode
- (required) if the value is set to true (default), the Configuration panel is shown, and it's set to false when the Configuration panel is hidden
info
For handling the inner events you can use the Event Bus methods
Example
const table = new pivot.Pivot("#root", {
fields,
data: dataset,
config: {
rows: ["studio", "genre"],
columns: [],
values: [
{
field: "title",
method: "count"
},
{
field: "score",
method: "max"
}
]
}
});
//hide the configuration panel
table.api.exec("show-config-panel", {
mode: false
});
Related articles: