Socket
Book a DemoInstallSign in
Socket

universal-action-sheet

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-action-sheet

Action sheet.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

universal-action-sheet npm

Action sheet.

Support

miniApp wechatMiniprogram

Install

$ npm install universal-action-sheet --save

Methods

show(options)

Display action sheet.

Parameters

PropertyTypeDefaultDescriptionSupport
titleString-The menu titleminiApp
itemsArray-Menu button text arrayminiApp wechatMiniprogram
cancelButtonTextString取消Cancel buttonminiApp

Example

import ActionSheet from 'universal-action-sheet';

ActionSheet.show({
  items: ['one', 'two', 'three'],
  success: res => {
    console.log(res.index);
  },
  fail: res => {
    console.log(res.errMsg);
  }
});

Keywords

Rax

FAQs

Package last updated on 16 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts