1.1.1 • Published 10 years ago

semantic-modal v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

semantic-modal

npm version

a wrapper for semantic modal.

Demo

npm.io

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

1.1.1

10 years ago

1.1.0

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago