Skip to Content
LibraryCoreSrcNodeElClassesClass: EL

Lawtext core references


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

Class: EL

Defined in: core/src/node/el/index.ts:11 

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

Extended by

Implements

Constructors

Constructor

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

Defined in: core/src/node/el/index.ts:18 

Parameters

tag

string

attr?

{[key: string]: string | undefined; }

children?

(string | EL)[] = []

range?

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

id?

number

Returns

EL

Properties

attr

attr: object

Defined in: core/src/node/el/index.ts:13 

The attributes of the element

Index Signature

[key: string]: string | undefined

Implementation of

JsonEL.attr


children

children: (string | EL)[]

Defined in: core/src/node/el/index.ts:14 

The children of the element

Implementation of

JsonEL.children


id

id: number

Defined in: core/src/node/el/index.ts:15 


range

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

Defined in: core/src/node/el/index.ts:16 


tag

tag: string

Defined in: core/src/node/el/index.ts:12 

The tag name of the element

Implementation of

JsonEL.tag

Accessors

isControl

Get Signature

get isControl(): boolean

Defined in: core/src/node/el/index.ts:37 

Returns

boolean

Methods

copy()

copy(deep?, copyID?): EL

Defined in: core/src/node/el/index.ts:41 

Parameters

deep?

boolean = true

copyID?

boolean = false

Returns

EL


innerXML()

innerXML(withControlEl?): string

Defined in: core/src/node/el/index.ts:110 

Parameters

withControlEl?

WithControlEl = false

Returns

string


json()

json(withControlEl?, withProperties?): JsonEL

Defined in: core/src/node/el/index.ts:57 

Parameters

withControlEl?

WithControlEl = false

withProperties?

boolean = false

Returns

JsonEL


outerXML()

outerXML(withControlEl?): string

Defined in: core/src/node/el/index.ts:106 

Parameters

withControlEl?

WithControlEl = false

Returns

string


text()

text(): string

Defined in: core/src/node/el/index.ts:96 

Returns

string


wrapXML()

wrapXML(inner): string

Defined in: core/src/node/el/index.ts:102 

Parameters

inner

string

Returns

string

© 2017-2026 yamachi