Skip to main content

readonly

Description

Optional. Enables/disables the read-only mode

In the read-only mode it's not possible to configure the Pivot structure via the UI.

Usage

 readonly?: boolean;

Parameters

The property can be set to true or false:

  • true - enables the read-only mode
  • false - default, disables the read-only mode

Example

const table = new pivot.Pivot("#root", {
fields,
data: dataset,
config: {
rows: ["studio", "genre"],
columns: [],
values: [
{
field: "title",
method: "count"
},
{
field: "score",
method: "max"
}
]
},
readonly: true
});

Related sample: Pivot 2.0. Readonly mode