StateObject
The StateObject
configures the state for Flexmonster UI controls.
Properties
Property/Type | Description |
---|---|
idString | optionalThe identifier of the state. If not specified, the id is autogenerated. |
datasetDatasetObject | optionalContains the dataset configuration. |
sliceSliceObject | optionalSpecifies which subset of data from your data source should be shown in the component. |
Example
const dataSource = {
// Data source configuration
};
const dataset = {
id: "dataset-0",
dataSource: dataSource
};
const state = {
id: "state-0",
dataset: dataset,
slice: {
// Slice configuration
}
};
const flexmonster = fm3.Controls.Flexmonster("#pivot-container", {
state: state
});