Github Repo: https://github.com/djyde/AwesomeSheet
Frontend UIActionSheet
$ npm install awesomesheet
// require core javascript
var as = require ('awesomesheet');
// require style
require ('awesomesheet/lib/AwesomeSheet.scss'); // or css
as.show ();
as.hide ();
HTML:
<div id="awesome-sheet">
<div class="sheet">
<div class="item">sheet 1</div>
<div class="item">sheet 1</div>
<div class="item">sheet 1</div>
</div>
</div>
You can edit lib/Awesome.css
lib/Awesome.scss
or write your own stylesheet file to overwrite default style.
MIT License
1
qw7692336 2015-09-22 07:49:10 +08:00 via Android
😃
|