UNPKG

@skyux/layout

Version:

This library was generated with [Nx](https://nx.dev).

38 lines (37 loc) 2.09 kB
import { AfterContentInit, ChangeDetectorRef, ElementRef, OnDestroy, QueryList } from '@angular/core'; import { SkyDescriptionListAdapterService } from './description-list-adapter-service'; import { SkyDescriptionListContentComponent } from './description-list-content.component'; import { SkyDescriptionListService } from './description-list.service'; import { SkyDescriptionListModeType } from './types/description-list-mode-type'; import * as i0 from "@angular/core"; /** * Creates a description list to display term-description pairs. */ export declare class SkyDescriptionListComponent implements AfterContentInit, OnDestroy { #private; /** * The default description to display when no description is provided * for a term-description pair. * @default "None found" */ set defaultDescription(value: string); /** * The width of term-description pairs when `mode` is set to `"horizontal"`. By default, * the width is responsive based on the width of the container element. */ listItemWidth: string | undefined; /** * How to display term-description pairs within the description list. * @default "vertical" */ set mode(value: SkyDescriptionListModeType | undefined); get mode(): SkyDescriptionListModeType; contentComponents: QueryList<SkyDescriptionListContentComponent> | undefined; elementRef: ElementRef | undefined; constructor(adapterService: SkyDescriptionListAdapterService, changeDetector: ChangeDetectorRef, descriptionListService: SkyDescriptionListService); ngAfterContentInit(): void; ngOnDestroy(): void; onWindowResize(): void; static ɵfac: i0.ɵɵFactoryDeclaration<SkyDescriptionListComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SkyDescriptionListComponent, "sky-description-list", never, { "defaultDescription": { "alias": "defaultDescription"; "required": false; }; "listItemWidth": { "alias": "listItemWidth"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, {}, ["contentComponents"], never, false, never>; }