rmapi-js
    Preparing search index...

    Type Alias PageTemplate

    PageTemplate:
        | { paper: Paper; type: "builtIn" }
        | { id: string; landscape: boolean; type: "account" }
        | { name: string; type: "onTablet" }

    the template a page names in its .content

    Type Declaration

    • { paper: Paper; type: "builtIn" }
      • paper: Paper

        the paper, which Template.builtIn gives rmapi's version of

      • type: "builtIn"

        one of the tablet's own papers

    • { id: string; landscape: boolean; type: "account" }
      • id: string

        the template item's id

      • landscape: boolean

        whether the page names it with :l, for landscape, rather than :p

      • type: "account"

        a template item of the account, which Client.template reads

    • { name: string; type: "onTablet" }
      • name: string

        the name the page gives it by, as written

      • type: "onTablet"

        a template the tablet holds that rmapi has no version of, such as a paper of other firmware or one put on the tablet by hand, which draws nothing here