Docs (4.0.0)
class RenderContext type

type PlacementMode

An identifier that specifies a global rendering mode, part of RenderContext.PlacementOptions.

static

type PlacementMode = "none" | "page" | "dialog" | "modal" | "mount"

Description

This type describes how root view output elements are placed among other output. The following options are available:

  • none — No output should be placed at all.
  • page — The output should fill the entire screen, on top of other content.
  • dialog — The output should appear on top of all other output, surrounded by a shaded margin.
  • modal — The output should appear on top of all other output, surrounded by a shaded margin. A CloseModal event is emitted when touching or clicking outside of the modal view area, or pressing the Escape key.
  • mount — The output should be ‘mounted’ within an existing output element, with a specified string ID (e.g. HTML element).

Related

  • class RenderContext abstractAn abstract class that supports global view rendering, part of the global application context.