universal-confirm
Confirm component for feedback.
Support
Install
$ npm install universal-confirm --save
Usage
import confirm from 'universal-alert';
// How to use it in quickapp
// import confirm from 'universal-confirm/lib/quickapp;
confirm({
title: 'Confirm title',
content: 'Confirm content',
confirmButtonText: 'confirm',
cancelButtonText: 'cancel'
}).then((confirm) => {
console.log(confirm);
});
Methods
confirm(options)
Arguments
Property | Type | Description | required | Default |
---|---|---|---|---|
options | object |
alert arguments | false | - |
options.title | string |
alert title,support in miniapp and quick app | false | - |
options.content | string |
alert content | false | - |
options.confirmButtonText | string |
confirm button text,web are not supported | false | - |
options.cancelButtonText | string |
cancel button text,web are not supported | false | - |