mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-05-23 00:15:22 +03:00
Merge commit 'd21ea7816e
' as 'jquery-ui'
This commit is contained in:
commit
e904a80717
629 changed files with 341074 additions and 0 deletions
66
jquery-ui/demos/sortable/connect-lists.html
Normal file
66
jquery-ui/demos/sortable/connect-lists.html
Normal file
|
@ -0,0 +1,66 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Sortable - Connect lists</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/sortable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#sortable1, #sortable2 {
|
||||
border: 1px solid #eee;
|
||||
width: 142px;
|
||||
min-height: 20px;
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 5px 0 0 0;
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
#sortable1 li, #sortable2 li {
|
||||
margin: 0 5px 5px 5px;
|
||||
padding: 5px;
|
||||
font-size: 1.2em;
|
||||
width: 120px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
$( "#sortable1, #sortable2" ).sortable({
|
||||
connectWith: ".connectedSortable"
|
||||
}).disableSelection();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul id="sortable1" class="connectedSortable">
|
||||
<li class="ui-state-default">Item 1</li>
|
||||
<li class="ui-state-default">Item 2</li>
|
||||
<li class="ui-state-default">Item 3</li>
|
||||
<li class="ui-state-default">Item 4</li>
|
||||
<li class="ui-state-default">Item 5</li>
|
||||
</ul>
|
||||
|
||||
<ul id="sortable2" class="connectedSortable">
|
||||
<li class="ui-state-highlight">Item 1</li>
|
||||
<li class="ui-state-highlight">Item 2</li>
|
||||
<li class="ui-state-highlight">Item 3</li>
|
||||
<li class="ui-state-highlight">Item 4</li>
|
||||
<li class="ui-state-highlight">Item 5</li>
|
||||
</ul>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>
|
||||
Sort items from one list into another and vice versa, by passing a selector into
|
||||
the <code>connectWith</code> option. The simplest way to do this is to
|
||||
group all related lists with a CSS class, and then pass that class into the
|
||||
sortable function (i.e., <code>connectWith: '.myclass'</code>).
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
45
jquery-ui/demos/sortable/default.html
Normal file
45
jquery-ui/demos/sortable/default.html
Normal file
|
@ -0,0 +1,45 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Sortable - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/sortable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
|
||||
#sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; }
|
||||
#sortable li span { position: absolute; margin-left: -1.3em; }
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
$( "#sortable" ).sortable();
|
||||
$( "#sortable" ).disableSelection();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul id="sortable">
|
||||
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 1</li>
|
||||
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 2</li>
|
||||
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 3</li>
|
||||
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 4</li>
|
||||
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 5</li>
|
||||
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 6</li>
|
||||
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 7</li>
|
||||
</ul>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>
|
||||
Enable a group of DOM elements to be sortable. Click on and drag an
|
||||
element to a new spot within the list, and the other items will adjust to
|
||||
fit. By default, sortable items share <code>draggable</code> properties.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
48
jquery-ui/demos/sortable/display-grid.html
Normal file
48
jquery-ui/demos/sortable/display-grid.html
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Sortable - Display as grid</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/sortable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#sortable { list-style-type: none; margin: 0; padding: 0; width: 450px; }
|
||||
#sortable li { margin: 3px 3px 3px 0; padding: 1px; float: left; width: 100px; height: 90px; font-size: 4em; text-align: center; }
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
$( "#sortable" ).sortable();
|
||||
$( "#sortable" ).disableSelection();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul id="sortable">
|
||||
<li class="ui-state-default">1</li>
|
||||
<li class="ui-state-default">2</li>
|
||||
<li class="ui-state-default">3</li>
|
||||
<li class="ui-state-default">4</li>
|
||||
<li class="ui-state-default">5</li>
|
||||
<li class="ui-state-default">6</li>
|
||||
<li class="ui-state-default">7</li>
|
||||
<li class="ui-state-default">8</li>
|
||||
<li class="ui-state-default">9</li>
|
||||
<li class="ui-state-default">10</li>
|
||||
<li class="ui-state-default">11</li>
|
||||
<li class="ui-state-default">12</li>
|
||||
</ul>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>
|
||||
To arrange sortable items as a grid, give them identical dimensions and
|
||||
float them using CSS.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
63
jquery-ui/demos/sortable/empty-lists.html
Normal file
63
jquery-ui/demos/sortable/empty-lists.html
Normal file
|
@ -0,0 +1,63 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Sortable - Handle empty lists</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/sortable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#sortable1, #sortable2, #sortable3 { list-style-type: none; margin: 0; float: left; margin-right: 10px; background: #eee; padding: 5px; width: 143px;}
|
||||
#sortable1 li, #sortable2 li, #sortable3 li { margin: 5px; padding: 5px; font-size: 1.2em; width: 120px; }
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
$( "ul.droptrue" ).sortable({
|
||||
connectWith: "ul"
|
||||
});
|
||||
|
||||
$( "ul.dropfalse" ).sortable({
|
||||
connectWith: "ul",
|
||||
dropOnEmpty: false
|
||||
});
|
||||
|
||||
$( "#sortable1, #sortable2, #sortable3" ).disableSelection();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul id="sortable1" class='droptrue'>
|
||||
<li class="ui-state-default">Can be dropped..</li>
|
||||
<li class="ui-state-default">..on an empty list</li>
|
||||
<li class="ui-state-default">Item 3</li>
|
||||
<li class="ui-state-default">Item 4</li>
|
||||
<li class="ui-state-default">Item 5</li>
|
||||
</ul>
|
||||
|
||||
<ul id="sortable2" class='dropfalse'>
|
||||
<li class="ui-state-highlight">Cannot be dropped..</li>
|
||||
<li class="ui-state-highlight">..on an empty list</li>
|
||||
<li class="ui-state-highlight">Item 3</li>
|
||||
<li class="ui-state-highlight">Item 4</li>
|
||||
<li class="ui-state-highlight">Item 5</li>
|
||||
</ul>
|
||||
|
||||
<ul id="sortable3" class='droptrue'>
|
||||
</ul>
|
||||
|
||||
<br style="clear:both">
|
||||
|
||||
<div class="demo-description">
|
||||
<p>
|
||||
Prevent all items in a list from being dropped into a separate, empty list
|
||||
using the <code>dropOnEmpty</code> option set to <code>false</code>. By default,
|
||||
sortable items can be dropped on empty lists.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
21
jquery-ui/demos/sortable/index.html
Normal file
21
jquery-ui/demos/sortable/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery UI Sortable Demos</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul>
|
||||
<li><a href="default.html">Default functionality</a></li>
|
||||
<li><a href="placeholder.html">Drop placeholder</a></li>
|
||||
<li><a href="connect-lists.html">Connect lists</a></li>
|
||||
<li><a href="empty-lists.html">Handle empty lists</a></li>
|
||||
<li><a href="items.html">Include / exclude items</a></li>
|
||||
<li><a href="display-grid.html">Display as grid</a></li>
|
||||
<li><a href="portlets.html">Portlets</a></li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
64
jquery-ui/demos/sortable/items.html
Normal file
64
jquery-ui/demos/sortable/items.html
Normal file
|
@ -0,0 +1,64 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Sortable - Include / exclude items</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/sortable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0; zoom: 1; }
|
||||
#sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 3px; width: 90%; }
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
$( "#sortable1" ).sortable({
|
||||
items: "li:not(.ui-state-disabled)"
|
||||
});
|
||||
|
||||
$( "#sortable2" ).sortable({
|
||||
cancel: ".ui-state-disabled"
|
||||
});
|
||||
|
||||
$( "#sortable1 li, #sortable2 li" ).disableSelection();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h3 class="docs">Specify which items are sortable:</h3>
|
||||
|
||||
<ul id="sortable1">
|
||||
<li class="ui-state-default">Item 1</li>
|
||||
<li class="ui-state-default ui-state-disabled">(I'm not sortable or a drop target)</li>
|
||||
<li class="ui-state-default ui-state-disabled">(I'm not sortable or a drop target)</li>
|
||||
<li class="ui-state-default">Item 4</li>
|
||||
</ul>
|
||||
|
||||
<h3 class="docs">Cancel sorting (but keep as drop targets):</h3>
|
||||
|
||||
<ul id="sortable2">
|
||||
<li class="ui-state-default">Item 1</li>
|
||||
<li class="ui-state-default ui-state-disabled">(I'm not sortable)</li>
|
||||
<li class="ui-state-default ui-state-disabled">(I'm not sortable)</li>
|
||||
<li class="ui-state-default">Item 4</li>
|
||||
</ul>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>
|
||||
Specify which items are eligible to sort by passing a jQuery selector into
|
||||
the <code>items</code> option. Items excluded from this option are not
|
||||
sortable, nor are they valid targets for sortable items.
|
||||
</p>
|
||||
<p>
|
||||
To only prevent sorting on certain items, pass a jQuery selector into the
|
||||
<code>cancel</code> option. Cancelled items remain valid sort targets for
|
||||
others.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
50
jquery-ui/demos/sortable/placeholder.html
Normal file
50
jquery-ui/demos/sortable/placeholder.html
Normal file
|
@ -0,0 +1,50 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Sortable - Drop placeholder</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/sortable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
|
||||
#sortable li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; height: 1.5em; }
|
||||
html>body #sortable li { height: 1.5em; line-height: 1.2em; }
|
||||
.ui-state-highlight { height: 1.5em; line-height: 1.2em; }
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
$( "#sortable" ).sortable({
|
||||
placeholder: "ui-state-highlight"
|
||||
});
|
||||
$( "#sortable" ).disableSelection();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul id="sortable">
|
||||
<li class="ui-state-default">Item 1</li>
|
||||
<li class="ui-state-default">Item 2</li>
|
||||
<li class="ui-state-default">Item 3</li>
|
||||
<li class="ui-state-default">Item 4</li>
|
||||
<li class="ui-state-default">Item 5</li>
|
||||
<li class="ui-state-default">Item 6</li>
|
||||
<li class="ui-state-default">Item 7</li>
|
||||
</ul>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>
|
||||
When dragging a sortable item to a new location, other items will make room
|
||||
for the that item by shifting to allow white space between them. Pass a
|
||||
class into the <code>placeholder</code> option to style that space to
|
||||
be visible. Use the boolean <code>forcePlaceholderSize</code> option
|
||||
to set dimensions on the placeholder.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
115
jquery-ui/demos/sortable/portlets.html
Normal file
115
jquery-ui/demos/sortable/portlets.html
Normal file
|
@ -0,0 +1,115 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Sortable - Portlets</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/sortable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
body {
|
||||
min-width: 520px;
|
||||
}
|
||||
.column {
|
||||
width: 170px;
|
||||
float: left;
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
.portlet {
|
||||
margin: 0 1em 1em 0;
|
||||
padding: 0.3em;
|
||||
}
|
||||
.portlet-header {
|
||||
padding: 0.2em 0.3em;
|
||||
margin-bottom: 0.5em;
|
||||
position: relative;
|
||||
}
|
||||
.portlet-toggle {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
margin-top: -8px;
|
||||
}
|
||||
.portlet-content {
|
||||
padding: 0.4em;
|
||||
}
|
||||
.portlet-placeholder {
|
||||
border: 1px dotted black;
|
||||
margin: 0 1em 1em 0;
|
||||
height: 50px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
$( ".column" ).sortable({
|
||||
connectWith: ".column",
|
||||
handle: ".portlet-header",
|
||||
cancel: ".portlet-toggle",
|
||||
placeholder: "portlet-placeholder ui-corner-all"
|
||||
});
|
||||
|
||||
$( ".portlet" )
|
||||
.addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
|
||||
.find( ".portlet-header" )
|
||||
.addClass( "ui-widget-header ui-corner-all" )
|
||||
.prepend( "<span class='ui-icon ui-icon-minusthick portlet-toggle'></span>");
|
||||
|
||||
$( ".portlet-toggle" ).click(function() {
|
||||
var icon = $( this );
|
||||
icon.toggleClass( "ui-icon-minusthick ui-icon-plusthick" );
|
||||
icon.closest( ".portlet" ).find( ".portlet-content" ).toggle();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="column">
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-header">Feeds</div>
|
||||
<div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-header">News</div>
|
||||
<div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="column">
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-header">Shopping</div>
|
||||
<div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="column">
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-header">Links</div>
|
||||
<div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-header">Images</div>
|
||||
<div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>
|
||||
Enable portlets (styled divs) as sortables and use the <code>connectWith</code>
|
||||
option to allow sorting between columns.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue