@lucsoft/webgen
Version:
Collection of lucsofts Components
26 lines (25 loc) • 994 B
TypeScript
import { Component } from "../types";
export declare const createElement: (type: string) => HTMLElement;
export declare function draw(component: Component): HTMLElement;
export declare function action(element: HTMLElement, type: string, value: unknown): void;
export declare const span: (message: undefined | string | HTMLElement, ...classList: string[]) => HTMLElement;
export declare const img: (source: string | undefined, ...classList: string[]) => HTMLImageElement;
export declare function custom(type: string, message: undefined | string | HTMLElement, ...classList: string[]): HTMLElement;
/**
* #Actions
* @value (list)
* @deprecated Please use Vertical()
*/
export declare function list(options: {
margin?: boolean;
style?: "none" | "default";
noHeigthLimit?: boolean;
}, ...listRaw: {
left: Component | string;
right?: Component | string;
click?: () => void;
actions?: {
type: Component;
click: () => void;
}[];
}[]): HTMLElement;