Heroic Lands Heroic Lands
Home Thalorna Blog
Projects
Song of Heroic Lands HârnMaster 3 Modules API Documentation KnowledgeBase
License
  • Preparing search index...
  • The search index is not available
Song of Heroic Lands API - v0.8.2
  • Song of Heroic Lands API
  • sohl
  • document
  • chat
  • toRenderableButtons

Function toRenderableButtons

  • toRenderableButtons(
        buttons: undefined | ActionCardButton | ActionCardButton[],
    ): RenderableButton[]
  • Normalize a spec's buttons (one, many, or none) into the render shape, pre-serializing each scope so the template only emits it (never builds HTML from data). skipDialog defaults to true.

    Exported so any card that renders the shared action-buttons block — the action-card body buildActionCard, or the standard test card (sohl.entity.result.SuccessTestResult.toChat) — folds its follow-up buttons through the one normalizer.

    Parameters

    • buttons: undefined | ActionCardButton | ActionCardButton[]

      The spec's buttons.

    Returns RenderableButton[]

    The renderable button array (possibly empty).

    • Defined in src/document/chat/action-card.ts:123

Settings

Member Visibility
Song of Heroic Lands API - v0.8.2
  • Loading...

Generated using TypeDoc with typedoc-github-theme

© 2020–2026 Tom Rodriguez. Content under The World of Thalorna and Song of Heroic Lands is licensed under CC BY-SA 4.0; all other content is © Tom Rodriguez, all rights reserved. See License.

CC BY-SA 4.0 Discord