1 | import * as i0 from "@angular/core";
|
2 | /**
|
3 | * List is a container component that wraps `nb-list-item` component.
|
4 | *
|
5 | * Basic example:
|
6 | * @stacked-example(Simple list, list/simple-list-showcase.component)
|
7 | *
|
8 | * `nb-list-item` accepts arbitrary content, so you can create a list of any components.
|
9 | *
|
10 | * ### Installation
|
11 | *
|
12 | * Import `NbListModule` to your feature module.
|
13 | * ```ts
|
14 | * @NgModule({
|
15 | * imports: [
|
16 | * // ...
|
17 | * NbListModule,
|
18 | * ],
|
19 | * })
|
20 | * export class PageModule { }
|
21 | * ```
|
22 | * ### Usage
|
23 | *
|
24 | * List of users:
|
25 | * @stacked-example(Users list, list/users-list-showcase.component)
|
26 | *
|
27 | * @styles
|
28 | *
|
29 | * list-item-divider-color:
|
30 | * list-item-divider-style:
|
31 | * list-item-divider-width:
|
32 | * list-item-padding:
|
33 | * list-item-text-color:
|
34 | * list-item-font-family:
|
35 | * list-item-font-size:
|
36 | * list-item-font-weight:
|
37 | * list-item-line-height:
|
38 | */
|
39 | export declare class NbListComponent {
|
40 | /**
|
41 | * Role attribute value
|
42 | *
|
43 | * @type {string}
|
44 | */
|
45 | role: string;
|
46 | static ɵfac: i0.ɵɵFactoryDeclaration<NbListComponent, never>;
|
47 | static ɵcmp: i0.ɵɵComponentDeclaration<NbListComponent, "nb-list", never, { "role": { "alias": "role"; "required": false; }; }, {}, never, ["nb-list-item"], false, never>;
|
48 | }
|
49 | /**
|
50 | * List item component is a grouping component that accepts arbitrary content.
|
51 | * It should be direct child of `nb-list` componet.
|
52 | */
|
53 | export declare class NbListItemComponent {
|
54 | /**
|
55 | * Role attribute value
|
56 | *
|
57 | * @type {string}
|
58 | */
|
59 | role: string;
|
60 | static ɵfac: i0.ɵɵFactoryDeclaration<NbListItemComponent, never>;
|
61 | static ɵcmp: i0.ɵɵComponentDeclaration<NbListItemComponent, "nb-list-item", never, { "role": { "alias": "role"; "required": false; }; }, {}, never, ["*"], false, never>;
|
62 | }
|