Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Section

Hierarchy

Implements

Index

Constructors

constructor

  • new Section(title: string, sections?: Section[], notes?: Note[], internalRef?: undefined | string, parent?: Parent | string): Section
  • Parameters

    • title: string
    • Default value sections: Section[] = []
    • Default value notes: Note[] = []
    • Optional internalRef: undefined | string
    • Optional parent: Parent | string

    Returns Section

Properties

Readonly internalRef

internalRef: string

Readonly notes

notes: Note[]

parent

parent: Parent | string | undefined

Readonly sections

sections: Section[]

Readonly title

title: string

Methods

addNote

  • Parameters

    Returns Section

addSection

  • Parameters

    Returns Section

Protected clean

  • clean(str: string): string
  • Parameters

    • str: string

    Returns string

    The string without certain values that could cause parsing issues in the future

clone

  • Parameters

    • Default value opts: Partial<Section> = {}

    Returns Section

Protected generateGuid

  • generateGuid(): string

search

  • search(query: string): Note[]
  • Parameters

    • query: string

    Returns Note[]

toMarkdown

  • Parameters

    Returns Promise<MarkdownNote[]>

toXmlObject

  • toXmlObject(): any

Generated using TypeDoc