Name | Type | Default |
---|---|---|
altRows | Boolean | false |
Sets or gets whether the jqxDataTable automatically alternates row colors. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :altRows="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let altRows = this.$refs.myDataTable.altRows; |
||
autoRowHeight | Boolean | true |
Sets or gets whether the jqxDataTable automatically calculates the rows height and wraps the cell text. <template> <JqxDataTable ref="myDataTable" :width="450" :source="source" :columns="columns" :autoRowHeight="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let autoRowHeight = this.$refs.myDataTable.autoRowHeight; |
||
aggregatesHeight | Number | 34 |
Sets or gets the height of the aggregates bar. Aggregates bar is displayed after setting <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :aggregatesHeight="40" :showAggregates="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName', aggregates: ['count'] }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let aggregatesHeight = this.$refs.myDataTable.aggregatesHeight; |
||
autoShowLoadElement | Boolean | true |
Sets or gets whether the loading html element with animated gif is automatically displayed by the widget during the data binding process. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :autoShowLoadElement="false" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let autoShowLoadElement = this.$refs.myDataTable.autoShowLoadElement; |
||
columnsHeight | Number | 30 |
Sets or gets the height of the columns header. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :columnsHeight="20" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let columnsHeight = this.$refs.myDataTable.columnsHeight; |
||
columns | Array | [] |
Sets the jqxDataTable's columns.
|
||
columnGroups | Array | [] |
Sets the jqxDataTable's column groups.
<template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :columnGroups="columnGroups"/> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { columnGroups: [ { text: 'Name', align: 'center', name: 'ContactName' }, { text: 'City', align: 'center', name: 'City' }, { text: 'Country', align: 'center', name: 'Country' } ], columns: [ { text: 'Contact Name', datafield: 'ContactName', columngroup: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City', columngroup: 'City' }, { text: 'Country', datafield: 'Country', columngroup: 'Country' } ], source: new jqx.dataAdapter(this.source) } }, beforeCreate: function () { this.source = { localdata: [ ['Maria Anders', 'Sales Representative', 'Berlin', 'Germany'], ['Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico'], ['Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico'] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let columnGroups = this.$refs.myDataTable.columnGroups; |
||
columnsResize | Boolean | false |
Sets or gets the jqxDataTable's columnsResize. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :columnsResize="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let columnsResize = this.$refs.myDataTable.columnsResize; |
||
columnsReorder | Boolean | false |
Sets or gets the jqxDataTable's columnsReorder. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :columnsReorder="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let columnsReorder = this.$refs.myDataTable.columnsReorder; |
||
disabled | Boolean | false |
Sets or gets whether the jqxDataTable is disabled. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :disabled="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let disabled = this.$refs.myDataTable.disabled; |
||
editable | Boolean | false |
Sets or gets whether the jqxDataTable editing is enabled. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :editable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let editable = this.$refs.myDataTable.editable; |
||
editSettings | Object | { saveOnPageChange: true, saveOnBlur: true, saveOnSelectionChange: true, cancelOnEsc: true, saveOnEnter: true, editSingleCell: false, editOnDoubleClick: true, editOnF2: true } |
Sets or gets the jqxDataTable's edit settings. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :editSettings="editSettings" :editable="editable" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { editSettings: { saveOnPageChange: true, saveOnBlur: true, saveOnSelectionChange: false, cancelOnEsc: true, saveOnEnter: true, editSingleCell: false, editOnDoubleClick: true, editOnF2: true }, editable: true, source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> |
||
exportSettings | Object | { columnsHeader: true, hiddenColumns: false, serverURL: null, characterSet: null, recordsInView: true, fileName: "jqxDataTable"} |
Determines the Data Export settings used by jqxDataTable when
<template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :exportSettings="exportSettings" :ready="ready" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { exportSettings: { columnsHeader: true, hiddenColumns: false, serverURL: null, characterSet: null, recordsInView: true, fileName: 'jqxDataTable' }, source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ], ready: () => { this.$refs.myDataTable.exportData('html'); } } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let exportSettings = this.$refs.myDataTable.exportSettings; |
||
enableHover | Boolean | true |
Sets or gets whether row highlighting is enabled. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :enableHover="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let enableHover = this.$refs.myDataTable.enableHover; |
||
enableBrowserSelection | Boolean | false |
Enables or disables the default text selection of the web browser. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :enableBrowserSelection="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let enableBrowserSelection = this.$refs.myDataTable.enableBrowserSelection; |
||
filterable | Boolean | false |
Enables/Disables the filtering feature. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :filterable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let filterable = this.$refs.myDataTable.filterable; |
||
filterHeight | Number | 30 |
Sets or gets the Filter Element's height. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :filterHeight="35" :filterable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let filterHeight = this.$refs.myDataTable.filterHeight; |
||
filterMode | String | "default" |
Determines the Filter's mode. Possible values: <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :filterable="true" :filterMode="'advanced'" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let filterMode = this.$refs.myDataTable.filterMode; |
||
groups | Array | [] |
Sets or gets the jqxDataTable's data groups. Set this property if you want to display the data grouped by a set of column(s). <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :groups=" ['Country'] " /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let groups = this.$refs.myDataTable.groups; |
||
groupsRenderer | Function | null |
Callback function which allows you to customize the rendering of the group headers. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :groupsRenderer="groupsRenderer" :groups=" ['ContactName'] " /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { groupsRenderer: function (value, rowdata, level) { return 'First Name: ' + value; } } } </script> |
||
height | Number | String | null |
Sets or gets the jqxDataTable's height. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :height="350" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let height = this.$refs.myDataTable.height; |
||
initRowDetails | Function | null |
Callback function which is used for initialization of the expanded row's details. The function is called just once when the row is expanded for first time.
initRowDetails
<template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :initRowDetails="initRowDetails" :rowDetails="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { initRowDetails: function (id, row, element, rowinfo) { const container = document.createElement('div'); container.innerHTML = 'Some Details...' element[0].appendChild(container); } } } </script> |
||
incrementalSearch | Boolean | true |
Determines whether the incremental search is enabled. The feature allows you to quickly find and select data records by typing when the widget is on focus. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :incrementalSearch="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let incrementalSearch = this.$refs.myDataTable.incrementalSearch; |
||
localization | Object | default localization strings. |
Applies a localization to the jqxDataTable's strings. Default localization object:{ <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :localization="localization" :pageable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { localization: { pagerGoToPageString: 'Gehe zu:', pagerShowRowsString: 'Zeige Zeile:', pagerRangeString: ' von ', pagerNextButtonString: 'voriger', pagerFirstButtonString: 'first', pagerLastButtonString: 'last', pagerPreviousButtonString: 'nächster' }, source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let localization = this.$refs.myDataTable.localization; |
||
pagerHeight | Number | 28 |
Sets or gets the height of the jqxDataTable's Pager(s). Pager(s) is(are) displayed after setting <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pagerHeight="35" :pageable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let pagerHeight = this.$refs.myDataTable.pagerHeight; |
||
pageSize | Number | 10 |
Sets or gets the rows count per page when paging is enabled. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pageSize="15" :pageable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let pageSize = this.$refs.myDataTable.pageSize; |
||
pageSizeOptions | Array | ['5', '10', '20'] |
Sets or gets the jqxDataTable's page size options when paging is enabled and the <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pageSizeOptions=" [15, 25, 35] " :pageable="true" :pagerMode="'advanced'" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let pageSizeOptions = this.$refs.myDataTable.pageSizeOptions; |
||
pageable | Boolean | false |
Determines whether the jqxDataTable is in paging mode. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pageable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let pageable = this.$refs.myDataTable.pageable; |
||
pagerPosition | String | "bottom" |
Sets or gets the Pager's position. Possible values: <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pagerPosition="'top'" :pageable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let pagerPosition = this.$refs.myDataTable.pagerPosition; |
||
pagerMode | String | "default" |
Sets or gets the Pager's mode. Possible values: <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pagerMode="'advanced'" :pageable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let pagerMode = this.$refs.myDataTable.pagerMode; |
||
pagerButtonsCount | Number | 5 |
Sets or gets the count of the buttons displayed on the Pager when <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pagerButtonsCount="10" :pageable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let pagerButtonsCount = this.$refs.myDataTable.pagerButtonsCount; |
||
pagerRenderer | Function | null |
Enables custom rendering of the Pager. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pagerRenderer="pagerRenderer" :pageable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { pagerRenderer: function () { // Do something here and return a HTML Element as a result. } } } </script> |
||
ready | Function | null |
Callback function which is called when the jqxDataTable is rendered and data binding is completed.. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :ready="ready" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { ready: function () { alert('Ready!') } } } </script> |
||
rowDetails | Boolean | false |
Sets or gets whether the jqxDataTable rows have details and can be expanded/collapsed. See the <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :initRowDetails="initRowDetails" :rowDetails="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { initRowDetails: function (id, row, element, rowinfo) { const container = document.createElement('div'); container.innerHTML = 'Some Details...' element[0].appendChild(container); } } } </script> Get the let rowDetails = this.$refs.myDataTable.rowDetails; |
||
renderToolbar | Function | null |
Enables custom rendering of the Toolbar. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :renderToolbar="renderToolbar" :showToolbar="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { renderToolbar: function (toolbar) { const container = document.createElement('div'); container.innerHTML = 'Some custom HTML here...'; toolbar.append(container); } } } </script> Get the let renderToolbar = this.$refs.myDataTable.renderToolbar; |
||
renderStatusBar | Function | null |
Enables custom rendering of the Statusbar. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :renderStatusBar="renderStatusBar" :showStatusbar="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { renderStatusBar: function (toolbar) { const container = document.createElement('div'); container.innerHTML = 'Some custom HTML here...'; toolbar.append(container); } } } </script> Get the let renderStatusBar = this.$refs.myDataTable.renderStatusBar; |
||
rendering | Function | null |
Callback function which is called before the rendering of the jqxDataTable's rows. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :rendering="rendering" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { rendering: function () { alert('Rendering!'); } } } </script> |
||
rendered | Function | null |
Callback function which is called after the rendering of the jqxDataTable's row. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :rendered="rendered" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { rendered: function () { alert('Rendered!'); } } } </script> |
||
rtl | Boolean | false |
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :rtl="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let rtl = this.$refs.myDataTable.rtl; |
||
source | Object | null |
Determines the jqxDataTable's data source. The <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> |
||
sortable | Boolean | false |
Enables/Disables the sorting feature. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :sortable="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let sortable = this.$refs.myDataTable.sortable; |
||
showAggregates | Boolean | false |
Determines whether the jqxDataTable's Aggregates bar is visible. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :showAggregates="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName', aggregates: ['count'] }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let showAggregates = this.$refs.myDataTable.showAggregates; |
||
showToolbar | Boolean | false |
Determines whether the jqxDataTable's Toolbar is visible. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :showToolbar="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let showToolbar = this.$refs.myDataTable.showToolbar; |
||
showStatusbar | Boolean | false |
Determines whether the jqxDataTable's Statusbar is visible. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :showStatusbar="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let showStatusbar = this.$refs.myDataTable.showStatusbar; |
||
statusBarHeight | Number | 34 |
Sets or gets the height of the Statusbar. Statusbar is displayed after setting <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :statusBarHeight="40" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let statusBarHeight = this.$refs.myDataTable.statusBarHeight; |
||
scrollBarSize | Number | 17 |
Sets or gets the size of the scrollbars. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :scrollBarSize="20" :height="100" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let scrollBarSize = this.$refs.myDataTable.scrollBarSize; |
||
selectionMode | String | "multipleRows" |
Sets or gets the selection mode. Possible values: <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :selectionMode="'singleRow'" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let selectionMode = this.$refs.myDataTable.selectionMode; |
||
serverProcessing | Boolean | false |
Sets or gets whether the Paging, Sorting and Filtering are handled by a Server and jqxDataTable sends Ajax requests to a Server and displays the returned data. When the current page, page size, sort order or sort column is changed, jqxDataTable will automatically perform a new data binding with the updated parameters. For server synchronization after adding, removing, updating rows, see the
<template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :serverProcessing="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let serverProcessing = this.$refs.myDataTable.serverProcessing; |
||
showHeader | Boolean | true |
Sets or gets the jqxDataTable's columns visibility. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :showHeader="false" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let showHeader = this.$refs.myDataTable.showHeader; |
||
theme | String | '' |
Sets the widget's theme.
<template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :theme="'material'" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> |
||
toolbarHeight | Number | 34 |
Sets or gets the height of the Toolbar. Toolbar is displayed after setting <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :toolbarHeight="40" :showToolbar="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let toolbarHeight = this.$refs.myDataTable.toolbarHeight; |
||
width | Number | String | null |
Sets or gets the jqxDataTable's width. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; } } </script> Get the let width = this.$refs.myDataTable.width; |
||
Events |
||
bindingComplete | Event | |
This event is triggered when the jqxDataTable binding is completed. *Bind to that event before the jqxDataTable's initialization. Otherwise, if you are populating the widget from a local data source and bind to Code examples
Bind to the
<template> <div> <JqxDataTable ref="myDataTable" @bindingComplete="onBindingComplete($event)" :width="850" :source="source" :columns="columns" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName" }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ] }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { this.$refs.myDataTable.updateBoundData(); }, onBindingComplete: function (event) { alert('do something...'); } } }; </script> |
||
cellBeginEdit | Event | |
This is triggered when a cell edit begins. Note: To turn on cell editing, you should set the Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @cellBeginEdit="onCellBeginEdit($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.editable = true; this.$refs.myDataTable.editSettings = { saveOnPageChange: true, saveOnBlur: true, saveOnSelectionChange: true, cancelOnEsc: true, saveOnEnter: true, editOnDoubleClick: true, editOnF2: true, editSingleCell: true }; }, methods: { onCellBeginEdit: function (event) { alert('do something...'); } } } </script> |
||
cellEndEdit | Event | |
This is triggered when a cell edit ends. Note: To turn on cell editing, you should set the Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @cellEndEdit="onCellEndEdit($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.editable = true; this.$refs.myDataTable.editSettings = { saveOnPageChange: true, saveOnBlur: true, saveOnSelectionChange: true, cancelOnEsc: true, saveOnEnter: true, editOnDoubleClick: true, editOnF2: true, editSingleCell: true }; }, methods: { onCellEndEdit: function (event) { alert('do something...'); } } } </script> |
||
cellValueChanged | Event | |
This event is triggered when a cell value is changed. Code examples
Bind to the
<template> <div> <JqxDataTable ref="myDataTable" @cellValueChanged="onCellValueChanged($event)" :width="850" :source="source" :columns="columns" :editable="true" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName" }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ] }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { this.$refs.myDataTable.setCellValue(1, 'ContactName', 'New Value'); }, onCellValueChanged: function (event) { alert('do something...'); } } }; </script> |
||
columnResized | Event | |
This event is triggered when a column is resized. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @columnResized="onColumnResized($event)" :width="850" :source="source" :columns="columns" :columnsResize="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { onColumnResized: function (event) { alert('do something...'); } } } </script> |
||
columnReordered | Event | |
This event is triggered when the column's order is changed. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @columnReordered="onColumnReordered($event)" :width="850" :source="source" :columns="columns" :columnsReorder="true" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { onColumnReordered: function (event) { alert('do something...'); } } } </script> |
||
sort | Event | |
This event is triggered when the jqxDataTable sort order or sort column is changed. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @sort="onSort($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.sortable = true; }, methods: { onSort: function (event) { alert('do something...'); } } } </script> |
||
filter | Event | |
This event is triggered when the jqxDataTable's rows filter is changed. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @filter="onFilter($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.filterable = true; }, methods: { onFilter: function (event) { alert('do something...'); } } } </script> |
||
pageChanged | Event | |
This is triggered when the jqxDataTable's current page is changed. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @pageChanged="onPageChanged($event)" :width="850" :source="source" :columns="columns" :pageable="true" :pageSize="2" /> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; export default { components: { JqxDataTable }, data: function() { return { source: new jqx.dataAdapter(this.source), columns: [ { text: "Contact Name", datafield: "ContactName" }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ] }; }, beforeCreate: function() { this.source = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onPageChanged: function(event) { alert("do something..."); } } }; </script> |
||
pageSizeChanged | Event | |
This is triggered when the jqxDataTable's page size is changed. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @pageSizeChanged="onPageSizeChanged($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.pageable = true; this.$refs.myDataTable.pagerMode = 'advance'; this.$refs.myDataTable.pageSizeOptions = [2, 4, 8]; }, methods: { onPageSizeChanged: function (event) { alert('do something...'); } } } </script> |
||
rowClick | Event | |
This is triggered when a row is clicked. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @rowClick="onRowClick($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { onRowClick: function (event) { alert('do something...'); } } } </script> |
||
rowDoubleClick | Event | |
This is triggered when a row is double-clicked. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @rowDoubleClick="onRowDoubleClick($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { onRowDoubleClick: function (event) { alert('do something...'); } } } </script> |
||
rowSelect | Event | |
This is triggered when a row is selected. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @rowSelect="onRowSelect($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { onRowSelect: function (event) { alert('do something...'); } } } </script> |
||
rowUnselect | Event | |
This is triggered when a row is unselected. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @rowUnselect="onRowUnselect($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, methods: { onRowUnselect: function (event) { alert('do something...'); } } } </script> |
||
rowBeginEdit | Event | |
This is triggered when a row edit begins. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @rowBeginEdit="onRowBeginEdit($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.editable = true; }, methods: { onRowBeginEdit: function (event) { alert('do something...'); } } } </script> |
||
rowEndEdit | Event | |
This is triggered when a row edit ends. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @rowEndEdit="onRowEndEdit($event)" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.editable = true; }, methods: { onRowEndEdit: function (event) { alert('do something...'); } } } </script> |
||
rowExpand | Event | |
This is triggered when a row is expanded. Code examples
Bind to the
<template> <div> <JqxDataTable ref="myDataTable" @rowExpand="onRowExpand($event)" :width="850" :source="source" :columns="columns" :rowDetails="true" :initRowDetails="initRowDetails" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], initRowDetails: (id, row, element, rowinfo) => { rowinfo.detailsHeight = 48; element.html("<strong>Details</strong><br/>Row Index: " + id); } }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onRowExpand: function(event) { alert("do something..."); }, onClick: function(event) { this.$refs.myDataTable.showDetails(1); } } }; </script> |
||
rowCollapse | Event | |
This is triggered when a row is collapsed. Code examples
Bind to the
<template> <JqxDataTable ref="myDataTable" @rowCollapse="onRowCollapse($event)" :width="850" :source="source" :columns="columns" :ready="ready" :rowDetails="true" :initRowDetails="initRowDetails" /> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; export default { components: { JqxDataTable }, data: function() { return { source: new jqx.dataAdapter(this.source), columns: [ { text: "Contact Name", datafield: "ContactName" }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], initRowDetails: (id, row, element, rowinfo) => { rowinfo.detailsHeight = 48; element.text("Row Details: " + id); }, ready: () => { this.$refs.myDataTable.showDetails(1); } }; }, beforeCreate: function() { this.source = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onRowCollapse: function (event) { alert('do something...'); } } }; </script> |
||
Methods |
||
Name | Arguments | Return Type |
addRow | rowIndex, rowData, rowPosition | None |
Adds a new row. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.addRow(null,{ 'ContactName': 'Added Name', 'Title': 'Added Title', 'City': 'Added City', 'Country': 'Added Country' },'first'); } } </script> |
||
addFilter | dataField, filerGroup | None |
Adds a new filter. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :filterable="true" :ready="ready" /> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; export default { components: { JqxDataTable }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], ready: () => { let filtertype = "stringfilter"; let filtergroup = new jqx.filter(); let filter_or_operator = 1; // set filter's value. let filtervalue = "er"; // set filter's condition. let filtercondition = "contains"; // create new filter. let filter = filtergroup.createfilter( filtertype, filtervalue, filtercondition ); // add the filter to the filter group. filtergroup.addfilter(filter_or_operator, filter); // add the filters. this.$refs.myDataTable.addFilter("ContactName", filtergroup); // apply the filters. this.$refs.myDataTable.applyFilters(); } }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; } }; </script> |
||
applyFilters | None | None |
Applies the added/removed filters. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :filterable="true" :ready="ready" /> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; export default { components: { JqxDataTable }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], ready: () => { let filtertype = "stringfilter"; let filtergroup = new jqx.filter(); let filter_or_operator = 1; // set filter's value. let filtervalue = "er"; // set filter's condition. let filtercondition = "contains"; // create new filter. let filter = filtergroup.createfilter( filtertype, filtervalue, filtercondition ); // add the filter to the filter group. filtergroup.addfilter(filter_or_operator, filter); // add the filters. this.$refs.myDataTable.addFilter("ContactName", filtergroup); let filtergroup2 = new jqx.filter(); filtervalue = "Ottawa"; let filter2 = filtergroup.createfilter(filtertype, filtervalue, filtercondition); filtergroup2.addfilter(filter_or_operator, filter2); this.$refs.myDataTable.addFilter("City", filtergroup2); // apply the filters. this.$refs.myDataTable.applyFilters(); } }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; } }; </script> |
||
beginUpdate | None | None |
Begins an update and stops all refreshes. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.beginUpdate(); } } </script> |
||
beginRowEdit | rowIndex | None |
Begins a row edit operation when <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.beginRowEdit(0); } } </script> |
||
beginCellEdit | rowIndex, dataField | None |
Begins a cell edit operation when <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.beginCellEdit(0,'ContactName'); } } </script> |
||
clearSelection | None | None |
Clears the selection. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.clearSelection(); } } </script> |
||
clearFilters | None | None |
Clears the filters. <template> <div> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :filterable="true" :ready="ready" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], ready: () => { let filtertype = "stringfilter"; let filtergroup = new jqx.filter(); let filter_or_operator = 1; // set filter's value. let filtervalue = "er"; // set filter's condition. let filtercondition = "contains"; // create new filter. let filter = filtergroup.createfilter( filtertype, filtervalue, filtercondition ); // add the filter to the filter group. filtergroup.addfilter(filter_or_operator, filter); // add the filters. this.$refs.myDataTable.addFilter("ContactName", filtergroup); // apply the filters. this.$refs.myDataTable.applyFilters(); } }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { this.$refs.myDataTable.clearFilters(); } } }; </script> |
||
clear | None | None |
Clears the jqxDataTable. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.clear(); } } </script> |
||
destroy | None | None |
Destroys jqxDataTable and removes it from the DOM. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.destroy(); } } </script> |
||
deleteRow | rowIndex | None |
Deletes a row. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.deleteRow(0); } } </script> |
||
endUpdate | None | None |
Ends the update and resumes all refreshes. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.endUpdate(); } } </script> |
||
ensureRowVisible | rowIndex | None |
Moves the vertical scrollbar to a row index. <template> <JqxDataTable ref="myDataTable" :width="850" :height="100" :source="source" :columns="columns" :ready="ready" /> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], ready: () => { this.$refs.myDataTable.ensureRowVisible(2); } }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; } }; </script> |
||
endRowEdit | rowIndex, cancelChanges | None |
Ends a row edit when <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.endRowEdit(0); } } </script> |
||
endCellEdit | rowIndex, dataField | None |
Ends a cell edit operation when <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :editable="true" :ready="ready" /> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; export default { components: { JqxDataTable }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], ready: () => { this.$refs.myDataTable.beginCellEdit(0, 'ContactName'); setTimeout(() => { this.$refs.myDataTable.endCellEdit(0, 'ContactName'); }, 1000); } }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; } }; </script> |
||
exportData | exportDataType | Object(optional) |
Exports jqxDataTable's data to Excel, HTML, XML, JSON, CSV or TSV. See also the <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { const value = this.$refs.myDataTable.exportData('xls'); } } </script> |
||
focus | None | None |
Focus jqxDataTable. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.focus(); } } </script> |
||
getColumnProperty | dataField, propertyName | Object |
Gets a property value of a column. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { const value = this.$refs.myDataTable.getColumnProperty('ContactName','width'); } } </script> |
||
goToPage | pageIndex | None |
Navigates to a page when <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pageable="true" :pageSize="2" :ready="ready" /> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; export default { components: { JqxDataTable }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], ready: () => { this.$refs.myDataTable.goToPage(1); } }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; } }; </script> |
||
goToPrevPage | None | None |
Navigates to a previous page when <template> <div> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pageable="true" :pageSize="2" :ready="ready" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], ready: () => { this.$refs.myDataTable.goToPage(1); } }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { this.$refs.myDataTable.goToPrevPage(); } } }; </script> |
||
goToNextPage | None | None |
Navigates to a next page when <template> <div> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :pageable="true" :pageSize="2" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ] }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { this.$refs.myDataTable.goToNextPage(); } } }; </script> |
||
getSelection | None | Array |
Returns an array of selected rows. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { const value = this.$refs.myDataTable.getSelection(); } } </script> |
||
getRows | None | Array |
Returns an array of all rows loaded in the widget. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { const value = this.$refs.myDataTable.getRows(); } } </script> |
||
getView | None | Array |
Returns an array of all rows displayed in the view. This method takes into account the Sorting Order and returns the Filtered Set of Rows, if Filtering is applied. The method is different from getRows, because getRows returns a Rows array in their data binding order and that array is not affected by filtering and sorting. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { const value = this.$refs.myDataTable.getView(); } } </script> |
||
getCellValue | rowIndex, dataField | Object |
Returns a value of a cell. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { const value = this.$refs.myDataTable.getCellValue(1,'ContactName'); } } </script> |
||
hideColumn | dataField | None |
Hides a column. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.hideColumn('ContactName'); } } </script> |
||
hideDetails | rowIndex | None |
Hides the details of a row. <template> <div> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :ready="ready" :rowDetails="true" :initRowDetails="initRowDetails" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], initRowDetails: (id, row, element, rowinfo) => { rowinfo.detailsHeight = 48; element.html("<strong>Details</strong><br/>Row Index: " + id); }, ready: () => { this.$refs.myDataTable.showDetails(1); } }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { const value = this.$refs.myDataTable.hideDetails(1); } } }; </script> |
||
isBindingCompleted | None | Boolean |
Returns whether the binding is completed and if the result is true, this means that you can invoke methods and set properties. Otherwise, if the binding is not completed and you try to set a property or invoke a method, the widget will throw an exception. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { const value = this.$refs.myDataTable.isBindingCompleted(); } } </script> |
||
lockRow | rowIndex | None |
Locks a row i.e editing of the row would be disabled. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.lockRow(0); } } </script> |
||
refresh | None | None |
Performs a layout and updates the HTML elements position and size. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.refresh(); } } </script> |
||
render | None | None |
Renders jqxDataTable. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.render(); } } </script> |
||
removeFilter | dataField | None |
Removes a filter. <template> <div> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :filterable="true" :ready="ready" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: false }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], ready: () => { let filtertype = "stringfilter"; let filtergroup = new jqx.filter(); let filter_or_operator = 1; // set filter's value. let filtervalue = "er"; // set filter's condition. let filtercondition = "contains"; // create new filter. let filter = filtergroup.createfilter( filtertype, filtervalue, filtercondition ); // add the filter to the filter group. filtergroup.addfilter(filter_or_operator, filter); // add the filters. this.$refs.myDataTable.addFilter("ContactName", filtergroup); // apply the filters. this.$refs.myDataTable.applyFilters(); } }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"], ["Andrew Nodier", "Accounting Manager", "Ottawa", "Canada"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { this.$refs.myDataTable.removeFilter("ContactName"); this.$refs.myDataTable.applyFilters(); } } }; </script> |
||
scrollOffset | top, left | None |
Scrolls to a position. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.scrollOffset(10,0); } } </script> |
||
setColumnProperty | dataField, propertyName, propertyValue | None |
Sets a property of a column. See the <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.setColumnProperty('ContactName','hidden',true); } } </script> |
||
showColumn | dataField | None |
Shows a column. <template> <div> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName", hidden: true }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { this.$refs.myDataTable.showColumn('ContactName'); } } }; </script> |
||
selectRow | rowIndex | None |
Selects a row. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.selectRow(1); } } </script> |
||
showDetails | rowIndex | None |
Shows a row details. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :ready="ready" :rowDetails="true" :initRowDetails="initRowDetails" /> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; export default { components: { JqxDataTable }, data: function() { return { source: new jqx.dataAdapter(this.source), columns: [ { text: "Contact Name", datafield: "ContactName" }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], initRowDetails: (id, row, element, rowinfo) => { rowinfo.detailsHeight = 48; element.text("Row Details: " + id); }, ready: () => { this.$refs.myDataTable.showDetails(1); } }; }, beforeCreate: function() { this.source = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; } }; </script> |
||
setCellValue | rowIndex, dataField, value | None |
Sets a value of a cell. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.setCellValue(1,'ContactName','New Value'); } } </script> |
||
sortBy | dataField, sortOrder | None |
Sorts a column, if <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.sortable = true; this.$refs.myDataTable.sortBy('ContactName','asc'); } } </script> |
||
updating | None | Boolean |
Gets a boolean value which determines whether jqxDataTable is in update state i.e the <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { const value = this.$refs.myDataTable.updating(); } } </script> |
||
updateBoundData | None | None |
Performs a data bind and updates jqxDataTable with the new data. <template> <div> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.dataSource), columns: [ { text: "Contact Name", datafield: "ContactName" }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], }; }, beforeCreate: function() { this.dataSource = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { this.dataSource.localdata = [ ["Nancy Wilson", "Owner", "Rome", "Italy"], ["Cheryl Nodier", "Sales Representative", "Prague", "Czech Republic"], ["Guylene Bjorn", "Owner", "Paris", "France"], ["Regina Murphy", "Sales Representative", "Lisbon", "Portugal"] ]; this.$refs.myDataTable.updateBoundData(); } } }; </script> |
||
unselectRow | rowIndex | None |
Unselects a row. <template> <div> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :ready="ready" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.source), columns: [ { text: "Contact Name", datafield: "ContactName" }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], ready: () => { this.$refs.myDataTable.selectRow(1); } }; }, beforeCreate: function() { this.source = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { this.$refs.myDataTable.unselectRow(1); } } }; </script> |
||
updateRow | rowIndex, rowData | None |
Updates the row's data. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation. <template> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" /> </template> <script> import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue'; export default { components: { JqxDataTable }, data: function () { return { source: new jqx.dataAdapter(this.source), columns: [ { text: 'Contact Name', datafield: 'ContactName' }, { text: 'Contact Title', datafield: 'Title' }, { text: 'City', datafield: 'City' }, { text: 'Country', datafield: 'Country' } ] } }, beforeCreate: function () { this.source = { localdata: [ [ 'Maria Anders', 'Sales Representative', 'Berlin', 'Germany' ], [ 'Ana Trujillo', 'Owner', 'Mxico D.F.', 'Mexico' ], [ 'Antonio Moreno', 'Owner', 'Mxico D.F.', 'Mexico' ] ], datafields: [ { name: 'ContactName', type: 'string', map: '0' }, { name: 'Title', type: 'string', map: '1' }, { name: 'City', type: 'string', map: '2' }, { name: 'Country', type: 'string', map: '3' } ], datatype: 'array' }; }, mounted: function () { this.$refs.myDataTable.updateRow(1,{}); } } </script> |
||
unlockRow | rowIndex | None |
Unlocks a row. <template> <div> <JqxDataTable ref="myDataTable" :width="850" :source="source" :columns="columns" :ready="ready" /> <br> <JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton> </div> </template> <script> import JqxDataTable from "jqwidgets-scripts/jqwidgets-vue/vue_jqxdatatable.vue"; import JqxButton from "jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue"; export default { components: { JqxDataTable, JqxButton }, data: function() { return { source: new jqx.dataAdapter(this.source), columns: [ { text: "Contact Name", datafield: "ContactName" }, { text: "Contact Title", datafield: "Title" }, { text: "City", datafield: "City" }, { text: "Country", datafield: "Country" } ], ready: () => { this.$refs.myDataTable.lockRow(1); } }; }, beforeCreate: function() { this.source = { localdata: [ ["Maria Anders", "Sales Representative", "Berlin", "Germany"], ["Ana Trujillo", "Owner", "Mxico D.F.", "Mexico"], ["Antonio Moreno", "Owner", "Mxico D.F.", "Mexico"] ], datafields: [ { name: "ContactName", type: "string", map: "0" }, { name: "Title", type: "string", map: "1" }, { name: "City", type: "string", map: "2" }, { name: "Country", type: "string", map: "3" } ], datatype: "array" }; }, methods: { onClick: function(event) { this.$refs.myDataTable.unlockRow(1); } } }; </script> |