@viewdo/dxp-story-cli
Version:
DXP Story Management CLI
97 lines (96 loc) • 2.62 kB
TypeScript
import { Html } from './Html';
import { StateBase } from './StateBase';
export interface InputState extends StateBase {
form?: {
classes?: string;
label?: string;
labelHTML?: string;
labelTemplateUrl?: string;
submit?: {
classes?: string;
label?: string;
labelHTML?: string;
labelTemplateUrl?: string;
[]: any;
};
[]: any;
};
onSubmit?: {
[]: any;
}[];
inputs: [
{
id: string;
name: string;
type: string;
errors?: {
[]: any;
};
label?: string;
labelHTML?: string;
labelTemplateUrl?: string;
beforeHtml?: Html;
afterHtml?: Html;
settings?: {
input?: {
classes?: string;
[]: any;
};
container?: {
classes?: string;
[]: any;
};
width?: string;
[]: any;
};
attributes?: {
required?: boolean;
placeholder?: string;
minlength?: number;
maxlength?: number;
[]: any;
};
onChange?: {
[]: any;
}[];
[]: any;
},
{
id: string;
name: string;
type: string;
errors?: {
[]: any;
};
label?: string;
labelHTML?: string;
labelTemplateUrl?: string;
beforeHtml?: Html;
afterHtml?: Html;
settings?: {
input?: {
classes?: string;
[]: any;
};
container?: {
classes?: string;
[]: any;
};
width?: string;
[]: any;
};
attributes?: {
required?: boolean;
placeholder?: string;
minlength?: number;
maxlength?: number;
[]: any;
};
onChange?: {
[]: any;
}[];
[]: any;
}[]
];
[]: any;
}