@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
38 lines (37 loc) • 1.27 kB
TypeScript
export class GlobalStatusProviderItem {
constructor(id: any, props?: any);
internal_id: any;
onUpdate(event: any): void;
forceRerender(globalStatus: any, props: any, { buffer_delay, isEmpty }?: {
buffer_delay?: number;
isEmpty?: boolean;
}): void;
_bufferDelayId: NodeJS.Timeout;
init(props: any): any;
add(props: any, opts?: {}): any;
get(status_id: any): any;
update(status_id: any, newProps: any, opts?: {}): void;
stack: any[];
restack(status_id: any): void;
remove(status_id: any, opts?: {}): void;
empty(): void;
_onUpdateEvents: any[];
_onReadyEvents: any[];
unbind(): void;
isReady(): boolean;
addOnReady(status: any, cb: any): void;
globalStatus: {};
}
export default GlobalStatusProvider;
declare class GlobalStatusProvider {
static providers: {};
static create: (id?: string, props?: any) => GlobalStatusProviderItem;
static init(id?: string, onReady?: any, props?: any): any;
static get(id?: string): any;
static remove(id?: string): void;
static prepareItemWithStatusId(item: any, status_id?: any): any;
static combineMessages(stack: any): any;
}
declare namespace GlobalStatusProvider {
let _supportsSpacingProps: boolean;
}