Below are the list of public APIs available in Spreadsheet PowerApps code component.
Defines the data source for the Spreadsheet code component. It specifies the datasources
that the Spreadsheet retrieves its data.
If enableDarkMode
set to true, then it will enable the dark mode for the Spreadsheet code component.
Defines the path of the document to be loaded in the Spreadsheet code component.
Defaults to "https://cdn.syncfusion.com/scripts/spreadsheet/Sample.xlsx"
Note
Only downloadable links are supported for the documentPath
property.
The Spreadsheet component initially renders based on the documentPath property, which can accept base64 data as well. However, if a dataSource is provided, it takes precedence and renders the JSON-based data instead.
If allowFiltering
set to true, then it will allows you to enable filter and its functionalities.
Defaults to true
If allowFreezePane
set to true, then it will allows you to enable freeze pane functionality in spreadsheet
Defaults to true
If allowOpen
set to true, then it will allows you to open an Excel file (.xlsx, .xls, and .csv) in Spreadsheet.
Defaults to true
If allowPrint
set to true, then it will allows you to enable printing functionality in the spreadsheet.
Defaults to true
If allowResizing
set to true, then it will allows you to spreadsheet columns and rows can be resized.
Defaults to true
If allowSave
set to true, then it will allows you to save Spreadsheet with all data as Excel file (.xlsx, .xls, and .csv).
Defaults to true
If allowSorting
set to true, then it will allows you to enable sort and its functionalities
Defaults to true
If allowWrap
set to true, then it will allows you to enable wrap text feature. By using this feature the wrapping applied cell text can wrap to the next line, if the text width exceeds the column width.
Defaults to true
If showAggregate
set to true, then it will show the AVERAGE, SUM, COUNT, MIN and MAX values based on the selected cells.
Defaults to true
If showFormulaBar
set to true, then it shows the formula bar and its features.
Defaults to true
If showRibbon
set to true, then it shows the ribbon in spreadsheet.
Defaults to true
If showSheetTabs
set to true, then it shows the sheets tabs, this is used to navigate among the sheets and create or delete sheets by UI interaction.
Defaults to true
Defines the type of the selectionMode in the Spreadsheet. The available types are,
- None - Disable the visibility of hyperlink in all cells.
- Single - Allows you to set the visibility of hyperlink in all cells.
- Multiple - Allows you to set the visibility of hyperlink in row headers.
Defaults to Multiple
Defines the event name for the Spreadsheet code component. It specifies the event
of the Spreadsheet. Possible values are onError
.
Outputs error message when onError is triggered. Use below PowerFx code in the onChange property to notify the error message in the canvas application.
If(
Self.EventName="onError",
Notify(Self.OnError, NotificationType.Error)
)