1.2.1 • Published 4 years ago

universal-confirm v1.2.1

Weekly downloads
6
License
BSD-3-Clause
Repository
github
Last release
4 years ago

universal-confirm npm

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

PropertyTypeDescriptionrequiredDefault
optionsobjectalert argumentsfalse-
options.titlestringalert title,support in miniapp and quick appfalse-
options.contentstringalert contentfalse-
options.confirmButtonTextstringconfirm button text,web are not supportedfalse-
options.cancelButtonTextstringcancel button text,web are not supportedfalse-