showConfigPanel()
Description
Shows or hides the Configuration panel
This method can be useful when there's a need to control the visibility of the Configuration panel without user interaction. For instance, you might want to hide or display the panel based on some other interaction or state in your application.
Usage
showConfigPanel({mode: boolean}): void;
Parameters
mode
(boolean) - (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
Example
// create Pivot
const table = new pivot.Pivot("#root", {
fields,
data: dataset,
config: {
rows: ["studio", "genre"],
columns: [],
values: [
{
field: "title",
method: "count"
},
{
field: "score",
method: "max"
}
]
}
});
table.showConfigPanel ({
mode: false
})
Related articles: