Lawtext core references / core/src/node/el/controls/declaration / ____Declaration
Class: ____Declaration
core/src/node/el/controls/declaration.____Declaration
EL: a simplified XML DOM functionality that implements JsonEL interface.
Hierarchy
-
↳
____Declaration
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new ____Declaration(options
): ____Declaration
Parameters
Name | Type |
---|---|
options | DeclarationOptions |
Returns
Overrides
Defined in
core/src/node/el/controls/declaration.ts:54 (opens in a new tab)
Properties
attr
• attr: Object
The attributes of the element
Type declaration
Name | Type |
---|---|
declarationID | string |
name | string |
nameSentenceTextRange | string |
scope | string |
type | string |
value? | string |
Overrides
Defined in
core/src/node/el/controls/declaration.ts:20 (opens in a new tab)
children
• children: (string
| Ruby
| Sup
| Sub
| __EL
)[]
The children of the element
Overrides
Defined in
core/src/node/el/controls/declaration.ts:28 (opens in a new tab)
id
• id: number
Inherited from
Defined in
core/src/node/el/index.ts:14 (opens in a new tab)
nameSentenceTextRangeCache
• Private
nameSentenceTextRangeCache: null
| [str: string, value: SentenceTextRange] = null
Defined in
core/src/node/el/controls/declaration.ts:40 (opens in a new tab)
range
• range: null
| [start: number, end: number]
Inherited from
Defined in
core/src/node/el/index.ts:15 (opens in a new tab)
scopeCache
• Private
scopeCache: null
| [str: string, value: SentenceTextRange[]] = null
Defined in
core/src/node/el/controls/declaration.ts:30 (opens in a new tab)
tag
• tag: "____Declaration"
The tag name of the element
Overrides
Defined in
core/src/node/el/controls/declaration.ts:18 (opens in a new tab)
Accessors
isControl
• get
isControl(): true
Returns
true
Overrides
EL.isControl
Defined in
core/src/node/el/controls/declaration.ts:19 (opens in a new tab)
nameSentenceTextRange
• get
nameSentenceTextRange(): SentenceTextRange
Returns
Defined in
core/src/node/el/controls/declaration.ts:41 (opens in a new tab)
• set
nameSentenceTextRange(value
): void
Parameters
Name | Type |
---|---|
value | SentenceTextRange |
Returns
void
Defined in
core/src/node/el/controls/declaration.ts:50 (opens in a new tab)
scope
• get
scope(): SentenceTextRange
[]
Returns
Defined in
core/src/node/el/controls/declaration.ts:31 (opens in a new tab)
Methods
copy
▸ copy(deep?
, copyID?
): EL
Parameters
Name | Type | Default value |
---|---|---|
deep | boolean | true |
copyID | boolean | false |
Returns
Inherited from
Defined in
core/src/node/el/index.ts:40 (opens in a new tab)
innerXML
▸ innerXML(withControlEl?
): string
Parameters
Name | Type | Default value |
---|---|---|
withControlEl | boolean | false |
Returns
string
Inherited from
Defined in
core/src/node/el/index.ts:109 (opens in a new tab)
json
▸ json(withControlEl?
, withProperties?
): JsonEL
Parameters
Name | Type | Default value |
---|---|---|
withControlEl | boolean | false |
withProperties | boolean | false |
Returns
Inherited from
Defined in
core/src/node/el/index.ts:56 (opens in a new tab)
outerXML
▸ outerXML(withControlEl?
): string
Parameters
Name | Type | Default value |
---|---|---|
withControlEl | boolean | false |
Returns
string
Inherited from
Defined in
core/src/node/el/index.ts:105 (opens in a new tab)
text
▸ text(): string
Returns
string
Inherited from
Defined in
core/src/node/el/index.ts:95 (opens in a new tab)
wrapXML
▸ wrapXML(inner
): string
Parameters
Name | Type |
---|---|
inner | string |
Returns
string