@dapplets/dapplet-extension
Version:
The Bridge to the Augmented Web.
18 lines (17 loc) • 520 B
TypeScript
import { WidgetConfig } from './types';
export declare class State<T> {
private config;
readonly ctx: any;
private getTheme;
INITIAL_STATE: any;
_currentStateName: any;
state: T;
private _cache;
changedHandler: (newValues: Partial<T>) => void;
id: string;
constructor(config: WidgetConfig<T>, ctx: any, getTheme: () => string);
setState(stateName: string, resetState?: boolean): any;
getStateValues(): T;
private createNewStateFromConfig;
private _themifyState;
}