List Tree
LmnListComponent
import { LmnListComponent } from '@elemental/ui';
Decorators: |
|
Selectors: |
|
Useselector to use this component as a tree list.
lmn-list-tree
Properties
Name | Type | Description |
---|---|---|
activeItem r |
| The value of the active List Item. It is only applied to TABLIST and NAVIGATION Lists, and only if they are root Lists. |
allowReordering r |
| Whether to allow reordering (drag & drop) of the List Items. |
changeActiveItem r |
| Emitted when the user attempts to change the active List Item. If a listener is attached to this Output, then it is necessary to send back a confirmation in the canActivate subject in order to let the List component know the change is allowed. |
id r |
| The id of the List. If not passed, a serial unique id is generated and applied to the host. |
nativeElement r | HTMLElement | |
negative r |
| Whether the List should be rendered with negative colors or not. |
role r |
| Custom role. It is only applied when using the |
root r |
| If set to true, the List is treated as a Root List, and not as a sub-list of any parent Lists. For example, when we display a List containing a set of Items, each of which has some contextual actions revealed in a Popover, we want that List of actions to be unrelated from the parent List, both semantically and stylistically (i.e. indentation). By setting root=true on the Actions List, we start a new "stack" of Lists. If no parent Lists are found in the DOM, then this Input is ignored. |
selectionControlsPosition r |
| Whether to show the selection controls on the start or end edge of the List Items. |
selectionMode r |
| The selection mode (none, radio, checkbox, toggle) for all the List Items included in the List. If the passed selection mode is not supported for the current type of List, it is coerced to "none". Supported selection modes:
|
showDividers r |
| Whether to show the dividers between List Items. |
Methods
requestToActivateItem() | ||||||
---|---|---|---|---|---|---|
Requests the activation of a List Item. NotesThis method creates a Subject to check if activation can proceed and emits an event to activate the item. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setFocusableItem() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Set one of the item as the focusable one, and optionally focus it. It's necessary only on list:
On the following list the items are already always focusable:
On the following list, the focus is not managed by the list itself but on the list item title
| |||||||||
Presentation
| |||||||||
Parameters
Returnsvoid |
LmnListService
import { LmnListService } from '@elemental/ui';
Decorators: |
|
Properties
Name | Type | Description |
---|---|---|
activeItem r |
| The value of the active List Item. It is only applied to Tablist and Navigation Lists, and only if they are root. |
allowReordering r |
| Whether reordering the List Items in the current List is allowed. It is not inherited from the parent List. |
id r |
| The ID of the List. It is not inherited from the parent List. |
isRoot r |
| Whether the List is a Root List. If no #parentListService exists, then the List is a Root List regardless of the passed value. |
listDepth r |
| Set the list depth. |
mode r |
| The List Mode. The getter function returns the validated List Mode (see documentation for the getListValidMode function). |
negative r |
| Whether the List is negative. If not set, it is inherited from the parent List. |
requestToActiveItem$ r |
| An observable to request the activation of a specific List Item. Used to allow communication from the child List to Parent List. |
role r |
| The List role. If a custom role is set, it is only applied when using the |
selectionControlsPosition r |
| Whether to show the selection controls on the start or end edge of the List Items. If not set, it is inherited from the parent List. |
selectionMode r |
| The current selection mode for the List. It is not inherited from the parent List. The getter function returns the validated List Selection Mode, basing on the List Mode. |
showDividers r |
| Whether to show the dividers between List Items. If not set, it is inherited from the parent List. |
Accessors
get formGroup |
---|
The form group directive associated with the List. |
Presentation
|
Type |
set formGroup |
---|
No documentation has been provided. |
Presentation
|
Type |
Methods
requestToActivateItem() | ||||||
---|---|---|---|---|---|---|
No documentation has been provided. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setActiveItem() | ||||||
---|---|---|---|---|---|---|
Set the active List Item value of the List. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setAllowReordering() | ||||||
---|---|---|---|---|---|---|
Set the allow reordering value of the List. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setId() | ||||||
---|---|---|---|---|---|---|
Set the ID of the List. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setIsRoot() | ||||||
---|---|---|---|---|---|---|
Set the isRoot value of the List. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setMode() | ||||||
---|---|---|---|---|---|---|
Set the List Mode. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setNegative() | ||||||
---|---|---|---|---|---|---|
Set the negative value of the List. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setRole() | ||||||
---|---|---|---|---|---|---|
The List depth. It is calculated basing on the value of isRoot:
| ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setSelectionControlsPosition() | ||||||
---|---|---|---|---|---|---|
Set the selection controls position of the List. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setSelectionMode() | ||||||
---|---|---|---|---|---|---|
Set the selection mode of the List. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setShowDividers() | ||||||
---|---|---|---|---|---|---|
Set the show dividers value of the List. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
updateListKeyManagerDefaultState() |
---|
Updates the default state of the ListKeyManager directive, in order for the first selected/active item to become the first to be focused the next time we enter the List. |
Presentation
|
Returnsvoid |
LmnListItemComponent
import { LmnListItemComponent } from '@elemental/ui';
Decorators: |
|
Selectors: | a[ |
Properties
Name | Type | Description |
---|---|---|
listItemDirective r |
| |
nativeElement r | HTMLElement |
Accessors
get trigger |
---|
No documentation has been provided. |
Presentation |
Type |
Methods
focus() |
---|
No documentation has been provided. |
Presentation
|
Returnsvoid |
getTextContent() |
---|
No documentation has been provided. |
Presentation
|
Returnsstring |
setParentListService() | ||||||
---|---|---|---|---|---|---|
No documentation has been provided. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
LmnListItemTitleComponent
import { LmnListItemTitleComponent } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
Properties
Name | Type | Description |
---|---|---|
nativeElement r | HTMLElement |
Methods
focus() |
---|
Focuses the title text element. |
Presentation
|
Returnsvoid |
LmnListItemDescriptionComponent
import { LmnListItemDescriptionComponent } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
Properties
Name | Type | Description |
---|---|---|
nativeElement r | HTMLElement |
LmnListItemSlotStartComponent
import { LmnListItemSlotStartComponent } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
LmnListItemSlotEndComponent
import { LmnListItemSlotEndComponent } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
LmnListItemLinkDirective
import { LmnListItemLinkDirective } from '@elemental/ui';
Decorators: |
|
Selectors: | [lmnListItemLink] |
Properties
Name | Type | Description |
---|---|---|
linkDisabled r |
| |
linkDisabledDataAttr r |
|
LmnListItemGroupComponent
import { LmnListItemGroupComponent } from '@elemental/ui';
Decorators: |
|
Selectors: |
|
Properties
Name | Type | Description |
---|---|---|
isRoot r |
| |
nativeElement r | HTMLElement | |
negative r |
| |
showDividers r |
| Whether to show the dividers between the List Items and below the Group title. |
showTopDivider r |
|
LmnListItemGroupTitleComponent
import { LmnListItemGroupTitleComponent } from '@elemental/ui';
Decorators: |
|
Selectors: |
|
Properties
Name | Type | Description |
---|---|---|
nativeElement r | HTMLElement |
LmnListItemGroupService
import { LmnListItemGroupService } from '@elemental/ui';
Decorators: |
|
Properties
Name | Type | Description |
---|---|---|
depth r |
| |
id r |
| |
isRoot r |
| |
negative r |
| |
showDividers r |
| |
showTopDivider r |
| Whether to show the divider on top of the List Item Group. |
titleId r |
|
Methods
setId() | ||||||
---|---|---|---|---|---|---|
The ID of the List Item. If not set, it is inherited from the parent List. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setListService() | ||||||
---|---|---|---|---|---|---|
No documentation has been provided. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setShowDividers() | ||||||
---|---|---|---|---|---|---|
Whether to show the dividers between List Items. If not set, it is inherited from the parent List. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |