Components
CellSetTable
Displays a table representing a CellSet.
CellSetTableProps
Property | Type | Description |
---|---|---|
Cell | ForwardRefExoticComponent<CellSetTableCellProps & RefAttributes<HTMLDivElement>> | |
containerStyle | CSSProperties | |
data | CellSet | |
isRowHeaderTree | boolean | |
onChange | (updatedWidgetState: TableWidgetState) => void | |
onScroll | (newPosition: { scrollTop: number; scrollLeft: number; }) => void | |
onSelectionChange | (newSelection: CellSetSelection) => void | |
widgetState | TableWidgetState |
ContentNodeIcon
Displays the icon on the left of nodes in content trees. Represents a server, a folder or a file.
ContentTree
Displays a tree of saved widgets or dashboards
ContentTreeProps
Property | Type | Description |
---|---|---|
areFilesVisible | boolean | |
className | string | |
ContentNodeIcon | FC<NodeIconProps<ContentNode<T>>> | |
ContextMenu | ComponentType<TreeContextMenuProps<ContentNode<T>>> | |
doesSelectionIncludeChildren | boolean | |
getDefaultCaption | (node?: ContentNode<T>) => string | |
getDragItem | (id: string, metaData: T) => void | |
hoverStyle | CSSProperties | |
isSearchVisible | boolean | |
isSelectable | boolean | |
lineHeight | number | |
nodeStyle | CSSProperties | |
onClick | (node: ContentNode<T>, path: number[]) => void | |
rootNodeCaption | string | |
searchPlaceholder | string | |
selectedPaths | number[][] | |
selectionStyle | CSSProperties | |
structure | ContentRecord<T> |
CreateFolderModal
Displays a modal allowing users to create a folder on the Content Server.
CreateFolderModalProps
Property | Type | Description |
---|---|---|
contentType | ContentType | |
isVisible | boolean | |
onCancel | () => void | |
onSubmit | () => void | |
parentFolder | ContentEntry<AMetaData> | null | |
pathToParentFolder | string[] | |
title | string |
Dashboard
Renders multiple resizable and draggable data exploration widgets.
DashboardProps
Property | Type | Description |
---|---|---|
isDeferred | boolean | |
onIsDeferredChange | (newState: boolean) => void |
DataModelTree
Displays the tree of measures and dimensions contained in a cube.
DataModelTreeProps
Property | Type | Description |
---|---|---|
className | string | |
cubeName | CubeName | If cubeName is omitted, the data model tree shows the content of all cubes |
disabledKpiProperties | KpiProperty[] | |
disabledLevels | LevelCoordinates[] | |
disabledMeasures | MeasureName[] | |
mdx | MdxSelect | If provided, mdx controls which cube options are disabled. |
onClick | (node: DataModelNode) => void | |
onCubeSelected | (serverKey: string, cubeName: CubeName) => void | |
onNewCalculationClicked | () => void | |
serverKey | string |
DataVisualizationContentEditor
Displays a data model tree and a wizard, allowing to add levels and measures to the select widget's attributes.
DataVisualizationContentEditorProps
EditorProps<DataVisualizationWidgetState> & {
extraSection?: JSX.Element;
onTileMovedFromExtraSection?: (toSection: string, item: any, toPosition: number) => void;
}
DataVisualizationQueryEditor
Displays an MdxEditor hooked to the selected widget.
DrillthroughTable
Displays the result of an MdxDrillthrough query in a table.
DrillthroughTableProps
WidgetWithQueryProps<DrillthroughTableWidgetState, DrillthroughResult, DrillthroughSelection>
FileExplorer
Displays a file explorer allowing the user to navigate folders and choose a folder or a file.
FileExplorerProps
Property | Type | Description |
---|---|---|
contentTree | ContentRecord | |
contentType | ContentType | |
foldersAndFiles | { id: string; name?: string; isFolder: boolean; }[] | |
menuItems | ComponentType<AntMenuItemProps & ContentTreeMenuItemProps>[] | |
onFolderChanged | (path: string[]) => void | |
onSelectionChanged | (newSelectedItemIndex: number | undefined) => void | |
pathToFolder | string[] | |
selectedItemIndex | number | |
style | CSSProperties |
FiltersEditor
Displays a data model tree and a filter wizard. Either stacked horizontally or vertically, depending on how wide the parent is.
FiltersEditorProps
- EditorProps<WidgetState> & EditorProps<WidgetState> & { queryType?: "drillthrough"
- "select"; }
FormRow
Displays a styled row with a label on the left and an input on the right, useful in a form.
HighlightedSearchResult
Displays the label of a search result, highlighting the matched part of it.
HighlightedSearchResultProps
Property | Type | Description |
---|---|---|
caption | string | |
isDisabled | boolean | |
searchValue | string | |
path | string |
KpiComponent
Displays one or several high level KPIs. Can optionally be used to display comparisons of KPIs, for instance across 2 dates or 2 scenarios.
KpiComponentProps
WidgetWithQueryProps<KpiWidgetState>
LazyLoadedCellSetTable
Displays a horizontally and vertically infinitely scrollable table. Requests a new range of cells from the server each time the user scrolls out of the currently loaded one. Useful for very large tables.
LazyLoadedCellSetTableProps
Property | Type | Description |
---|---|---|
Cell | ForwardRefExoticComponent<CellSetTableCellProps & RefAttributes<HTMLDivElement>> | |
containerStyle | CSSProperties | |
data | CellSet | |
isRowHeaderTree | boolean | |
onChange | (updatedWidgetState: TableWidgetState) => void | |
onScroll | (newPosition: { scrollTop: number; scrollLeft: number; }) => void | |
onSelectionChange | (newSelection: CellSetSelection) => void | |
widgetState | TableWidgetState | |
onRangesChange | (newRanges: { [axisId in AxisId]?: QueryRange; }) => void | |
rangesConfiguration | RangesConfiguration |
LoadingBackground
The application loading background. It can be used as a placeholder while waiting for the asynchronous initialization of some React contexts for example.
MenuItemCreateFolder
Context menu item allowing users to create a folder on the Content Server.
MenuItemCreateFolderProps
AntMenuItemProps & ContentTreeMenuItemProps
MenuItemDeleteFile
Context menu item allowing users to delete a file from the Content Server.
MenuItemDeleteFileProps
AntMenuItemProps & ContentTreeMenuItemProps
MenuItemDeleteFolder
Context menu item allowing users to delete a folder from the Content Server.
MenuItemDeleteFolderProps
AntMenuItemProps & ContentTreeMenuItemProps
MenuItemMoveFileOrFolder
Context menu item allowing users to move a file or folder into a folder on the Content Server.
MenuItemMoveFileOrFolderProps
AntMenuItemProps & ContentTreeMenuItemProps
MenuItemRenameFolder
Context menu item allowing users to rename a folder on the Content Server.
MenuItemRenameFolderProps
AntMenuItemProps & ContentTreeMenuItemProps
PivotTable
Displays a pivot table.
PivotTableProps
WidgetWithQueryProps<TableWidgetState> & {
isRowHeaderTree?: boolean;
}
Plotly100StackedAreaChart
Displays a Plotly stacked area chart, normalized in order to highlight the relative contribution of each series to each point on the X axis.
Plotly100StackedAreaChartProps
WidgetWithQueryProps<PlotlyWidgetState>
Plotly100StackedBarChart
Displays a Plotly stacked bar chart, normalized in order to highlight the relative contribution of each series to each point on the Y axis.
Plotly100StackedBarChartProps
WidgetWithQueryProps<PlotlyWidgetState>
Plotly100StackedColumnChart
Displays a Plotly stacked column chart, normalized in order to highlight the relative contribution of each series to each point on the X axis.
Plotly100StackedColumnChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyAreaChart
Displays a Plotly area chart.
PlotlyAreaChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyBulletChart
Displays a Plotly bullet chart.
PlotlyBulletChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyClusteredBarChart
Displays a Plotly clustered bar chart.
PlotlyClusteredBarChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyClusteredColumnChart
Displays a Plotly clustered column chart.
PlotlyClusteredColumnChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyComboChart
Displays a Plotly "columns and lines" chart.
PlotlyComboChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyDonutChart
Displays a Plotly donut chart.
PlotlyDonutChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyGaugeChart
Displays a Plotly gauge chart.
PlotlyGaugeChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyLineChart
Displays a Plotly line chart.
PlotlyLineChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyPieChart
Displays a Plotly pie chart.
PlotlyPieChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyRadarChart
Displays a Plotly radar chart.
PlotlyRadarChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyScatterPlot
Displays a Plotly scatter plot.
PlotlyScatterPlotProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyStackedAreaChart
Displays a Plotly stacked area chart.
PlotlyStackedAreaChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyStackedBarChart
Displays a Plotly stacked bar chart.
PlotlyStackedBarChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyStackedColumnChart
Displays a Plotly stacked column chart.
PlotlyStackedColumnChartProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyTreeMap
Displays a Plotly treemap.
PlotlyTreeMapProps
WidgetWithQueryProps<PlotlyWidgetState>
PlotlyWaterfallChart
Displays a Plotly waterfall chart.
PlotlyWaterfallChartProps
WidgetWithQueryProps<PlotlyWidgetState>
Resizable
Accepts two children. Displays them next to each other. The first one is resizable.
ResizableProps
Property | Type | Description |
---|---|---|
children | [ReactNode, ReactNode] | |
className | string | |
direction | "column" | "row" | |
dragHandleStyle | CSSProperties | |
firstChildStyle | CSSProperties | |
minSize | number | |
onResizeEnd | (newSize: number) => void | |
secondChildStyle | CSSProperties | |
size | number | |
style | CSSProperties |
SaveAsPopup
A popup which allows a user to save a dashboard, widget or filter as a new content file. The user must choose a folder and name for the file and can also share it with other users if he has the ROLE_SHARE role.
SaveAsPopupProps
Property | Type | Description |
---|---|---|
contentTree | ContentRecord<DashboardMetaData | WidgetMetaData | FilterMetaData> | null | |
contentType | ContentType | |
defaultName | string | |
isVisible | boolean | |
onClose | (event: MouseEvent) => void | |
onSubmit | (name: string, pathToFolder: string[], permissions: Permission[]) => Promise<void> | |
pathToFolder | string[] |
ShareForm
A form to allow sharing dashboards, widgets and filters between users.
ShareFormProps
Property | Type | Description |
---|---|---|
onPermissionsChange | (permissions: Permission[]) => void | |
permissions | Permission[] |
TitleInput
Displays an editable title. Used for dashboard and widget names.
TitleInputProps
Property | Type | Description |
---|---|---|
className | string | |
inputCss | ObjectInterpolation<undefined> | |
isPlaceholder | boolean | |
isStrictlySized | boolean | |
onChange | (newValue: string) => void | |
tooltipValue | string | |
value | string |
Tree
Renders nested structures such as saved dashboards or data model trees.
TreeProps
Property | Type | Description |
---|---|---|
areEmptyFoldersExpandable | boolean | |
className | string | |
ContextMenu | ComponentType<TreeContextMenuProps<NodeType>> | |
defaultExpandedPaths | number[][] | |
doesSelectionIncludeChildren | boolean | |
doSearchResultsIncludeFolders | boolean | |
expandedPaths | number[][] | |
flatValue | (NodeType & { path: number[]; parentNames: string; })[] | flatValue is useful when searchValue is controlled. In this case, it is needed by the Tree's parent in order to compute searchResults . |
focusedIndex | number | |
getDefaultCaption | (node?: NodeType) => string | |
hasCheckbox | (node: NodeType) => boolean | |
hoverStyle | CSSProperties | |
isSearchVisible | boolean | |
isSelectable | boolean | |
lineHeight | number | |
Node | ComponentType<NodeProps> | |
NodeIcon | ComponentType<NodeIconProps> | |
nodeStyle | CSSProperties | |
onClick | (node: NodeType, path: number[], event: MouseEvent<HTMLDivElement> | KeyboardEvent<HTMLInputElement>) => void | |
onExpandedPathsChange | (newExpandedPaths: number[][]) => void | |
onFocusedIndexChanged | (newFocusedIndex: number) => void | |
onNodeEditEnded | (path: number[], caption: string) => void | |
onSearchValueChanged | (newSearchValue: string) => void | |
onSelectedPathsChange | (newSelectedPaths: number[][]) => void | |
searchPlaceholder | string | |
searchResults | NodeType[] | |
searchValue | string | |
selectedPaths | number[][] | |
selectionStyle | CSSProperties | |
style | CSSProperties | |
value | TreeObject<NodeType>[] |
Widget
Displays the WidgetPlugin identified by the given widgetKey
in the PluginRegistry provided by the closest PluginsProvider
.
WidgetProps
Property | Type | Description |
---|---|---|
isDeferred | boolean | |
onChange | (newState: WidgetState) => void | |
onLoaded | () => void | |
onSelectionChange | (newSelection: SelectionType) => void | |
queryId | string | |
style | CSSProperties | |
widgetState | WidgetState |
WidgetError
Displays a message specific to the caught error. If the error is unknown, defaults to showing the error message with a Retry
button.
WidgetErrorProps
Property | Type | Description |
---|---|---|
onChange | (newState: WidgetState) => void | |
widgetState | WidgetState |
WidgetsRibbon
Displays each available WidgetPlugin. Allows to add it to a dashboard by dragging it. Allows to switch the type of a data visualization widget already present in the dashboard by clicking the icon corresponding to the target type.
WidgetsRibbonProps
Property | Type | Description |
---|---|---|
onSelectedWidgetStateChanged | (newSelectedWidgetState: AWidgetState) => void | |
selectedWidgetState | AWidgetState |
withCube
HOC providing a cube to its child, or displaying a placeholder if the cube is not accessible yet. Defaults serverKey
to the key of the first provided server, when props.widgetState.serverKey
is not defined. Defaults cube
to the first cube of the target server, when props.widgetState.query
does not include a cube name.