@cimo/jsmvcfw
Version:
Javascript mvc framework. Light, fast and secure.
19 lines (18 loc) • 1.36 kB
TypeScript
import { IvariableBind, IvariableHook, IvariableLink, Icontroller, IcallbackObserver, TvariableBindInput } from "./JsMvcFwInterface.js";
export declare const setUrlRoot: (urlRootValue: string) => string;
export declare const getUrlRoot: () => string;
export declare const setAppLabel: (appLabelValue: string) => string;
export declare const getAppLabel: () => string;
export declare const getControllerList: () => {
parent: Icontroller;
childrenList: Icontroller[];
}[];
export declare const renderTemplate: (controllerValue: Icontroller, controllerParent?: Icontroller, callback?: () => void) => void;
export declare const renderAfter: (controller: Icontroller) => Promise<void>;
export declare const variableHook: <T>(label: string, stateValue: T, controllerName: string) => IvariableHook<T>;
export declare const variableBind: <T extends Record<string, unknown>>(inputObject: TvariableBindInput<T>, controllerName: string) => { [A in keyof T]: IvariableBind<T[A]>; };
export declare const variableLink: <T>(controllerNameSource: string) => IvariableLink<T>;
export declare const elementObserver: (element: HTMLElement, callback: IcallbackObserver) => void;
export declare const elementObserverOff: (element: HTMLElement) => void;
export declare const elementObserverOn: (element: HTMLElement) => void;
export declare const frameworkReset: () => void;