-
Notifications
You must be signed in to change notification settings - Fork 161
Column Actions
Stamen Stoychev edited this page Jul 6, 2020
·
8 revisions
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>
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
-
IgxColumnActionsComponent
Name Description Type 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
IgxGridComponent
-
IgxGridComponent
Name Description Return type Parameters pinColumn Pin the specified column bool
- whether the pin is successful or notcolumnName: string
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