1.1.1 • Published 7 years ago

semantic-modal v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 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

7 years ago

1.1.0

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago