Skip to main content

au-widget-steps/au-widget-steps

Classes​

AuWidgetSteps​

A widget that is used to control what steps are available for the user.

For details, you can refer to the Steps widget topic.

{
"widgets": [
{
"name": "steps",
"type": "steps",
"params": {
"availabilityMode": "visited"
}
}
]
}

Constructors​

Constructor​
new AuWidgetSteps(): AuWidgetSteps;
Returns​

AuWidgetSteps

Inherited from​
AuBaseInvisibleWidget.constructor

Properties​

params​
params: IWidgetStepsConfig;

Properties of the widget.

Overrides​
AuBaseInvisibleWidget.params

Accessors​

template​
Get Signature​
get static template(): any;
Returns​

any

Inherited from​
AuBaseInvisibleWidget.template

Methods​

checkInitDependenciesWidgets()​
checkInitDependenciesWidgets(): string[];

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

Returns​

string[]

Inherited from​
AuBaseInvisibleWidget.checkInitDependenciesWidgets
resetPreloaderState()​
resetPreloaderState(): void;
Returns​

void

Inherited from​
AuBaseInvisibleWidget.resetPreloaderState
showPreloader()​
showPreloader(
isPreload,
message?,
timeout?): void;

Shows a preloader.

"onClick": [
"{{#function main.showPreloader(true, 'Creating print files...')}}",
"{{#function $['editor'].getHiResImages(800,800)}}",
"{{#function main.showPreloader(false)}}"
]
Parameters​
ParameterTypeDefault valueDescription
isPreloadbooleanundefinedIf true, enables the preloader.
messagestring | string[]...A text message that appears next to the preloader.
timeoutnumber5-
Returns​

void

Inherited from​
AuBaseInvisibleWidget.showPreloader
showToast()​
showToast(data?, duration?): void;

Shows a toast.

return editor.loadUserInfo(data)
.catch(err => {
this.widget.showToast("Error: Invalid data");
console.log(err);
});
Parameters​
ParameterTypeDescription
data?stringA string message to display in the toast.
duration?numberDefines how long to show the toast for.
Returns​

void

Inherited from​
AuBaseInvisibleWidget.showToast

References​

widget​

Renames and re-exports AuWidgetSteps

Was this page helpful?