chordsheetjs
    Preparing search index...

    Class Paragraph

    Represents a paragraph of lines in a chord sheet

    Index

    Properties

    lines: Line[] = []

    The Line items of which the paragraph consists

    Accessors

    • get contents(): string

      Returns the paragraph contents as one string where lines are separated by newlines

      Returns string

    • get label(): null | string

      Returns the label of the paragraph. The label is the value of the first section delimiter tag in the first line.

      Returns null | string

    • get type(): string

      Tries to determine the common type for all lines. If the types for all lines are equal, it returns that type. If not, it returns INDETERMINATE For the possible values, see Line.type

      Returns string

    Methods

    • Indicates whether the paragraph only contains literals. If true, contents can be used to retrieve the paragraph contents as one string where lines are separated by newlines.

      Returns boolean