UNPKG

@nebular/theme

Version:
48 lines (47 loc) 1.97 kB
import { OnDestroy, OnInit, TemplateRef } from '@angular/core'; import { NbBooleanInput } from '../helpers'; import { NbChatCustomMessageService } from './chat-custom-message.service'; import * as i0 from "@angular/core"; /** * `[nbCustomMessage]` directive should be used as a structural directive or should be applied to the `ng-template`: * * ```html * <div *nbCustomMessage="'my-custom-type'; let data"> * <!-- custom message --> * </div> * ``` * or * ```html * <ng-template nbCustomMessage='my-custom-type' let-data> * <!-- custom message --> * </ng-template> * ``` */ export declare class NbChatCustomMessageDirective implements OnInit, OnDestroy { templateRef: TemplateRef<any>; protected customMessageService: NbChatCustomMessageService; /** * Defines a message type which should rendered with the custom message template. * @type {string} */ get nbCustomMessage(): string; set nbCustomMessage(value: string); protected _type: string; get type(): string; /** * Disables generic message styles, such as round corners, text color, background, etc., * so a custom message could be styled from the ground up. * * @type {boolean} */ set nbCustomMessageNoStyles(value: boolean); get nbCustomMessageNoStyles(): boolean; protected _noStyles: boolean; static ngAcceptInputType_noStyles: NbBooleanInput; get noStyles(): boolean; constructor(templateRef: TemplateRef<any>, customMessageService: NbChatCustomMessageService); ngOnInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NbChatCustomMessageDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NbChatCustomMessageDirective, "[nbCustomMessage]", never, { "nbCustomMessage": { "alias": "nbCustomMessage"; "required": false; }; "nbCustomMessageNoStyles": { "alias": "nbCustomMessageNoStyles"; "required": false; }; }, {}, never, never, false, never>; }