Library
core
src
law
std
stdEL
interfaces
Sentence

Lawtext core referencesDocs


Lawtext core references / core/src/law/std/stdEL / Sentence

Interface: Sentence

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

Extends

Properties

attr

attr: object

The attributes of the element

Function?

optional Function: "main" | "proviso"

Indent?

optional Indent: "Paragraph" | "Item" | "Subitem1" | "Subitem2" | "Subitem3" | "Subitem4" | "Subitem5" | "Subitem6" | "Subitem7" | "Subitem8" | "Subitem9" | "Subitem10"

Num?

optional Num: string

WritingMode?

optional WritingMode: "vertical" | "horizontal"

Overrides

_StdEL.attr

Defined in

core/src/law/std/stdEL.ts:1256 (opens in a new tab)


children

children: (string | ArithFormula | QuoteStruct | Ruby | Line | Sup | Sub | __EL)[]

The children of the element

Overrides

_StdEL.children

Defined in

core/src/law/std/stdEL.ts:1262 (opens in a new tab)


id

id: number

Inherited from

_StdEL.id

Defined in

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


isControl

isControl: false

Inherited from

_StdEL.isControl

Defined in

core/src/law/std/stdEL.ts:152 (opens in a new tab)


range

range: null | [number, number]

Inherited from

_StdEL.range

Defined in

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


tag

tag: "Sentence"

The tag name of the element

Overrides

_StdEL.tag

Defined in

core/src/law/std/stdEL.ts:1255 (opens in a new tab)

Methods

copy()

copy(deep, copyID): EL

Parameters

deep: boolean = true

copyID: boolean = false

Returns

EL

Inherited from

_StdEL.copy

Defined in

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


innerXML()

innerXML(withControlEl): string

Parameters

withControlEl: boolean = false

Returns

string

Inherited from

_StdEL.innerXML

Defined in

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


json()

json(withControlEl, withProperties): JsonEL

Parameters

withControlEl: boolean = false

withProperties: boolean = false

Returns

JsonEL

Inherited from

_StdEL.json

Defined in

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


outerXML()

outerXML(withControlEl): string

Parameters

withControlEl: boolean = false

Returns

string

Inherited from

_StdEL.outerXML

Defined in

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


text()

text(): string

Returns

string

Inherited from

_StdEL.text

Defined in

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


wrapXML()

wrapXML(inner): string

Parameters

inner: string

Returns

string

Inherited from

_StdEL.wrapXML

Defined in

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