jqxDocking requires the following files:
jqx.base.cssjqxcore.jsjqxwindow.jsjqxbuttons.jsjqxdocking.js<script src="~/jqwidgets/jqxdocking.js"></script>
<script src="~/jqwidgets/jqxwindow.js"></script>
<script src="~/jqwidgets/jqxbuttons.js"></script>
<jqx-docking cookies="true">
<jqx-docking-panel>
<jqx-docking-window>
<jqx-docking-window-header>Title 1.1</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 1.1</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
<jqx-docking-window>
<jqx-docking-window-header>Title 1.2</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 1.2</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
</jqx-docking-panel>
<jqx-docking-panel>
<jqx-docking-window>
<jqx-docking-window-header>Title 2.1</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 2.1</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
<jqx-docking-window>
<jqx-docking-window-header>Title 2.2</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 2.2</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
</jqx-docking-panel>
</jqx-docking>
To call a function(method), you need to pass the method name and parameters(if any)
in the UI component’s instance.
<script src="~/jqwidgets/jqxdocking.js"></script>
<script src="~/jqwidgets/jqxwindow.js"></script>
<script src="~/jqwidgets/jqxbuttons.js"></script>
<jqx-docking instance="getInstance()">
<jqx-docking-panel>
<jqx-docking-window>
<jqx-docking-window-header>Title 1.1</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 1.1</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
<jqx-docking-window>
<jqx-docking-window-header>Title 1.2</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 1.2</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
</jqx-docking-panel>
<jqx-docking-panel>
<jqx-docking-window>
<jqx-docking-window-header>Title 2.1</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 2.1</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
<jqx-docking-window>
<jqx-docking-window-header>Title 2.2</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 2.2</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
</jqx-docking-panel>
</jqx-docking>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["addWindow"]();
}
</script>
}
To bind to an event of a UI Component, you can use on-event-type syntax. The example
code below demonstrates how to bind to an event.
<script src="~/jqwidgets/jqxdocking.js"></script>
<script src="~/jqwidgets/jqxwindow.js"></script>
<script src="~/jqwidgets/jqxbuttons.js"></script>
<jqx-docking on-drag-start="eventHandler()">
<jqx-docking-panel>
<jqx-docking-window>
<jqx-docking-window-header>Title 1.1</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 1.1</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
<jqx-docking-window>
<jqx-docking-window-header>Title 1.2</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 1.2</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
</jqx-docking-panel>
<jqx-docking-panel>
<jqx-docking-window>
<jqx-docking-window-header>Title 2.1</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 2.1</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
<jqx-docking-window>
<jqx-docking-window-header>Title 2.2</jqx-docking-window-header>
<jqx-docking-window-body><jqx-button>Content 2.2</jqx-button></jqx-docking-window-body>
</jqx-docking-window>
</jqx-docking-panel>
</jqx-docking>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}