apphouse
Version:
Component library for React that uses observable state management and theme-able components.
32 lines (31 loc) • 1.05 kB
TypeScript
/// <reference types="react" />
import { AppBase } from '../app/AppBase';
import { FeedbackType } from '../models/Feedback';
/**
* Default store for Apphouse
* Your store must extend this class
*/
export declare class ApphouseStore {
/**
* A random uuid for the app
* This number is used to ensure that the appStore is unique
* and you are accessing the correct store
*/
uuid: string;
/**
* The base app
*/
app: AppBase;
constructor(appName: string);
get path(): string;
get theme(): import("../styles/defaults/themes.interface").ApphouseTheme;
get routes(): import("../app/routing/route.interface").Route[];
open: (path: string, title?: string, onOpen?: () => void) => void;
openPopup: (popup: JSX.Element) => void;
alert: (settings: FeedbackType) => void;
/**
* Call this method to close a popup in the app
* @param popupId the popup you want to close, if not provided, the last opened popup will be closed
*/
closePopup: (popupId?: string) => void;
}