Lawtext core references / core/src/node/container / Container
Class: Container
Defined in: core/src/node/container/index.ts:60 (opens in a new tab)
Constructors
new Container()
new Container(
options):Container
Defined in: core/src/node/container/index.ts:76 (opens in a new tab)
Parameters
options
Returns
Properties
allSentenceEnvs
allSentenceEnvs:
SentenceEnv[]
Defined in: core/src/node/container/index.ts:74 (opens in a new tab)
children
children:
Container[] =[]
Defined in: core/src/node/container/index.ts:71 (opens in a new tab)
containerID
readonlycontainerID:string
Defined in: core/src/node/container/index.ts:63 (opens in a new tab)
el
readonlyel:EL
Defined in: core/src/node/container/index.ts:61 (opens in a new tab)
name
readonlyname:null|string
Defined in: core/src/node/container/index.ts:65 (opens in a new tab)
num
readonlynum:null|string
Defined in: core/src/node/container/index.ts:66 (opens in a new tab)
parent
parent:
null|Container=null
Defined in: core/src/node/container/index.ts:70 (opens in a new tab)
sentenceRange
sentenceRange: [
number,number]
Defined in: core/src/node/container/index.ts:68 (opens in a new tab)
subChildren
subChildren:
Container[] =[]
Defined in: core/src/node/container/index.ts:73 (opens in a new tab)
subParent
subParent:
null|Container=null
Defined in: core/src/node/container/index.ts:72 (opens in a new tab)
type
readonlytype:ContainerType
Defined in: core/src/node/container/index.ts:64 (opens in a new tab)
Methods
addChild()
addChild(
child):Container
Defined in: core/src/node/container/index.ts:105 (opens in a new tab)
Parameters
child
Returns
ancestorChildren()
ancestorChildren(
func):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:144 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
IterableIterator<Container>
ancestorChildrenSub()
ancestorChildrenSub(
func):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:193 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
IterableIterator<Container>
closest()
closest(
func):null|Container
Defined in: core/src/node/container/index.ts:124 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
null | Container
closestSub()
closestSub(
func):null|Container
Defined in: core/src/node/container/index.ts:179 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
null | Container
find()
find(
func?,cut?):null|Container
Defined in: core/src/node/container/index.ts:224 (opens in a new tab)
Parameters
func?
(container) => boolean
cut?
(container) => boolean
Returns
null | Container
findAll()
findAll(
func?,cut?):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:231 (opens in a new tab)
Parameters
func?
(container) => boolean
cut?
(container) => boolean
Returns
IterableIterator<Container>
findAncestorChildren()
findAncestorChildren(
func):null|Container
Defined in: core/src/node/container/index.ts:140 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
null | Container
findAncestorChildrenSub()
findAncestorChildrenSub(
func):null|Container
Defined in: core/src/node/container/index.ts:189 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
null | Container
iterate()
iterate(
func?,cut?):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:242 (opens in a new tab)
Parameters
func?
(container) => boolean
cut?
(container) => boolean
Returns
IterableIterator<Container>
iterateReverse()
iterateReverse(
func?,cut?):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:251 (opens in a new tab)
Parameters
func?
(container) => boolean
cut?
(container) => boolean
Returns
IterableIterator<Container>
linealAscendant()
linealAscendant(
func?):Container[]
Defined in: core/src/node/container/index.ts:134 (opens in a new tab)
Parameters
func?
(container) => boolean
Returns
next()
next(
func):null|Container
Defined in: core/src/node/container/index.ts:150 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
null | Container
nextAll()
nextAll(
func):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:154 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
IterableIterator<Container>
nextAllSub()
nextAllSub(
func):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:203 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
IterableIterator<Container>
nextSub()
nextSub(
func):null|Container
Defined in: core/src/node/container/index.ts:199 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
null | Container
parents()
parents(
func?):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:128 (opens in a new tab)
Parameters
func?
(container) => boolean
Returns
IterableIterator<Container>
parentsSub()
parentsSub(
func):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:183 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
IterableIterator<Container>
prev()
prev(
func):null|Container
Defined in: core/src/node/container/index.ts:162 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
null | Container
prevAll()
prevAll(
func):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:166 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
IterableIterator<Container>
prevAllSub()
prevAllSub(
func):IterableIterator<Container>
Defined in: core/src/node/container/index.ts:216 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
IterableIterator<Container>
prevSub()
prevSub(
func):null|Container
Defined in: core/src/node/container/index.ts:212 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
null | Container
thisOrClosest()
thisOrClosest(
func):null|Container
Defined in: core/src/node/container/index.ts:119 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
null | Container
thisOrClosestSub()
thisOrClosestSub(
func):null|Container
Defined in: core/src/node/container/index.ts:174 (opens in a new tab)
Parameters
func
(container) => boolean
Returns
null | Container