mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Merge commit 'd32092c1f0
' as 'jquery-ui'
This commit is contained in:
commit
b23131fdc2
717 changed files with 518330 additions and 0 deletions
48
jquery-ui/demos/controlgroup/splitbutton.html
Normal file
48
jquery-ui/demos/controlgroup/splitbutton.html
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Controlgroup - Split Button</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-button-icon-only.demo-splitbutton-select {
|
||||
width: 1em;
|
||||
}
|
||||
</style>
|
||||
<script src="../../external/requirejs/require.js"></script>
|
||||
<script src="../bootstrap.js" data-modules="button checkboxradio selectmenu">
|
||||
$( "select" ).selectmenu({
|
||||
classes: {
|
||||
"ui-selectmenu-button": "ui-button-icon-only demo-splitbutton-select"
|
||||
},
|
||||
change: function(){
|
||||
$( ".output" ).append( "<li>" + this.value + "</li>" );
|
||||
}
|
||||
});
|
||||
$( ".controlgroup" ).controlgroup();
|
||||
$( "button" ).click(function() {
|
||||
$( ".output" ).append( "<li>Running Last Action...</li>" );
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="widget">
|
||||
<h1>Split button</h1>
|
||||
<div class="controlgroup">
|
||||
<button>Run last option</button>
|
||||
<select>
|
||||
<option>Open...</option>
|
||||
<option>Save</option>
|
||||
<option>Delete</option>
|
||||
</select>
|
||||
</div>
|
||||
<br/>
|
||||
<h3>Output:</h3>
|
||||
<ul class="output"></ul>
|
||||
</div>
|
||||
<div class="demo-description">
|
||||
<p>A controlgroup creating a split button, by combining a button and a selectmenu. We adjust the classes option on the selectmenu to show only the icon</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue