Appearance
Function: showSuccessNotice()
ts
function showSuccessNotice(ctx: Context, options: ShowSuccessNoticeOptions): Promise<NoticeBubbleResult>;Defined in: src/notice/showSuccessNotice.tsx:106
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | Context | Context object. |
options | ShowSuccessNoticeOptions | Success notice configuration. |
Returns
Promise<NoticeBubbleResult>
The notice bubble result, including the selected button and optional feedback text.
Deprecated
Use showUI.success instead.
Show a success notice bubble with optional feedback and a clicker game.
Example
ts
const result = await showSuccessNotice(ctx, {
title: 'Invoice processed',
subtitle: 'All done!',
text: 'The invoice was filed under Q4 expenses.',
});
console.log('User responded with:', result.button);