-
Notifications
You must be signed in to change notification settings - Fork 137
Platform: Display List Item Component V1.0 Technical Design
Kevin Okamoto edited this page Mar 11, 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}}"
[valueDirection]="{{item.(ltr|rtl|default)}}"
(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
Position text of the item value in below positions.
- LTR (left-to-right): left-to-right text direction
- RTL (right-to-left): right-to-left text direction
- default: the item value inherits the text direction from its parent controller.
export type Direction = 'ltr'|'rtl'|'default';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.
Kevin:
- Remove
valueDirection, 'RTL' should be handled internally by the component, ideally by CSS rules or alternatively using the RtlService