src/list/list-item.directive.ts
Applies list styling to the item it is used on. Best used with lis.
| Selector | [cdsListItem], [ibmListItem] |
Properties |
HostBindings |
| class.cds--list__item |
Type : boolean
|
Default value : true
|
|
Defined in src/list/list-item.directive.ts:10
|
| wrapper |
Default value : true
|
Decorators :
@HostBinding('class.cds--list__item')
|
|
Defined in src/list/list-item.directive.ts:10
|
import { Directive, HostBinding } from "@angular/core";
/**
* Applies list styling to the item it is used on. Best used with `li`s.
*/
@Directive({
selector: "[cdsListItem], [ibmListItem]"
})
export class ListItemDirective {
@HostBinding("class.cds--list__item") wrapper = true;
}