pinned

The pinned method has two modes of operation.
1. If you call it without any arguments, it will return a Boolean value, specifying whether the control is pinned.
2. If you pass a Boolean value to the method, it will apply it to the control and either pin or unpin it.

These are demonstrated in the sample below:

<div id="window" />

<script type="text/javascript">
jQuery(function($) {
    var window = $("#window").shieldWindow({
        title: "Window Title"
    }).swidget();

    //alert whether the control is pinned
    alert(window.pinned());

    //this will pin the control
    window.pinned(true);

    //alert whether the control is pinned
    alert(window.pinned());
});
</script>