The FlexmonsterComponent
embeds Flexmonster into a Blazor application.
To add an empty pivot table, specify the <FlexmonsterComponent/>
tag without any parameters:
<FlexmonsterComponent/>
Learn more about integration with Blazor.
The FlexmonsterComponent
’s parameters are equivalent to Flexmonster’s parameters, but with certain differences:
FlexmonsterComponent
does not support the following parameters:
customizeAPIRequest
customizeCell
customizeChartElement
customizeContextMenu
FlexmonsterComponent
has the JavaScriptHandler
parameter, which is not available in the new Flexmonster()
API call.JavaScriptHandler
, you can use JavaScript to access Flexmonster features that are not supported in Blazor out of the box (e.g., Toolbar customization).Parameters can be set as hardcoded values or as variables:
Enclose the value in double quotes (""
):
<FlexmonsterComponent Report="https://cdn.flexmonster.com/reports/report.json"/>
Enclose the variable's name in double quotes (""
) and add the @
prefix to it:
<FlexmonsterComponent Report="@report"/>
The specified variable (in our case, the report
) should be defined in the @code
section of the component.
Learn more about component parameters in Blazor.