Resource Base
Table of contents

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.

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support