Example 1:创建一个默认的jsPanel:
$.jsPanel();
Example 2:创建一个带标题,主题样式和初始定位的jsPanel:
$.jsPanel({ position: { left: 200, top: 100 }, title: 'jsPanel theme info', theme: 'info' });
Example 3 :创建一个带头部工具栏的jsPanel:
Example 4:在测试容器中创建一个jsPanel,jsPanel只能在这个容器中拖动:
$.jsPanel({ selector: '.testcontainer', theme: 'dark', position: 'center', draggable: { containment: "parent" } });