Example 1 creates a naked jsPanel with defaults only:
$.jsPanel();
Example 2 creates a jsPanel with positioning, title and theme:
$.jsPanel({
position: {
left: 200,
top: 100
},
title: 'jsPanel theme info',
theme: 'info'
});
Example 3 creates a jsPanel with a header toolbar:
Example 4 creates a jsPanel within .testcontainer and restricts dragging to within .testcontainer:
$.jsPanel({
selector: '.testcontainer',
theme: 'dark',
position: 'center',
draggable: {
containment: "parent"
}
});