flowbite-angular
Version:
<div align="center"> <h1>:construction: flowbite-angular (unreleased) :construction:</h1> <p> <a href="https://flowbite.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src="https://flowbite.s3.amazonaws.com/github/logo-github
52 lines (51 loc) • 1.81 kB
TypeScript
import type { FlowbiteClass } from './type-definitions/flowbite.class';
import { Guid } from 'flowbite-angular/utils';
import type { OnInit } from '@angular/core';
import { Injector } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Base abstract component.
* Every flowbite-angular components has to extends on this one.
*/
export declare abstract class BaseComponent<TClass extends FlowbiteClass> implements OnInit {
/**
* `Injector` instance injected to be used as an injector context where there is no default one.
*
* @example
* ```
* public ngOnInit(): void {
* afterNextRender(
* () => {},
* { injector: this.injector }
* );
* }
* ```
*/
readonly injector: Injector;
/**
* Auto generated GUID for each flowbite-angular component
*
* Its default value is 00000000-0000-0000-0000-000000000000, and is set to a random GUID inside the `afterNextRender` hook
*/
readonly flowbiteId: import("@angular/core").WritableSignal<Guid>;
/**
* Computed signal storing the component classes used in its template
*/
contentClasses: import("@angular/core").Signal<TClass>;
/**
* Initialize component.
*
* A call to verify and init function is done. Then a new Guid is set in the `afterNextRender` hook.
*/
ngOnInit(): void;
/**
* Function loaded during `OnInit` lifecycle hook. It initialize requirments for the component.
*/
init(): void;
/**
* Function to load component's classes
*/
abstract fetchClass(): TClass;
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent<any>, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent<any>, never, never, {}, {}, never, never, true, never>;
}