libs/upp-wdgt/src/components/upp-grid/upp-grid.ts
Represents an individual item in the grid. This component supports view mode changes ('GRID' or 'LIST').
AfterContentInit
| providers |
{
provide: ViewModeDirective, useExisting: forwardRef(() => UppGridItemComponent)
}
|
| selector | upp-grid-item |
| template | |
Properties |
Methods |
Accessors |
| ngAfterContentInit |
ngAfterContentInit()
|
|
Lifecycle hook that runs after content initialization. Ensures any child items are updated with the current view mode.
Returns :
void
|
| items |
Type : QueryList<ViewModeDirective>
|
Decorators :
@ContentChildren(ViewModeDirective, {descendants: true})
|
|
identifies the list of upp-grid-item in the template |
| viewMode | ||||||||
getviewMode()
|
||||||||
|
Gets the current view mode.
Returns :
"GRID" | "LIST"
|
||||||||
setviewMode(value: "GRID" | "LIST")
|
||||||||
|
Sets the view mode and updates child items if the value has changed.
Parameters :
Returns :
void
|