content-templates/page-section/src/lib/services/page-section.service.ts
Service that tracks all page sections on a page
Properties |
|
Methods |
| addSection | ||||||||
addSection(section: PageSectionInstance)
|
||||||||
|
Adds a section to be tracked
Parameters :
Returns :
void
|
| removeSection | ||||||||
removeSection(section: PageSectionInstance)
|
||||||||
|
Removes a section and stops tracking changes to it
Parameters :
Returns :
void
|
| Readonly linkableSections |
Type : unknown
|
Default value : computed(() => this.filterLinkableSections(this._sections()))
|
|
All sections that have an anchor id |
| Readonly sections |
Type : unknown
|
Default value : this._sections.asReadonly()
|
|
All sections |
| Readonly sortedSections |
Type : unknown
|
Default value : computed(() => this.sortSectionsByDomPosition(this.linkableSections()))
|
|
All sections with an anchor id sorted in dom order |