-
Notifications
You must be signed in to change notification settings - Fork 133
Platform: List List Item Component Technical Design
A List is a group of related items. The List can be for display only or can allow selection of items or it can include item actions.
<fdp-list [isSelectable]="true" (itemSelectionChange)="onItemSelectionChange($event)">
<fdp-list-group-header>Group Header</fdp-list-group-header>
<fdp-list-item [value]="item1">
<fdp-list-item-title>Item 1</fdp-list-item-title>
</fdp-list-item>
<fdp-list-item [value]="item2">
<fdp-list-item-title>Item 2</fdp-list-item-title>
</fdp-list-item>
<fdp-list-item [value]="item3">
<fdp-list-item-title>Item 3</fdp-list-item-title>
</fdp-list-item>
<fdp-list-footer>Footer</fdp-list-footer>
</fdp-list>
<!-- List items with secondary information -->
<fdp-list [isBorderless]="true">
<fdp-list-group-header>Group Header</fdp-list-group-header>
<fdp-list-item>
<fdp-list-item-title>Item 1</fdp-list-item-title>
<fdp-list-item-info>18</fdp-list-item-info>
</fdp-list-item>
<fdp-list-item>
<fdp-list-item-title>Item 2</fdp-list-item-title>
<fdp-list-item-info>21</fdp-list-item-info>
</fdp-list-item>
<fdp-list-item>
<fdp-list-item-title>Item 3</fdp-list-item-title>
<fdp-list-item-info>7</fdp-list-item-info>
</fdp-list-item>
<fdp-list-footer>Footer</fdp-list-footer>
</fdp-list>
<!-- List items with actions -->
<fdp-list [isBorderless]="true">
<fdp-list-group-header>Group Header</fdp-list-group-header>
<fdp-list-item>
<fdp-list-item-title>Item 1</fdp-list-item-title>
<fdp-list-item-actions>
<fdp-button>Delete</fdp-button>
</fdp-list-item-actions>
</fdp-list-item>
<fdp-list-item>
<fdp-list-item-title>Item 2</fdp-list-item-title>
<fdp-list-item-actions>
<fdp-button>Delete</fdp-button>
</fdp-list-item-actions>
</fdp-list-item>
<fdp-list-item>
<fdp-list-item-title>Item 3</fdp-list-item-title>
<fdp-list-item-actions>
<fdp-button>Delete</fdp-button>
</fdp-list-item-actions>
</fdp-list-item>
<fdp-list-footer>Footer</fdp-list-footer>
</fdp-list>
<!-- Byline list items -->
<fdp-list>
<fdp-list-group-header>Group Header</fdp-list-group-header>
<fdp-byline-list-item>
<fdp-list-item-title>Item 1</fdp-list-item-title>
<fdp-list-item-byline>
byline
<fdp-list-item-secondary-byline>secondary text</fdp-list-item-secondary-byline>
</fdp-list-item-byline>
<fdp-list-item-action><fdp-button>Delete</fdp-button></fdp-list-item-action>
</fdp-byline-list-item>
</fdp-list>
Sets whether or not to show item borders.
Sets whether or not the list will be selectable. If true
then all contained list items will have a checkbox element, and the element will emit a itemSelectChange
event upon user interaction.
When user clicks on any of the item checkboxes an itemSelectChange
event will be fired. The event payload will include the values
of items that were selected.
The List component expects its content to contain components of type ListItem
, BylineListItem
, ListGroupHeader
or ListFooter
.
Sets the data for the item which will be included in the itemSelectChange
payload if the item is selected.
This component identifies the title for the ListItem.
This component identifies additional information which will be right justified in the ListItem.
This component identifies the buttons which will be right justified in the ListItem.
Sets the data for the item which will be included in the itemSelectChange
payload if the item is selected.
This component identifies the title for the ListItem.
This component identifies the primary byline that will appear under the title, left justified.
This component identifies the secondary byline that will appear under the title, right justified.
This component identifies additional information which will be right justified in the ListItem.
This component identifies the buttons which will be right justified in the BylineListItem.
This component will display its text content as a group header.
This component will display its text content as the list footer.