EasyFM - v5.0.0-beta.8
    Preparing search index...

    Class Layout<T>

    Layout-scoped API wrapper for metadata, scripts, and record operations.

    Type Parameters

    Implements

    • LayoutBase
    Index
    database: DatabaseBase
    metadata:
        | {
            fieldMetaData: {
                autoEnter: boolean;
                displayType: | "calendar"
                | "editText"
                | "popupList"
                | "popupMenu"
                | "checkBox"
                | "radioButtons"
                | "selectionList"
                | "secureText";
                fourDigitYear: boolean;
                global: boolean;
                maxCharacters: number;
                maxRepeat: number;
                name: string;
                notEmpty: boolean;
                numeric: boolean;
                repetitionEnd: number;
                repetitionStart: number;
                result: | "number"
                | "time"
                | "container"
                | "text"
                | "invalid"
                | "date"
                | "timeStamp";
                timeOfDay: boolean;
                type: "normal"
                | "summary"
                | "invalid"
                | "calculation";
                valueList?: string;
            }[];
            portalMetaData: Record<
                string,
                {
                    autoEnter: boolean;
                    displayType: | "calendar"
                    | "editText"
                    | "popupList"
                    | "popupMenu"
                    | "checkBox"
                    | "radioButtons"
                    | "selectionList"
                    | "secureText";
                    fourDigitYear: boolean;
                    global: boolean;
                    maxCharacters: number;
                    maxRepeat: number;
                    name: string;
                    notEmpty: boolean;
                    numeric: boolean;
                    repetitionEnd: number;
                    repetitionStart: number;
                    result: | "number"
                    | "time"
                    | "container"
                    | "text"
                    | "invalid"
                    | "date"
                    | "timeStamp";
                    timeOfDay: boolean;
                    type: "normal"
                    | "summary"
                    | "invalid"
                    | "calculation";
                    valueList?: string;
                }[],
            >;
            valueLists?: {
                name: string;
                type: string;
                values: { displayName?: string; value: string }[];
            }[];
        }
        | null = null
    name: string
    records: LayoutRecordManager<T> = ...
    • Retrieves the layout metadata

      Returns Promise<
          {
              fieldMetaData: {
                  autoEnter: boolean;
                  displayType: | "calendar"
                  | "editText"
                  | "popupList"
                  | "popupMenu"
                  | "checkBox"
                  | "radioButtons"
                  | "selectionList"
                  | "secureText";
                  fourDigitYear: boolean;
                  global: boolean;
                  maxCharacters: number;
                  maxRepeat: number;
                  name: string;
                  notEmpty: boolean;
                  numeric: boolean;
                  repetitionEnd: number;
                  repetitionStart: number;
                  result: | "number"
                  | "time"
                  | "container"
                  | "text"
                  | "invalid"
                  | "date"
                  | "timeStamp";
                  timeOfDay: boolean;
                  type: "normal"
                  | "summary"
                  | "invalid"
                  | "calculation";
                  valueList?: string;
              }[];
              portalMetaData: Record<
                  string,
                  {
                      autoEnter: boolean;
                      displayType: | "calendar"
                      | "editText"
                      | "popupList"
                      | "popupMenu"
                      | "checkBox"
                      | "radioButtons"
                      | "selectionList"
                      | "secureText";
                      fourDigitYear: boolean;
                      global: boolean;
                      maxCharacters: number;
                      maxRepeat: number;
                      name: string;
                      notEmpty: boolean;
                      numeric: boolean;
                      repetitionEnd: number;
                      repetitionStart: number;
                      result: | "number"
                      | "time"
                      | "container"
                      | "text"
                      | "invalid"
                      | "date"
                      | "timeStamp";
                      timeOfDay: boolean;
                      type: "normal"
                      | "summary"
                      | "invalid"
                      | "calculation";
                      valueList?: string;
                  }[],
              >;
              valueLists?: {
                  name: string;
                  type: string;
                  values: { displayName?: string; value: string }[];
              }[];
          },
      >

      The layout metadata.

      If an error occurs during the API request.