Library
core
classes
Core Src Node El.el

Lawtext core references / core/src/node/el / EL

Class: EL

core/src/node/el.EL

EL: a simplified XML DOM functionality that implements JsonEL interface.

Hierarchy

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new EL(tag, attr?, children?, range?, id?): EL

Parameters

NameTypeDefault value
tagstringundefined
attrObject{}
children(string | EL)[][]
rangenull | [start: number, end: number]null
id?numberundefined

Returns

EL

Defined in

core/src/node/el/index.ts:17 (opens in a new tab)

Properties

attr

attr: Object

The attributes of the element

Index signature

▪ [key: string]: string | undefined

Implementation of

JsonEL.attr

Defined in

core/src/node/el/index.ts:12 (opens in a new tab)


children

children: (string | EL)[]

The children of the element

Implementation of

JsonEL.children

Defined in

core/src/node/el/index.ts:13 (opens in a new tab)


id

id: number

Defined in

core/src/node/el/index.ts:14 (opens in a new tab)


range

range: null | [start: number, end: number]

Defined in

core/src/node/el/index.ts:15 (opens in a new tab)


tag

tag: string

The tag name of the element

Implementation of

JsonEL.tag

Defined in

core/src/node/el/index.ts:11 (opens in a new tab)

Accessors

isControl

get isControl(): boolean

Returns

boolean

Defined in

core/src/node/el/index.ts:36 (opens in a new tab)

Methods

copy

copy(deep?, copyID?): EL

Parameters

NameTypeDefault value
deepbooleantrue
copyIDbooleanfalse

Returns

EL

Defined in

core/src/node/el/index.ts:40 (opens in a new tab)


innerXML

innerXML(withControlEl?): string

Parameters

NameTypeDefault value
withControlElbooleanfalse

Returns

string

Defined in

core/src/node/el/index.ts:109 (opens in a new tab)


json

json(withControlEl?, withProperties?): JsonEL

Parameters

NameTypeDefault value
withControlElbooleanfalse
withPropertiesbooleanfalse

Returns

JsonEL

Defined in

core/src/node/el/index.ts:56 (opens in a new tab)


outerXML

outerXML(withControlEl?): string

Parameters

NameTypeDefault value
withControlElbooleanfalse

Returns

string

Defined in

core/src/node/el/index.ts:105 (opens in a new tab)


text

text(): string

Returns

string

Defined in

core/src/node/el/index.ts:95 (opens in a new tab)


wrapXML

wrapXML(inner): string

Parameters

NameType
innerstring

Returns

string

Defined in

core/src/node/el/index.ts:101 (opens in a new tab)