StateObject

The StateObject configures the state for Flexmonster UI controls.

Properties

Property/TypeDescription
idStringoptionalThe identifier of the state. If not specified, the id is autogenerated.
datasetDatasetObjectoptionalContains the dataset configuration.
sliceSliceObjectoptionalSpecifies 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
});