Skip to main content

tw5-typed / core / IDomMakerOptions

Interface: IDomMakerOptions

core.IDomMakerOptions

Table of contents

Properties

Properties

attributes

Optional attributes: Record<string, unknown>

En

hashmap of attribute values

Zh

属性值的 map

Memberof

IDomMakerOptions

Defined in

src/utils/index.d.ts:22


children

Optional children: Element[]

En

array of further child nodes

Zh

其他子节点的数组

Memberof

IDomMakerOptions

Defined in

src/utils/index.d.ts:33


class

Optional class: string

En

class name(s)

Zh

元素的 class,多个则以空格分隔

Memberof

IDomMakerOptions

Defined in

src/utils/index.d.ts:44


document

Optional document: TWDocument

En

defaults to current document

Zh

默认为当前 document

Memberof

IDomMakerOptions

Defined in

src/utils/index.d.ts:55


eventListeners

Optional eventListeners: EventListener[]

En

array of event listeners (this option won't work until $tw.utils.addEventListeners() has been loaded)

Zh

事件监听器的数组(这个选项在$tw.utils.addEventListeners()被加载之前不会起作用)。

Memberof

IDomMakerOptions

Defined in

src/utils/index.d.ts:66


innerHTML

Optional innerHTML: string

En

optional HTML for element

Zh

元素的 HTML 内容

Memberof

IDomMakerOptions

Defined in

src/utils/index.d.ts:77


namespace

Optional namespace: string

Default

'http://www.w3.org/1999/xhtml'

Memberof

IDomMakerOptions

Defined in

src/utils/index.d.ts:84


style

Optional style: Partial<CSSStyleDeclaration>

En

Styles for Element

Zh

元素的样式

Memberof

IDomMakerOptions

Defined in

src/utils/index.d.ts:95


text

Optional text: string

En

text to add as a child node

Zh

添加为子节点的文本

Memberof

IDomMakerOptions

Defined in

src/utils/index.d.ts:106