Kui API Documentation - v11.0.0 / @kui-shell/core / ElementMimic
@kui-shell/core.ElementMimic
- addEventListener
- appendChild
- cloneNode
- focus
- getAttribute
- hasStyle
- insertCell
- insertRow
- querySelector
- querySelectorAll
- recursiveInnerTextLength
- remove
- removeAttribute
- setAttribute
- isFakeDom
• new ElementMimic()
• Private
_attrs: Object
= {}
▪ [key: string
]: string
packages/core/src/util/element-mimic.ts:76
• Private
Readonly
_isFakeDom: true
packages/core/src/util/element-mimic.ts:54
• cells: ElementMimic
[] = []
packages/core/src/util/element-mimic.ts:72
• children: ElementMimic
[] = []
packages/core/src/util/element-mimic.ts:70
• classList: ClassList
packages/core/src/util/element-mimic.ts:64
• className: string
= ''
packages/core/src/util/element-mimic.ts:62
• innerHTML: string
= ''
packages/core/src/util/element-mimic.ts:60
• innerText: string
= ''
packages/core/src/util/element-mimic.ts:58
• nodeType: string
= ''
packages/core/src/util/element-mimic.ts:66
• rows: ElementMimic
[] = []
packages/core/src/util/element-mimic.ts:74
• style: Object
= {}
▪ [key: string
]: string
packages/core/src/util/element-mimic.ts:68
• value: string
= ''
packages/core/src/util/element-mimic.ts:56
▸ addEventListener(): boolean
boolean
packages/core/src/util/element-mimic.ts:118
▸ appendChild(c
): number
Name | Type |
---|---|
c |
ElementMimic |
number
packages/core/src/util/element-mimic.ts:82
▸ cloneNode(): ElementMimic
packages/core/src/util/element-mimic.ts:105
▸ focus(): void
void
packages/core/src/util/element-mimic.ts:78
▸ getAttribute(k
): string
Name | Type |
---|---|
k |
string |
string
packages/core/src/util/element-mimic.ts:86
▸ hasStyle(style
, desiredValue?
): string
| boolean
Name | Type |
---|---|
style |
string |
desiredValue? |
string | number |
string
| boolean
packages/core/src/util/element-mimic.ts:122
▸ insertCell(idx
): ElementMimic
Name | Type |
---|---|
idx |
number |
packages/core/src/util/element-mimic.ts:146
▸ insertRow(idx
): ElementMimic
Name | Type |
---|---|
idx |
number |
packages/core/src/util/element-mimic.ts:136
▸ querySelector(): ElementMimic
packages/core/src/util/element-mimic.ts:114
▸ querySelectorAll(selector
): ElementMimic
[]
Name | Type |
---|---|
selector |
string |
packages/core/src/util/element-mimic.ts:110
▸ recursiveInnerTextLength(): number
number
packages/core/src/util/element-mimic.ts:130
▸ remove(): void
void
packages/core/src/util/element-mimic.ts:95
▸ removeAttribute(k
): string
Name | Type |
---|---|
k |
string |
string
packages/core/src/util/element-mimic.ts:99
▸ setAttribute(k
, v
): string
Name | Type |
---|---|
k |
string |
v |
string |
string
packages/core/src/util/element-mimic.ts:90
▸ Static
isFakeDom(dom
): dom is ElementMimic
Name | Type |
---|---|
dom |
any |
dom is ElementMimic