-
Notifications
You must be signed in to change notification settings - Fork 160
Column Actions
Pinned Column are visible all the time. Horizontal scrolling is applied to the rest of the columns.
Version | User | Date | Notes |
---|---|---|---|
0.1 | Stamen Stoychev | July 1, 2020 | Initial draft |
Allow users to create a simple dropdown component containing a list of grid columns with checkboxes controlling one of their boolean properties.
Developer:
- Story 1: As a developer, I want to display a dropdown that contains columns and let the end-user hide them on check.
- Story 2: As a developer, I want to display a dropdown that contains columns and let the end-user pin them on check.
End user:
- A generic component that ngFor-s a list of items (columns) with checkboxes.
- A filter field on top of the list that hides items that don't meet the criteria the end user typed in
- Check all/uncheck all buttons at the bottom.
- Two predefined directives that provide the specific onCheck/Check All/Uncheck All and the list of columns to display.
Developers that need to display the igxColumnActionsComponent may do it with the following template:
<igx-column-actions IgxColumnActionsBase></igx-column-actions>
Current Name | Future Name |
---|---|
disableShowAll |
uncheckAllDisabled |
disableHideAll |
checkAllDisabled |
disableFilter |
hideFilter |
showAllText |
uncheckAllText |
hideAllText |
checkAllText |
showAllColumns |
uncheckAllColumns |
hideAllColumns |
checkAllColumns |
Describe any special localization requirements such as the number of localizable strings, regional formats
The component has the following UI:
Note: The button is part of the default igxTooolbar component template
It includes:
- Title - may be hidden
- An input used to filter the column list
- The column list with checkbox the state of which indicates the state of the column related to the action
- Check all/Uncheck all buttons with labels corresponding to the action
Note: Columns that have the associated action disabled do not appear in the list.
-
IgxColumnActionsComponent
Name Description Type Default value columns A list of grid columns to provide an action for Array<IgxColumnComponent>
[]
title The title of the column actions component string
''
filterColumnsPrompt The prompt that is displayed in the filter input string
''
hideFilter Shows/hides the filter input bool
false
filterCriteria The criteria to filter the column list by string
''
columnDisplayOrder The display order of the columns in the list ColumnDisplayOrder
*DisplayOrder
columnsAreaMaxHeight The max height of the columns area string
'100%'
uncheckAllText The text of the button that unchecks all columns string
'Uncheck All'
checkAllText The text of the button that checks all columns string
'Check All'
Note: Where
ColumnDisplayOrder
is an enumeration with two possible values -Alphabetical
andDisplayOrder
.
IgxGridComponent
-
IgxGridComponent
Name Description Return type Parameters uncheckAllColumns Unchecks all columns and performs the associated action undefined
checkAllColumns Checks all columns and performs the associated action undefined
Name | Description | Cancelable | Parameters |
---|---|---|---|
onColumnPinning | Emitted when pinning is requested, before the execution completes. Users may edit the arguments.insertAtIndex property to change the position of the column in the pinned area. | column: IgxGridColumnComponent , insertAtIndex: number
|
Specify only if applicable
Assumptions | Limitation Notes |
---|---|
Column Pinning is only available in grids with horizontal scrollbars | Pinning only makes sense when the grid can be scrolled horizontally |
Specify all referenced external sources, incl. competitors’ links. Remove before publishing outside Infragistics