-
Notifications
You must be signed in to change notification settings - Fork 129
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.
A list can optionally bind a datasource from which it can get item data.
<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>
<!-- List with a datasource -->
<fdp-list [datasource]="users">
<fdp-list-group-header>Users</fdp-list-group-header>
<ng-template #userTemplate let-item="item">
<fdp-byline-list-item>
<fdp-list-item-title>{{item.name}}</fdp-list-item-title>
<fdp-list-item-byline>{{item.email}}</fdp-list-item-byline>
<fdp-list-item-action><fdp-button>Send Note</fdp-button></fdp-list-item-action>
</fdp-byline-list-item>
</ng-template>
</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.
A datasource, string array, or observable which returns a string array.
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.
This is not the actual component tech spec for List. The correct one is List which is under review(as of 15th May) and therefore is not added to Platform Lib Home page wiki yet.
i18n section will be added to the new List tech spec.
From Sushma:
- Fiori3 defines below components under list types.Please refer below link for signature and further details.
- Object List Item
- Standard List Item
- Display List Item
- Grid List
- List
- Feed List Item
- Input List Item
- Action List Item