Back to Website
Show / Hide Table of Contents

Class AuWidgetGroup

A widget that is used to group multiple widgets together. For details, you can refer to the Group widget topic.

{
  "widgets": [
    {
      "name": "option-list",
      "type": "group",
      "params": {
        "type": "noncollapsible",
        "tabs": [
          {
            "widgets": [
              {
                "title": "Corner Type",
                "name": "corners",
                "type": "option",
                "params": { ... }
              },
              {
                "title": "Lamination",
                "name": "lamination",
                "type": "option",
                "params": { ... }
              }
            ]
          }
        ]
      }
    }
  ]
}
Package: ui-framework

Properties

params

Properties of the widget.

Declaration
params: AuWidgetGroupParam
Property Value
Type Description
AuWidgetGroupParam

Properties of the widget.

scrollable

Declaration
scrollable: boolean
Property Value
Type Description
boolean

selectedIndex

The index of the selected item.

Declaration
selectedIndex: number = 0
Property Value
Type Description
number

The index of the selected item.

selectedTitle

The title of the selected item.

Declaration
selectedTitle: string = ""
Property Value
Type Description
string

The title of the selected item.

showCustomScroll

Declaration
showCustomScroll: boolean = true
Property Value
Type Description
boolean

Methods

checkInitDependenciesWidgets()

Returns an array of widget names, due to which the current widget cannot receive parameters.

Declaration
function checkInitDependenciesWidgets()
Returns
Type Description
string[]

clearSelection()

Sets the selected index to -1.

Declaration
function clearSelection()

resetPreloaderState()

Declaration
function resetPreloaderState()

showPreloader(boolean, string | string[], number)

Shows a preloader.

"onClick": [
  "{{#function main.showPreloader(true, 'Creating print files...')}}",
  "{{#function $['editor'].getHiResImages(800,800)}}",
  "{{#function main.showPreloader(false)}}"
]
Declaration
function showPreloader(isPreload: boolean, message: string | string[], timeout: number)
Parameters
Type Name Description
boolean isPreload

If true, enables the preloader.

string | string[] message

A text message that appears next to the preloader.

number timeout

showToast(string, number)

Shows a toast.

return editor.loadUserInfo(data)
    .catch(err => {
        this.widget.showToast("Error: Invalid data");
        console.log(err);
    });
Declaration
function showToast(data?: string, duration?: number)
Parameters
Type Name Description
string data

A string message to display in the toast.

number duration

Defines how long to show the toast for.

updateVisibleParams()

Declaration
function updateVisibleParams()
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback