-
-
Save antranapp/5336762 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title> | |
</title> | |
<script src="http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js"> | |
</script> | |
</head> | |
<body class="yui3-skin-sam"> | |
<script type="text/javascript"> | |
// Create a new YUI instance and populate it with the required modules. | |
YUI({ | |
filter: 'RAW' | |
}).use(['tabview','sortable'], function(Y) { | |
var tabview2 = new Y.TabView({ | |
children: [{ | |
label: 'foo2', | |
content: '<p>foo content</p>' | |
}, { | |
label: 'bar2', | |
content: '<p>bar content</p>' | |
}, { | |
label: 'baz2', | |
content: '<p>baz content</p>' | |
}] | |
}); | |
tabview2.render('#target'); | |
var sortable = new Y.Sortable({ | |
container: tabview2.get('contentBox'), | |
nodes: 'li', | |
opacity: '.4' | |
}); | |
sortable.delegate.dd.removeInvalid('a'); | |
}); | |
</script> | |
<div id="target"> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment