Configure buttons

You can display the popup without any buttons for a clean, minimal interface, use predefined buttons for standard actions, or customize it by adding your own buttons with tailored text, style, and functionality to meet your specific needs.

By default, the popup is displayed without any buttons for a clean, minimal look. If you want some standard actions you can use the following predefined buttons:

  • ok for confirmation
  • cancel to dismiss the popup
  • close for closing the popup without action
  • set for saving or applying changes

You can add custom buttons with tailored text, style, and functionality if you have more specific needs.

Get started with this example

Demo

<mbsc-popup
  [buttons]="[]"
>
<mbsc-popup
  [buttons]="['ok', 'cancel']"
>
<mbsc-popup
  [buttons]="[{
    text: 'Custom',
    handler: function () {
      mobiscroll.toast({
        message: 'Custom button clicked'
      });
    }
  }]"
>

Hi there!

This is the default with no buttons.

Hi again!

This is a popup with predefined buttons.

Hi again!

This is a popup with a custom button.

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.