splitpanel update (allow for animation, improve performance)
This commit is contained in:
parent
6696eb2b43
commit
17d842c64c
7 changed files with 118 additions and 69 deletions
|
|
@ -3,10 +3,9 @@
|
|||
<head>
|
||||
<title>ox.js SplitPanel Demo</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../build/css/ox.ui.css"/>
|
||||
<script type="text/javascript" src="../../build/js/OxUI.js"></script>
|
||||
<script type="text/javascript" src="../../build/Ox.js"></script>
|
||||
<script>
|
||||
Ox.UI(function() {
|
||||
Ox.load('UI', {debug: true}, function() {
|
||||
new Ox.SplitPanel({
|
||||
elements: [
|
||||
{
|
||||
|
|
@ -21,7 +20,23 @@
|
|||
elements: [
|
||||
{
|
||||
collapsible: true,
|
||||
element: new Ox.Element().options({id: 'left'}).css({background: 'red'}).html('left'),
|
||||
element: new Ox.SplitPanel({
|
||||
elements: [
|
||||
{
|
||||
collapsible: true,
|
||||
element: new Ox.Element().options({id: 'leftleft'}).css({background: 'red'}),
|
||||
resizable: true,
|
||||
resize: [32, 64, 96],
|
||||
size: 64
|
||||
},
|
||||
{
|
||||
element: new Ox.Element().options({id: 'leftright'}).css({background: 'magenta'}),
|
||||
size: 'auto'
|
||||
}
|
||||
],
|
||||
id: 'right',
|
||||
orientation: 'horizontal'
|
||||
}),
|
||||
resizable: true,
|
||||
resize: [128, 256, 384],
|
||||
size: 256
|
||||
|
|
@ -35,23 +50,16 @@
|
|||
element: new Ox.SplitPanel({
|
||||
elements: [
|
||||
{
|
||||
collapsible: true,
|
||||
element: new Ox.Element().options({id: 'righttop'}).css({background: 'cyan'}),
|
||||
resizable: true,
|
||||
resize: [32, 64, 96],
|
||||
size: 64
|
||||
},
|
||||
{
|
||||
element: new Ox.Element().options({id: 'rightmiddle'}).css({background: 'blue'}),
|
||||
size: 'auto'
|
||||
},
|
||||
{
|
||||
collapsible: true,
|
||||
element: new Ox.Element().options({id: 'rightbottom'}).css({background: 'magenta'}),
|
||||
element: new Ox.Element().options({id: 'rightbottom'}).css({background: 'blue'}),
|
||||
resizable: true,
|
||||
resize: [32, 64, 96],
|
||||
size: 64
|
||||
},
|
||||
}
|
||||
],
|
||||
id: 'right',
|
||||
orientation: 'vertical'
|
||||
|
|
|
|||
|
|
@ -3,10 +3,9 @@
|
|||
<head>
|
||||
<title>OxJS SplitPanel Demo</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../build/css/ox.ui.css"/>
|
||||
<script type="text/javascript" src="../../build/js/OxUI.js"></script>
|
||||
<script type="text/javascript" src="../../build/Ox.js"></script>
|
||||
<script>
|
||||
Ox.UI(function() {
|
||||
Ox.load('UI', {debug: true}, function() {
|
||||
function element(options, css) {
|
||||
return Ox.extend({
|
||||
element: Ox.Element().html(JSON.stringify(options))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue