CodeMeltedDEV
    Preparing search index...

    Function ui_open

    • Opens the specified protocol to a browser window or native app configured to handle the given specified schema.

      Parameters

      • params: {
            bcc?: string[];
            body?: string;
            cc?: string[];
            height?: number;
            mailto?: string[];
            popup_window?: boolean;
            schema: string;
            subject?: string;
            target?: string;
            url?: string;
            width?: number;
        }

        The named parameters

        • Optionalbcc?: string[]

          The people you don't want others to know about on the email.

        • Optionalbody?: string

          The actual email message.

        • Optionalcc?: string[]

          The carbon copy email addresses to send the email.

        • Optionalheight?: number

          The height of a popup window. Defaulted to 600.0 when not set.

        • Optionalmailto?: string[]

          The primary addresses to send the email.

        • Optionalpopup_window?: boolean

          Whether to open the protocol in a separate browser window.

        • schema: string

          The schema to open.

        • Optionalsubject?: string

          The subject of the email.

        • Optionaltarget?: string

          The type of a tab behavior.

        • Optionalurl?: string

          The url of the protocol unless utilizing "mailto:" schema with [params.mailtoParams] which will already be formatted.

        • Optionalwidth?: number

          The width of a popup window. Defaulted to 900.0 when not set.

      Returns Window | null

      Reference to the newly opened browser window.

      // Determine if open is available. It is only available within Browser's
      // and may not be available in WebViews if your page is embedded.
      if (runtime_available({request: AVAILABILITY_REQUEST.Open})) {
      // Open a website as a pop-up window. treating your site as a multi-window
      // type of application.
      const win = ui_open({
      schema: SCHEMA_TYPE.Https,
      url: "https://google.com",
      popup_window: true
      });
      }