The ListItemCapabilityOptionsGenerator class is responsible for rendering the React component from a template and thus generating the presentation layer code to display the list of available actions for a list item. It extends the template generator class and makes use of ListItemCapabilityOptionsTemplate for template population and rendering.

Hierarchy (View Summary)

  • TemplateConsumer<ListItemCapabilityOptionsTemplate>
    • ListItemCapabilityOptionsGenerator

Constructors

Properties

_filePath: string
_templatePath: string
_templateRenderer: TemplateGenerator<ListItemCapabilityOptionsTemplate>

Methods

  • Retrieves the title of a template page in the specified language.

    Parameters

    • pageTitleLanguageString: undefined | LanguageString

      An object containing language-specific titles.

    • languageId: string = "en"

      The language identifier for the title. Defaults to "en", if not provided.

    Returns null | string

    The page title in the specified language, or the first available language if not found.