igniteui-angular
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
85 lines (84 loc) • 2.85 kB
TypeScript
import * as i0 from "@angular/core";
export declare const IgxDividerType: {
SOLID: "solid";
DASHED: "dashed";
};
export type IgxDividerType = (typeof IgxDividerType)[keyof typeof IgxDividerType];
export declare class IgxDividerDirective {
/**
* Sets/gets the `id` of the divider.
* If not set, `id` will have value `"igx-divider-0"`;
* ```html
* <igx-divider id="my-divider"></igx-divider>
* ```
* ```typescript
* let dividerId = this.divider.id;
* ```
*/
id: string;
/**
* Sets the value of `role` attribute.
* If not the default value of `separator` will be used.
*/
role: string;
/**
* Sets the type of the divider. The default value
* is `default`. The divider can also be `dashed`;
* ```html
* <igx-divider type="dashed"></igx-divider>
* ```
*/
type: IgxDividerType | string;
get isDashed(): boolean;
/**
* If set to `true` and an `inset` value has been provided,
* the divider will start shrinking from both ends.
* ```html
* <igx-divider [middle]="true"></igx-divider>
* ```
*/
middle: boolean;
/**
* Sets the divider in vertical orientation.
* ```html
* <igx-divider [vertical]="true"></igx-divider>
* ```
*/
vertical: boolean;
/**
* Sets the inset of the divider from the side(s).
* If the divider attribute `middle` is set to `true`,
* it will inset the divider on both sides.
* ```typescript
* this.divider.inset = '32px';
* ```
*/
set inset(value: string);
/**
* Gets the current divider inset in terms of
* inset-inline-start representation as applied to the divider.
* ```typescript
* const inset = this.divider.inset;
* ```
*/
get inset(): string;
/**
* Sets the value of the `inset` attribute.
* If not provided it will be set to `'0'`.
* ```html
* <igx-divider inset="16px"></igx-divider>
* ```
*/
private _inset;
/**
* A getter that returns `true` if the type of the divider is `default`;
* ```typescript
* const isDefault = this.divider.isDefault;
* ```
*/
get isSolid(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<IgxDividerDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxDividerDirective, "igx-divider", never, { "id": { "alias": "id"; "required": false; }; "role": { "alias": "role"; "required": false; }; "type": { "alias": "type"; "required": false; }; "middle": { "alias": "middle"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "inset": { "alias": "inset"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_middle: unknown;
static ngAcceptInputType_vertical: unknown;
}