Skip to content

Function: showWarningNotice()

ts
function showWarningNotice(ctx: Context, options: ShowWarningNoticeOptions): Promise<NoticeBubbleResult>;

Defined in: src/notice/showWarningNotice.tsx:68

Show a warning notice bubble.

Parameters

ParameterTypeDescription
ctxContextContext object.
optionsShowWarningNoticeOptionsWarning notice configuration.

Returns

Promise<NoticeBubbleResult>

The notice bubble result.

Examples

ts
await showWarningNotice(ctx, {
  title: 'Choosing random book',
  description: 'Picking a book on Amazon based on preferred genre.',
  subtitle: t('warning.subtitle'),
  text: t('warning.text'),
  buttons: [{
    text: 'Proceed',
    value: 'ok',
  }],
});
ts
await showWarningNotice(ctx, {
  title: 'Filling Form',
  description: 'This automation will help fill the form with the needed information.',
  icon: 'close-circle-outline',
  iconColor: '#color',
  subtitle: '#subtitle',
  text: 'Warning: Make sure that information that was filled is correct before proceeding to the next step',
  buttons: [{
    value: 'ok',
    text: 'Proceed',
    disabled: false,
  }],
});

Matterway Assistant SDK Documentation