New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

semantic-modal

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-modal

a wrapper for semantic ui modal

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

semantic-modal

npm version

a wrapper for semantic modal.

Demo

Install

sudo yarn add semantic-modal -D

or

sudo npm install semantic-modal --save

Usage

script

<script src="./dist/semantic-modal.min.js"></script>
<script>
new SemanticModal
     .ModalBuilder()
     .title('旧信息归档')
     .content('您的收件箱已满,是否要我们启用自动归档旧邮件?')
     .titleIcon('inbox')
     .type(SemanticModal.ModalType.NORMAL)
     .size(SemanticModal.ModalSize.SMALL)
     .closeable(true)
     .showCloseButton(true)
     .showNegativeButton(true)
     .showPositiveButton(true)
     .positiveCallback(function () {
         alert('you click positive button');
     })
     .negativeCallback(function () {
         alert('you click negative button');
     })
     .build()     
     .show();
</script>

module import

import {Modal, ModalBuilder, ModalType, ModalSize, ModalAnimation} from 'semantic-modal';
new ModalBuilder()
     .title('旧信息归档')
     .content('您的收件箱已满,是否要我们启用自动归档旧邮件?')
     .titleIcon('inbox')
     .type(SemanticModal.ModalType.NORMAL)
     .size(SemanticModal.ModalSize.SMALL)
     .closeable(true)
     .showCloseButton(true)
     .showNegativeButton(true)
     .showPositiveButton(true)
     .positiveCallback(function () {
         alert('you click positive button');
     })
     .negativeCallback(function () {
         alert('you click negative button');
     })
     .build()     
     .show();

Maintained by

知乎 : @面条

Github : @lsxiao

License

MIT

Keywords

semantic ui

FAQs

Package last updated on 20 Dec 2016

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