mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Spinner: Visual test page for events
This commit is contained in:
parent
78872dca42
commit
9fa6edcbec
36
tests/visual/spinner/spinner.html
Normal file
36
tests/visual/spinner/spinner.html
Normal file
@ -0,0 +1,36 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Spinner Visual Test Page</title>
|
||||
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css" title="ui-theme" />
|
||||
<script type="text/javascript" src="../../../jquery-1.4.3.js"></script>
|
||||
<script type="text/javascript" src="../../../external/jquery.mousewheel-3.0.4.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.button.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.spinner.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('#spinner').spinner({
|
||||
start: function(event, ui) {
|
||||
console.log(event.type, ui.value, $(this).spinner("value"));
|
||||
},
|
||||
spin: function(event, ui) {
|
||||
console.log(event.type, ui.value, $(this).spinner("value"));
|
||||
},
|
||||
stop: function(event) {
|
||||
console.log(event.type, $(this).spinner("value"));
|
||||
},
|
||||
change: function(event) {
|
||||
console.log(event.type, $(this).spinner("value"));
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p><label for="spinner">Basic with event callbacks:</label> <input id="spinner"></p>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user