Skip to content

Latest commit

 

History

History
444 lines (245 loc) · 9.54 KB

kui_shell_core.ElementMimic.md

File metadata and controls

444 lines (245 loc) · 9.54 KB

Kui API Documentation - v11.0.0 / @kui-shell/core / ElementMimic

Class: ElementMimic

@kui-shell/core.ElementMimic

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ElementMimic()

Properties

_attrs

Private _attrs: Object = {}

Index signature

▪ [key: string]: string

Defined in

packages/core/src/util/element-mimic.ts:76


_isFakeDom

Private Readonly _isFakeDom: true

Defined in

packages/core/src/util/element-mimic.ts:54


cells

cells: ElementMimic[] = []

Defined in

packages/core/src/util/element-mimic.ts:72


children

children: ElementMimic[] = []

Defined in

packages/core/src/util/element-mimic.ts:70


classList

classList: ClassList

Defined in

packages/core/src/util/element-mimic.ts:64


className

className: string = ''

Defined in

packages/core/src/util/element-mimic.ts:62


innerHTML

innerHTML: string = ''

Defined in

packages/core/src/util/element-mimic.ts:60


innerText

innerText: string = ''

Defined in

packages/core/src/util/element-mimic.ts:58


nodeType

nodeType: string = ''

Defined in

packages/core/src/util/element-mimic.ts:66


rows

rows: ElementMimic[] = []

Defined in

packages/core/src/util/element-mimic.ts:74


style

style: Object = {}

Index signature

▪ [key: string]: string

Defined in

packages/core/src/util/element-mimic.ts:68


value

value: string = ''

Defined in

packages/core/src/util/element-mimic.ts:56

Methods

addEventListener

addEventListener(): boolean

Returns

boolean

Defined in

packages/core/src/util/element-mimic.ts:118


appendChild

appendChild(c): number

Parameters

Name Type
c ElementMimic

Returns

number

Defined in

packages/core/src/util/element-mimic.ts:82


cloneNode

cloneNode(): ElementMimic

Returns

ElementMimic

Defined in

packages/core/src/util/element-mimic.ts:105


focus

focus(): void

Returns

void

Defined in

packages/core/src/util/element-mimic.ts:78


getAttribute

getAttribute(k): string

Parameters

Name Type
k string

Returns

string

Defined in

packages/core/src/util/element-mimic.ts:86


hasStyle

hasStyle(style, desiredValue?): string | boolean

Parameters

Name Type
style string
desiredValue? string | number

Returns

string | boolean

Defined in

packages/core/src/util/element-mimic.ts:122


insertCell

insertCell(idx): ElementMimic

Parameters

Name Type
idx number

Returns

ElementMimic

Defined in

packages/core/src/util/element-mimic.ts:146


insertRow

insertRow(idx): ElementMimic

Parameters

Name Type
idx number

Returns

ElementMimic

Defined in

packages/core/src/util/element-mimic.ts:136


querySelector

querySelector(): ElementMimic

Returns

ElementMimic

Defined in

packages/core/src/util/element-mimic.ts:114


querySelectorAll

querySelectorAll(selector): ElementMimic[]

Parameters

Name Type
selector string

Returns

ElementMimic[]

Defined in

packages/core/src/util/element-mimic.ts:110


recursiveInnerTextLength

recursiveInnerTextLength(): number

Returns

number

Defined in

packages/core/src/util/element-mimic.ts:130


remove

remove(): void

Returns

void

Defined in

packages/core/src/util/element-mimic.ts:95


removeAttribute

removeAttribute(k): string

Parameters

Name Type
k string

Returns

string

Defined in

packages/core/src/util/element-mimic.ts:99


setAttribute

setAttribute(k, v): string

Parameters

Name Type
k string
v string

Returns

string

Defined in

packages/core/src/util/element-mimic.ts:90


isFakeDom

Static isFakeDom(dom): dom is ElementMimic

Parameters

Name Type
dom any

Returns

dom is ElementMimic

Defined in

packages/core/src/util/element-mimic.ts:155