Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#show-action').click(function() {
- showDialog({
- title: 'Action',
- text: '<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label getmdl-select">'+
- '<input type="text" value="" class="mdl-textfield__input" id="sample4" readonly>'+
- '<input type="hidden" value="" name="sample4">'+
- '<i class="mdl-icon-toggle__label material-icons">keyboard_arrow_down</i>'+
- '<label for="sample4" class="mdl-textfield__label">Country</label>'+
- '<ul for="sample4" class="mdl-menu mdl-menu--bottom-left mdl-js-menu">'+
- ' <li class="mdl-menu__item" data-val="DEU">Germany</li>'+
- ' <li class="mdl-menu__item" data-val="BLR">Belarus</li>'+
- ' <li class="mdl-menu__item" data-val="RUS">Russia</li>'+
- '</ul>'+
- '</div>',
- negative: {
- title: 'Nope'
- },
- positive: {
- title: 'Yay',
- onClick: function(e) {
- alert('Action performed!');
- }
- }
- });
- });
Add Comment
Please, Sign In to add comment