Lawtext core references / core/src/node/el / EL
Class: EL
Defined in: core/src/node/el/index.ts:10 (opens in a new tab)
EL: a simplified XML DOM functionality that implements JsonEL interface.
Extended by
__EL_StdEL____Declaration____LawNum____LawRef__Parentheses__PContent__PStart__PEnd__MismatchStartParenthesis__MismatchEndParenthesis____PF____Pointer____PointerRange____PointerRanges__Text____VarRef
Implements
Constructors
new EL()
new EL(
tag,attr,children,range,id?):EL
Defined in: core/src/node/el/index.ts:17 (opens in a new tab)
Parameters
tag
string
attr
children
(string | EL)[] = []
range
null | [number, number]
id?
number
Returns
Properties
attr
attr:
object
Defined in: core/src/node/el/index.ts:12 (opens in a new tab)
The attributes of the element
Index Signature
[key: string]: undefined | string
Implementation of
children
children: (
string|EL)[]
Defined in: core/src/node/el/index.ts:13 (opens in a new tab)
The children of the element
Implementation of
id
id:
number
Defined in: core/src/node/el/index.ts:14 (opens in a new tab)
range
range:
null| [number,number]
Defined in: core/src/node/el/index.ts:15 (opens in a new tab)
tag
tag:
string
Defined in: core/src/node/el/index.ts:11 (opens in a new tab)
The tag name of the element
Implementation of
Accessors
isControl
Get Signature
get isControl():
boolean
Defined in: core/src/node/el/index.ts:36 (opens in a new tab)
Returns
boolean
Methods
copy()
copy(
deep,copyID):EL
Defined in: core/src/node/el/index.ts:40 (opens in a new tab)
Parameters
deep
boolean = true
copyID
boolean = false
Returns
innerXML()
innerXML(
withControlEl):string
Defined in: core/src/node/el/index.ts:109 (opens in a new tab)
Parameters
withControlEl
boolean = false
Returns
string
json()
json(
withControlEl,withProperties):JsonEL
Defined in: core/src/node/el/index.ts:56 (opens in a new tab)
Parameters
withControlEl
boolean = false
withProperties
boolean = false
Returns
outerXML()
outerXML(
withControlEl):string
Defined in: core/src/node/el/index.ts:105 (opens in a new tab)
Parameters
withControlEl
boolean = false
Returns
string
text()
text():
string
Defined in: core/src/node/el/index.ts:95 (opens in a new tab)
Returns
string
wrapXML()
wrapXML(
inner):string
Defined in: core/src/node/el/index.ts:101 (opens in a new tab)
Parameters
inner
string
Returns
string