-
Notifications
You must be signed in to change notification settings - Fork 129
Platform: Display List Item Component V1.0 Technical Design
kavya-b edited this page May 20, 2020
·
5 revisions
The display list item is the simplest list item. It shows content in the form of labels and text.
As forms are generally the preferred control for combining labels and fields, display list items are seldom used
<fdp-list
[id]="list Id"
[headerTitle]="header title"
[footerText]="footer text"
--------
>
<fdp-display-list-item *ngFor="let item of listItems"
[id]="{{item.id}}"
[key]="{{item.key}}"
[value]="{{item.value}}"
(click)="onitemPress">
</fdp-display-list-item>
</fdp-list>
id of the dislay list item it is optional.
key/name/label/title of the of item
value of the of item
Fires when item is clicked.
Template:
<li fd-list-item id="listitem”………………….>
<fd-object-status [inverted]="true|false" [clickable]="true|false"......
<ng-content></ng-content>
</li>
N/A
N/A
- List signature
- ObjectStatus
If we are not creating it as a component then we can have a fundamental-ngx existing list item directive to achieve this behavior. Are used along with this component.
Link to general support for i18n: Supporting internationalization in ngx/platform
Special Usecase: No
-
fdp-display-list-item
can be supported as:
<fdp-display-list-item *ngFor="let item of listItems"
[id]="{{item.id}}"
[key]="{{item.key}}"
i18n-value="@@value"
value="{{item.value}}"
(click)="onitemPress">
</fdp-display-list-item>
Redesign Required: No
Kevin:
- Remove
valueDirection
, 'RTL' should be handled internally by the component, ideally by CSS rules or alternatively using the RtlService -Done