Name | Type | Default |
---|---|---|
contextMenu | Boolean | false |
Sets or gets wheter a custom context menu will appear when certain elements of the widget are right-clicked. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout" :contextMenu="true"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } } } </script> Get the let contextMenu = this.$refs.myDockingLayout.contextMenu; |
||
height | Number | String | null |
Sets or gets the docking layout's height. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } } } </script> Get the let height = this.$refs.myDockingLayout.height; |
||
layout | Array | [] |
Sets or gets the layout. This property determines the position of the docking layout elements and their characteristics. The first member of the layout array should always be an item of type 'layoutGroup'. Each object in the layout array can have the following properties, with some restrictions based on the type :
<template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } } } </script> Get the let layout = this.$refs.myDockingLayout.layout; |
||
minGroupHeight | Number | 100 |
Sets the default minimumn height for groups which are vertically aligned within their parent group. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout" :minGroupHeight="200"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } } } </script> Get the let minGroupHeight = this.$refs.myDockingLayout.minGroupHeight; |
||
minGroupWidth | Number | 100 |
Sets the default minimumn width for groups which are horizontally aligned within their parent group. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout" :minGroupWidth="150"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } } } </script> Get the let minGroupWidth = this.$refs.myDockingLayout.minGroupWidth; |
||
resizable | Boolean | true |
Sets or gets wheter panels can be dynamically resized. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout" :resizable="false"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } } } </script> Get the let resizable = this.$refs.myDockingLayout.resizable; |
||
rtl | Boolean | false |
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout" :rtl="true"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } } } </script> Get the let rtl = this.$refs.myDockingLayout.rtl; |
||
theme | String | '' |
Sets the widget's theme.
<template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout" :theme="'material'"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } } } </script> |
||
width | Number | String | null |
Sets or gets the docking layout's width. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } } } </script> Get the let width = this.$refs.myDockingLayout.width; |
||
Events |
||
dock | Event | |
This event is triggered when a floatGroup has been docked. Code examples
Bind to the
<template> <JqxDockingLayout ref="myDockingLayout" @dock="onDock($event)" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, methods: { onDock: function (event) { alert('do something...'); } } } </script> |
||
floatGroupClosed | Event | |
This event is triggered when a floatGroup has been closed. Code examples
Bind to the
<template> <JqxDockingLayout ref="myDockingLayout" @floatGroupClosed="onFloatGroupClosed($event)" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, methods: { onFloatGroupClosed: function (event) { alert('do something...'); } } } </script> |
||
float | Event | |
This event is triggered when a group or panel has been floated. Code examples
Bind to the
<template> <JqxDockingLayout ref="myDockingLayout" @float="onFloat($event)" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, methods: { onFloat: function (event) { alert('do something...'); } } } </script> |
||
pin | Event | |
This event is triggered when a group has been pinned. Code examples
Bind to the
<template> <JqxDockingLayout ref="myDockingLayout" @pin="onPin($event)" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, methods: { onPin: function (event) { alert('do something...'); } } } </script> |
||
resize | Event | |
This event is triggered when a group has been resized (when the group has been resized with the mouse or when an adjacent group has been pinned, unpinned or closed). Code examples
Bind to the
<template> <JqxDockingLayout ref="myDockingLayout" @resize="onResize($event)" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, methods: { onResize: function (event) { alert('do something...'); } } } </script> |
||
unpin | Event | |
This event is triggered when a group has been unpinned. Code examples
Bind to the
<template> <JqxDockingLayout ref="myDockingLayout" @unpin="onUnpin($event)" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, methods: { onUnpin: function (event) { alert('do something...'); } } } </script> |
||
Methods |
||
Name | Arguments | Return Type |
addFloatGroup | width, height, position, panelType, title, content, initContent | None |
Adds a new floatGroup. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, mounted: function () { this.$refs.myDockingLayout.addFloatGroup(200,200,{x:10, y:10},'layoutPanel','Title','Content'); } } </script> |
||
destroy | None | None |
Destroys the widget. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, mounted: function () { this.$refs.myDockingLayout.destroy(); } } </script> |
||
loadLayout | layout | None |
Loads a previously saved layout. <template> <div> <JqxButton @click="onSave($event)" :width="110" :height="18">Save layout</JqxButton> <JqxButton @click="onLoad($event)" :width="110" :height="18">Load layout</JqxButton> <br/> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </div> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDockingLayout, JqxButton }, data: function () { return { savedLayout: null, layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, methods: { onSave() { this.savedLayout = this.$refs.myDockingLayout.saveLayout(); }, onLoad() { this.$refs.myDockingLayout.loadLayout(this.savedLayout); } } } </script> |
||
refresh | None | None |
Refreshes the widget. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, mounted: function () { this.$refs.myDockingLayout.refresh(); } } </script> |
||
render | None | None |
Renders the widget. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, mounted: function () { this.$refs.myDockingLayout.render(); } } </script> |
||
saveLayout | None | Object |
Saves the current layout of the widget. The object returned by this method can be passed to the method loadLayout. <template> <JqxDockingLayout ref="myDockingLayout" :width="850" :height="600" :layout="layout"> <div data-container='Document1Panel'> Document 1 Content </div> <div data-container='Document2Panel'> Document 2 Content </div> <div data-container='ErrorListPanel'> List of Errors </div> <div data-container='OutputPanel'> Output </div> <div data-container='SolutionExplorerPanel'> Solution Structure </div> <div data-container='PropertiesPanel'> List of properties </div> </JqxDockingLayout> </template> <script> import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdockinglayout.vue'; export default { components: { JqxDockingLayout }, data: function () { return { layout: [ { type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: '60%', items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: '40%', items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] } ] } }, mounted: function () { const value = this.$refs.myDockingLayout.saveLayout(); } } </script> |