PageGroup class This is a collection of pages that can be requested like a normal page. Each member of the group has an eligibility formula, and the first page whose eligibility formula matches is shown. This can be used to show different pages on different devices.

Hierarchy

  • PageGroup

Implements

  • AbstractPageGroup

Constructors

Properties

description?: string
id?: number
members: AbstractPageGroupMember[]
min_role: number
name: string
random_allocation: boolean

Methods

  • add a member to this group

    Parameters

    • cfg: PageGroupMemberCfg
    • Optional noRrefresh: boolean

    Returns Promise<PageGroupMember>

  • determine the first page in the group that matches the client screen size

    Parameters

    • data: ScreenInfoParams

      client screen and window size

    • user: any

      the user or just { role_id: 100 }

    • Optional locale: string

    Returns Promise<null | Page>

    the matching page, or null

  • manipulate the sequence of a member

    Parameters

    • member: AbstractPageGroupMember
    • mode: "Up" | "Down"

    Returns Promise<void>

Generated using TypeDoc