@velis/dynamicforms
Version:
Data entry boilerplate components and a RESTful API consumer
17 lines • 801 B
TypeScript
/**
* DisplayMode enum provides an enumeration for supported ways of rendering a particular object in the DOM
*/
declare enum DisplayMode {
SUPPRESS = 1,// Field will be entirely suppressed. it will not render (not even to JSON) and will not parse for PUT
HIDDEN = 5,// Field will render as <input type="hidden"> or <tr data-field_name>
INVISIBLE = 8,// Field will render completely, but with display: none. Equal to setting its style = {display: none}
FULL = 10
}
export declare const defaultDisplayMode = DisplayMode.FULL;
declare namespace DisplayMode {
function fromString(mode: string): DisplayMode;
function fromAny(mode: any): DisplayMode;
function isDefined(mode: number | string): boolean;
}
export default DisplayMode;
//# sourceMappingURL=display-mode.d.ts.map