Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Section

Hierarchy

  • NPXObject
    • Section

Implements

Index

Constructors

constructor

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

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

    Returns Section

Properties

Readonly internalRef

internalRef: string

Readonly notes

notes: Note[] = []

parent

parent: undefined | string | Parent

Readonly sections

sections: Section[] = []

Readonly title

title: string

Methods

addNote

addSection

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

Protected generateGuid

  • generateGuid(): string
  • Returns string

search

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

    • query: string

    Returns Note[]

toMarkdown

  • toMarkdown(assets: Asset[]): Promise<MarkdownNote[]>
  • Parameters

    Returns Promise<MarkdownNote[]>

toXmlObject

  • toXmlObject(): any
  • Returns any

Generated using TypeDoc