UiConfig
Syntax
interface UiConfig {
type: string;
flexDirection?: string;
id?: string;
className?: string;
style?: CSSStyleDeclaration;
tooltip?: string;
events?: Record<string, string>;
children?: (UiConfig | string)[];
}
Attributes
type
The type of the element.
Supported value: Dynamsoft.DDV.Elements.Layout
, Dynamsoft.DDV.Elements.Button
and built-in elements.
flexDirection
The flexDirection of the element. Only takes effect when type
is Dynamsoft.DDV.Elements.Layout
.
Supported value: column
, row
Default value is row
.
id
The id of Dom Element. If it is not specified, a random string will be generated.
className
The className of CSS.
style
The style which will cover CSS.
tooltip
The tooltip of the element. Only takes effect when type
is Dynamsoft.DDV.Elements.Button
and built-in elements.
events
The event of the element. Only takes effect when type
is Dynamsoft.DDV.Elements.Button
and built-in elements.
children
Only takes effect when type
is Dynamsoft.DDV.Elements.Layout
.