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
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
element(tagName
, childrenOrAttributes?
, children?
): HTMLElement
Parameters
Name | Type |
---|---|
tagName |
string |
childrenOrAttributes? |
Attributes | Children |
children? |
Children |
Returns
Defined in
div
div(className?
, children?
): HTMLDivElement
Parameters
Name | Type |
---|---|
className? |
string |
children? |
Children |
Returns
Defined in
div(className?
, attributes?
, children?
): HTMLDivElement
Parameters
Name | Type |
---|---|
className? |
string |
attributes? |
Attributes |
children? |
Children |
Returns
Defined in
div(className?
, childrenOrAttributes?
, children?
): HTMLDivElement
Parameters
Name | Type |
---|---|
className? |
string |
childrenOrAttributes? |
Attributes | Children |
children? |
Children |
Returns
Defined in
sandbox
sandbox(): [HTMLElement
, HTMLIFrameElement
]
Returns
[HTMLElement
, HTMLIFrameElement
]
Defined in
span
span(className?
, children?
): HTMLSpanElement
Parameters
Name | Type |
---|---|
className? |
string |
children? |
Children |
Returns
Defined in
span(className?
, attributes?
, children?
): HTMLSpanElement
Parameters
Name | Type |
---|---|
className? |
string |
attributes? |
Attributes |
children? |
Children |
Returns
Defined in
span(className?
, childrenOrAttributes?
, children?
): HTMLSpanElement
Parameters
Name | Type |
---|---|
className? |
string |
childrenOrAttributes? |
Attributes | Children |
children? |
Children |
Returns
Defined in
a
a(className?
, children?
): HTMLAnchorElement
Parameters
Name | Type |
---|---|
className? |
string |
children? |
Children |
Returns
Defined in
a(className?
, attributes?
, children?
): HTMLAnchorElement
Parameters
Name | Type |
---|---|
className? |
string |
attributes? |
Attributes |
children? |
Children |
Returns
Defined in
a(className?
, childrenOrAttributes?
, children?
): HTMLAnchorElement
Parameters
Name | Type |
---|---|
className? |
string |
childrenOrAttributes? |
Attributes | Children |
children? |
Children |
Returns
Defined in
text
text(value
): Text
Create text node
Parameters
Name | Type |
---|---|
value |
string |
Returns
Defined in
fake
fake(): Text
Create invisible text node
Returns
Defined in
fragment
fragment(): DocumentFragment
Create HTML Document fragment element
Returns
Defined in
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
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