Interface: ISubPaneViewControlOptions experimental
Beta
Options to enable sorting and a fixed footer over a sub pane's direct child sub panes.
Extends
Properties
actions?
optionalactions?:ListViewControlAction[]
Beta
Remarks
Default actions
Inherited from
IListViewControlPaneOptions.actions
filterFlags?
optionalfilterFlags?:ListViewControlFilterFlags
Beta
Remarks
Flags to determine which filters are visible. If undefined, it will be All.
getSortValue?
optionalgetSortValue?: (childPaneId) =>string|number
Beta
Parameters
childPaneId
string
Returns
string | number
Remarks
Resolves each child's comparable value for the Custom sort. Only called for the Custom sort; the built-in Default / AtoZ / ZtoA never use it.
onActionClicked?
optionalonActionClicked?: (id) =>void
Beta
Parameters
id
string
Returns
void
Remarks
This function will be called whenever user clicks an action
Inherited from
IListViewControlPaneOptions.onActionClicked
onFilterChanged?
optionalonFilterChanged?: (visibleChildPaneIds) =>void
Beta
Parameters
visibleChildPaneIds
string[]
Returns
void
Remarks
Called whenever the filter is changed by the user.
onShowOptionChanged?
optionalonShowOptionChanged?: (optionIndex) =>void
Beta
Parameters
optionIndex
number
Returns
void
Remarks
Called when the user selects an entry in the "Show" dropdown. Receives the zero-based option index.
onSortChanged?
optionalonSortChanged?: (sort) =>void
Beta
Parameters
sort
Returns
void
Remarks
Called when the user changes the sort.
renderInline?
optionalrenderInline?:boolean
Beta
Remarks
When true, the view control renders inline at the bottom of the sub pane instead of in a footer.
showOptions?
optionalshowOptions?:object[]
Beta
label
label:
LocalizedString
value
value:
number
Remarks
Labels for the "Show" dropdown. When provided, a dropdown is shown and onShowOptionChanged is called with the selected index whenever the user changes the selection.
sortLabels?
optionalsortLabels?:Partial<Record<SubPaneViewSortType,LocalizedString>>
Beta
Remarks
Optional label override per sort. Built-ins fall back to framework labels.
sortOptions?
optionalsortOptions?:SubPaneViewSortType[]
Beta
Remarks
Sorts shown in the footer dropdown. If undefined, only Default is used.
visible?
optionalvisible?:boolean
Beta
Remarks
Initial visibility state. It undefined, it will be false.
