ICreate

types.ICreate

Implemented by

element

element<K>(tagName, children?): HTMLElementTagNameMap[K]

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
tagName K
children? Children

Returns

HTMLElementTagNameMap[K]

Defined in

src/types/create.d.ts#23

element<K>(tagName, attributes?, children?): HTMLElementTagNameMap[K]

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
tagName K
attributes? Attributes
children? Children

Returns

HTMLElementTagNameMap[K]

Defined in

src/types/create.d.ts#27

element(tagName, childrenOrAttributes?, children?): HTMLElement

Parameters

Name Type
tagName string
childrenOrAttributes? Attributes | Children
children? Children

Returns

HTMLElement

Defined in

src/types/create.d.ts#32


div

div(className?, children?): HTMLDivElement

Parameters

Name Type
className? string
children? Children

Returns

HTMLDivElement

Defined in

src/types/create.d.ts#38

div(className?, attributes?, children?): HTMLDivElement

Parameters

Name Type
className? string
attributes? Attributes
children? Children

Returns

HTMLDivElement

Defined in

src/types/create.d.ts#39

div(className?, childrenOrAttributes?, children?): HTMLDivElement

Parameters

Name Type
className? string
childrenOrAttributes? Attributes | Children
children? Children

Returns

HTMLDivElement

Defined in

src/types/create.d.ts#44


sandbox

sandbox(): [HTMLElement, HTMLIFrameElement]

Returns

[HTMLElement, HTMLIFrameElement]

Defined in

src/types/create.d.ts#50


span

span(className?, children?): HTMLSpanElement

Parameters

Name Type
className? string
children? Children

Returns

HTMLSpanElement

Defined in

src/types/create.d.ts#52

span(className?, attributes?, children?): HTMLSpanElement

Parameters

Name Type
className? string
attributes? Attributes
children? Children

Returns

HTMLSpanElement

Defined in

src/types/create.d.ts#53

span(className?, childrenOrAttributes?, children?): HTMLSpanElement

Parameters

Name Type
className? string
childrenOrAttributes? Attributes | Children
children? Children

Returns

HTMLSpanElement

Defined in

src/types/create.d.ts#58


a

a(className?, children?): HTMLAnchorElement

Parameters

Name Type
className? string
children? Children

Returns

HTMLAnchorElement

Defined in

src/types/create.d.ts#64

a(className?, attributes?, children?): HTMLAnchorElement

Parameters

Name Type
className? string
attributes? Attributes
children? Children

Returns

HTMLAnchorElement

Defined in

src/types/create.d.ts#65

a(className?, childrenOrAttributes?, children?): HTMLAnchorElement

Parameters

Name Type
className? string
childrenOrAttributes? Attributes | Children
children? Children

Returns

HTMLAnchorElement

Defined in

src/types/create.d.ts#70


text

text(value): Text

Create text node

Parameters

Name Type
value string

Returns

Text

Defined in

src/types/create.d.ts#79


fake

fake(): Text

Create invisible text node

Returns

Text

Defined in

src/types/create.d.ts#84


fragment

fragment(): DocumentFragment

Create HTML Document fragment element

Returns

DocumentFragment

Defined in

src/types/create.d.ts#89


fromHTML

fromHTML<T>(html, refs?): T

Create DOM element from HTML text

Type parameters

Name Type
T extends HTMLElement

Parameters

Name Type
html string
refs? IDictionary<boolean>

Returns

T

Defined in

src/types/create.d.ts#94


applyCreateAttributes

applyCreateAttributes(elm): void

Apply to element createAttributes options

Parameters

Name Type
elm HTMLElement

Returns

void

Defined in

jodit/src/types/create.d.ts:102