
拖曳、拆合等功能都已经具备。但说起拖曳插件,个人觉得,jquery的拖曳UI才是王道。
这里需要提一下的是:该插件的初始化JS是写在config.js的文件里面。
这里需要提一下的是:该插件的初始化JS是写在config.js的文件里面。
这里简要说明下插件的初始化过程:
- $(document).ready(
- function()
- {
- // Toggle Single Portlet
- $('a.toggle').click(function()
- {
- $(this).parent('div').next('div').toggle();
- return false;
- }
- );
- // Invert All Portlets
- $('a#all_invert').click(function()
- {
- $('div.portlet_content').toggle();
- return false;
- }
- );
- // Expand All Portlets
- $('a#all_expand').click(function()
- {
- $('div.portlet_content:hidden').show();
- return false;
- }
- );
- // Collapse All Portlets
- $('a#all_collapse').click(function()
- {
- $('div.portlet_content:visible').hide();
- return false;
- }
- );
- // Open All Portlets
- $('a#all_open').click(function()
- {
- $('div.portlet:hidden').show();
- $('a#all_open:visible').hide();
- $('a#all_close:hidden').show();
- return false;
- }
- );
- // Close All Portlets
- $('a#all_close').click(function()
- {
- $('div.portlet:visible').hide();
- $('a#all_close:visible').hide();
- $('a#all_open:hidden').show();
- return false;
- }
- );
- // Controls Drag + Drop
- $('#columns td').Sortable(
- {
- accept: 'portlet',
- helperclass: 'sort_placeholder',
- opacity: 0.7,
- tolerance: 'intersect'
- }
- );
- }
- );

这个下载地址失效了哦
网站很不错 我学到很多!!同时我觉得这个没jpolite强大哦
谢谢提醒。