universal-confirm
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

universal-confirm npm

Confirm component for feedback.

Support

browser weex miniApp wechatMiniprogram quickApp bytedanceMicroApp

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 -

Readme

Keywords

Package Sidebar

Install

npm i universal-confirm

Weekly Downloads

0

Version

1.2.1

License

BSD-3-Clause

Unpacked Size

18 kB

Total Files

31

Last publish

Collaborators

  • rax-publisher
  • yacheng
  • zeroling