Class RowedAttributionNotice<RowClass>Abstract

This is a sub-abstract class of AttributionNotice that represents any attribution notice template that can contain multiple entries (or rows).

Type Parameters

Hierarchy (view full)

Constructors

Properties

_rows: RowClass[]

All the rows of this template.

id: string

A unique ID for this template. Derived from the template name and its Parsoid about.

name: string

A unique name for this template. Derived from the Parsoid about for its node.

The template transclusion node that serves as a reference to an element on the Parsoid DOM.

Accessors

Methods

  • Copies in the rows of another SplitArticleTemplate, and optionally deletes that template or clears its contents.

    Parameters

    • template: RowedAttributionNotice<RowClass>

      The template to copy from.

    • options: {
          clear?: boolean;
          delete?: boolean;
      } = {}

      Options for this merge.

      • Optionalclear?: boolean

        Whether the reference template's rows will be cleared after merging.

      • Optionaldelete?: boolean

        Whether the reference template will be deleted after merging.

    Returns void

  • Extracts the parameters from this notice and stores them in the object. This must NEVER destroy unknown parameters. This function does not always pull all parameters from the template, only those that are known.

    This should be implemented by subclasses.

    Returns void