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:10 

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:17 

Parameters

tag

string

attr
children

(string | EL)[] = []

range

[number, number] | null

id?

number

Returns

EL

Properties

attr

attr: object

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

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:13 

The children of the element

Implementation of

JsonEL.children


id

id: number

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


range

range: [number, number] | null

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


tag

tag: string

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

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:36 

Returns

boolean

Methods

copy()

copy(deep, copyID): EL

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

Parameters

deep

boolean = true

copyID

boolean = false

Returns

EL


innerXML()

innerXML(withControlEl): string

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

Parameters

withControlEl

boolean = false

Returns

string


json()

json(withControlEl, withProperties): JsonEL

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

Parameters

withControlEl

boolean = false

withProperties

boolean = false

Returns

JsonEL


outerXML()

outerXML(withControlEl): string

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

Parameters

withControlEl

boolean = false

Returns

string


text()

text(): string

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

Returns

string


wrapXML()

wrapXML(inner): string

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

Parameters

inner

string

Returns

string

© 2017-2026 yamachi