# jQWidgets documentation for Vue (full text) > Guides, tutorials and API references for the jQWidgets Vue UI components: data grids, charts, scheduler, Gantt, Kanban, editors, lists, navigation and layout. Version 27.1.0. Every page has a Markdown copy: its URL followed by .md. Live demos with source code: https://www.jqwidgets.com/vue/ Install: `npm install jqwidgets-scripts`, then import a component from `jqwidgets-scripts/jqwidgets-vue3/vue_.vue`, e.g. `import JqxGrid from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxgrid.vue'` (Vue 3, ` ``` Start the development server and open `http://localhost:5173`: ```bash npm run dev ``` #### Events Component events have the same names as the widget events in the JavaScript API. Listen to them with `@`, like any Vue event: ```vue ``` #### Properties and methods Widget options are props. Bind them with `:` to reactive values: when a value changes, the component passes it to the widget. To call a method such as `refresh()` or `val()`, put a template ref on the component: ```vue ``` Every component also has `setOptions`, which changes several options at once: ```typescript myBarGauge.value?.setOptions({ width: 500, values: [50, 70, 90] }); ``` (Add `setOptions: (options: object) => void` to the interface to call it from TypeScript.) #### Two-way data binding Input components support `v-model`, so a ref always holds the widget's current value: ```vue ``` `v-model` works with these components: JqxCalendar, JqxCheckBox, JqxComboBox, JqxComplexInput, JqxDateTimeInput, JqxDropDownList, JqxFormattedInput, JqxInput, JqxListBox, JqxMaskedInput, JqxNumberInput, JqxPasswordInput, JqxRadioButton, JqxRating, JqxSlider, JqxSwitchButton and JqxTextArea. #### Documentation for AI assistants Every page of this documentation has a Markdown copy (the *Markdown* button at the top of a page), and the whole documentation is one file at [llms-full.txt](https://www.jqwidgets.com/vue-components-documentation/llms-full.txt), with an index at [llms.txt](https://www.jqwidgets.com/vue-components-documentation/llms.txt). Point your assistant there, or use *Ask AI* on any page. #### Next steps - [Vite and Vue 3 with \ ``` When `values` changes, the component passes the new array to the widget, which animates to it. #### 5. Run the app ```bash npm run dev ``` Open `http://localhost:5173`. The page updates as you save files. The app from step 4. #### 6. Build for production ```bash npm run build npm run preview ``` `npm run build` type-checks the project with `vue-tsc` and writes the production files to `dist/`. `npm run preview` serves that folder so you can check it before you deploy. #### Coming from Vue CLI | Vue CLI | create-vue (Vite) | | --- | --- | | `npm run serve` on port 8080 | `npm run dev` on port 5173 | | `public/index.html` | `index.html` in the project root, loading `/src/main.ts` | | `vue.config.js` | `vite.config.ts` | | `VUE_APP_*` variables in `process.env` | `VITE_*` variables in `import.meta.env` | | Vue 2 components from `jqwidgets-vue` | Vue 3 components from `jqwidgets-scripts/jqwidgets-vue3` | #### Next steps - [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm) - [Add a Chart to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxchart.htm) - [Vite and Vue 3 with \ ``` The component above when it starts: the input and the paragraph show the same bound value. #### How the pieces map to ``` The chart takes its size from CSS, here the `chart` class. A plain array works as `source`; use a `jqx.dataAdapter` when the data comes from a URL, as JSON, CSV or XML. #### 5. Run the app ```bash npm run dev ``` Open `http://localhost:5173`. Hover a point to see its tooltip, click a legend item to hide a series, and change the chart type in the drop-down. #### 6. Handle chart events Listen to chart events with `@`. The `click` event fires when the user clicks a data point, and `event.args` tells you which one: ```vue ``` Next: [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm), [Chart getting started](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchart/vue-chart-getting-started.htm), [Chart API](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchart/vue-chart-api.htm). Live Chart demos: [jqwidgets.com/vue](https://www.jqwidgets.com/vue/). --- ### Add a Grid to a Vue 3 app Source: https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm > This tutorial adds the jQWidgets Vue Grid to a Vue 3.5 and TypeScript project created with create-vue. This tutorial adds the jQWidgets Vue Grid to a Vue 3.5 and TypeScript project created with create-vue. The grid lists contacts, sorts, filters and pages them, and shows which row is selected. Earlier versions of this page used Vue CLI, which is in maintenance mode; create-vue and Vite replace it. #### 1. Create the project Answer **Yes** to TypeScript when create-vue asks, then install jQWidgets: ```bash npm create vue@latest my-app cd my-app npm install npm install jqwidgets-scripts ``` #### 2. Configure Vite Two additions to `vite.config.ts` make jqwidgets-scripts versions before 27.1.0 work with Vite, and do no harm in 27.1.0. Without them, `npm run dev` stops with *Cannot set properties of undefined (setting 'Globalize')* as soon as a Grid, Calendar, DateTimeInput, Form or Scheduler is on the page, and `npm run build` fails with *Unexpected token Semicolon*. With 27.1.0 the dev server works without the plugin, and the build fails only with the `light-ie` and `dark-ie` themes. Keep the rest of the file create-vue wrote; the additions are the plugin and the `css` setting: ```typescript import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin } from 'vite' import vue from '@vitejs/plugin-vue' import vueDevTools from 'vite-plugin-vue-devtools' // Before jqwidgets-scripts 27.1.0: globalize.js, which the Grid, Calendar, DateTimeInput, Form and // Scheduler components load, hands its code `this` as the window. The dev server serves it as // an ES module, where `this` is undefined; this passes the window instead. const jqwidgetsGlobalize: Plugin = { name: 'jqwidgets-globalize-window', transform(code, id) { if (id.includes('jqwidgets-scripts/jqwidgets/globalization/globalize.js')) { return code.replace(/\}\(this\)\);/, '}(window));') } }, } // https://vite.dev/config/ export default defineConfig({ plugins: [ vue(), vueDevTools(), jqwidgetsGlobalize, ], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, // Some jQWidgets themes still contain Internet Explorer CSS hacks (*zoom: 1; in 27.1.0 only // light-ie and dark-ie), which Vite's // CSS minifier rejects: errorRecovery drops those lines instead of stopping the build. css: { lightningcss: { errorRecovery: true } }, }) ``` The plugin changes one line of `globalize.js`, the culture library those five components load: before 27.1.0 it was written for a classic script, where `this` is the window, and the dev server serves it as an ES module, where `this` is undefined. The production build is not affected. In 27.1.0 the file finds the window itself, and the plugin changes nothing. `errorRecovery` lets Vite's CSS minifier drop the Internet Explorer hacks (`*zoom: 1`) that some themes still contain (in 27.1.0 `light-ie` and `dark-ie`), instead of stopping the build. #### 3. Load the styles Replace `src/main.ts`: ```typescript import { createApp } from 'vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; import App from './App.vue'; createApp(App).mount('#app'); ``` The Vue components are plain JavaScript files, so TypeScript's strict mode rejects importing them (`TS7016: Could not find a declaration file`). Declare them once in a new file, `src/jqwidgets-vue3.d.ts`: ```typescript // src/jqwidgets-vue3.d.ts declare module 'jqwidgets-scripts/jqwidgets-vue3/*.vue' { import type { DefineComponent } from 'vue'; const component: DefineComponent, Record, any>; export default component; } ``` #### 4. Create the grid The grid reads its rows through a `jqx.dataAdapter`. The Grid component loads the jQWidgets core, which defines `jqx` as a global, so the script only declares its type. Replace `src/App.vue`: ```vue ``` Options are props with the same names as in the JavaScript API, and events keep their names too: `rowselect` is `@rowselect`. #### 5. Run the app ```bash npm run dev ``` Open `http://localhost:5173`. Click a column header to sort, type in the filter row to filter, and select a row to see its name below the grid. #### 6. Call grid methods Put a template ref on the grid to call its methods. This example exports the rows to Excel: ```vue ``` Next: [Add a Chart to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxchart.htm), [Grid getting started](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-getting-started.htm), [Grid API](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm). Live Grid demos: [jqwidgets.com/vue](https://www.jqwidgets.com/vue/). --- ### Accessibility in Vue Source: https://www.jqwidgets.com/vue-components-documentation/documentation/accessibility/jqwidgets-accessibility-overview.htm > The jQWidgets Vue components are made to work with a keyboard and a screen reader. The jQWidgets Vue components are made to work with a keyboard and a screen reader. Each component renders an element and creates its widget in it when it is mounted, and the widget does the accessibility work. It adds WAI-ARIA roles and states to its elements and keeps them up to date. It answers the keys that users of that kind of control expect, and it can mirror its layout for right-to-left languages. Charts, gauges and codes get a name that a screen reader can read out. Some things only your app knows: what a field is called, what a drawing shows, and what happened after a click. This guide shows what the components do in jqwidgets-scripts 27.1.0 with Vue 3.5, and the code your app adds for accessibility. Attributes that you put on a component, such as `aria-label` and `aria-labelledby`, reach the widget's element, as they would on a plain element. #### The conformance report The [jQWidgets Accessibility Conformance Report](https://www.jqwidgets.com/jquery-widgets-documentation/documentation/compliance/vpat.htm) (VPAT 2.5 format) rates every WCAG 2.1 Level A and AA success criterion, says how each one was tested, and names the command that repeats the test. It covers the widgets themselves, which the Vue components wrap. It is a self-issued report for version 27.0.0, dated 4 September 2026 and marked as a draft. | Question | What the report says | | --- | --- | | Which standard? | WCAG 2.1 Level A and AA. Of the 50 criteria, 37 are rated Supports and 13 Not Applicable, because they are about whole pages or media (page titles, captions and similar). | | What is covered? | `jqx.base.css` and the widgets that render HTML, in the `base`, `light` and `dark` themes. | | What is not covered? | The widgets that draw their content and take its colours from your options: jqxChart, jqxGauge, jqxLinearGauge, jqxBarGauge, jqxBulletChart, jqxHeatMap, jqxTreeMap, jqxKnob, jqxBarcode, jqxQRcode, jqxDraw and jqxGantt. The other themes, such as `fluent`, `tailwind` and `highcontrast`, are provided but not claimed. | | WCAG 2.2? | The six Level A and AA criteria that WCAG 2.2 adds are rated separately: 2.4.11 Focus Not Obscured is supported, 2.5.7 Dragging Movements and 2.5.8 Target Size are partially supported, and three do not apply. So the report does not claim WCAG 2.2 Level AA. | | Section 508, EN 301 549? | The report rates WCAG criteria only. It has no separate Section 508 or EN 301 549 tables. | Use the report for procurement and audits. The rest of this guide shows what it means for your app. #### WAI-ARIA roles and states Each widget adds its ARIA attributes when it is created; there is no option to turn on. This component: ```vue ``` renders this element (without its generated `id`, its `class` and its `style`): ```html
``` The `aria-label` comes from the component's attributes; the widget adds the rest. `tabindex="0"` puts the slider in the Tab order. In the browser's accessibility tree, which is what a screen reader reads, it is a slider named "Volume" with values from 0 to 10. When the user presses the Right Arrow key, the widget changes `aria-valuenow` to 6. To see the attributes of any widget, inspect its element in the browser's developer tools, or open their Accessibility panel. The widgets follow the patterns of the [WAI-ARIA Authoring Practices Guide](https://www.w3.org/WAI/ARIA/apg/). These are the roles and states that jqwidgets-scripts 27.1.0 renders for the components used most: | Component | Roles | States and properties | | --- | --- | --- | | JqxSlider, JqxRating | `slider` | `aria-valuenow`, `aria-valuemin`, `aria-valuemax` | | JqxNumberInput | `spinbutton` | `aria-valuenow`, `aria-valuemin`, `aria-valuemax` | | JqxProgressBar | `progressbar` | `aria-valuenow` | | JqxCheckBox, JqxSwitchButton | `checkbox` | `aria-checked` | | JqxButtonGroup (radio mode) | `radiogroup`, `radio` | | JqxDropDownList, JqxComboBox | `combobox` | `aria-expanded`, `aria-haspopup`, `aria-owns`; an open drop-down list names the highlighted item with `aria-activedescendant` | | JqxListBox | `listbox`, `option` | `aria-selected`, `aria-multiselectable` | | JqxTabs | `tablist`, `tab`, `tabpanel` | `aria-selected` and `aria-controls` on each tab, and only the selected tab in the Tab order; each tab panel is `aria-labelledby` its tab | | JqxTree | `tree`, `group`, `treeitem` | `aria-expanded` on an item with children; `aria-selected` on the selected item, which is also the tree's `aria-activedescendant` | | JqxMenu | `menubar`, `menuitem` | `aria-haspopup`, `aria-expanded` and `aria-owns` on an item with a submenu | | JqxGrid | `grid`, `row`, `columnheader`, `gridcell` | `aria-rowcount`, `aria-colcount`, `aria-rowindex`, `aria-colindex`, `aria-multiselectable`, `aria-sort` on a sorted column, and the selected row as `aria-activedescendant` | | JqxWindow | `dialog` | `aria-labelledby` its title bar, `aria-describedby` its content | | JqxInput | `textbox` | | JqxChart, the gauges, JqxBulletChart, JqxQRcode | `img` | `aria-label`: see Names for charts, gauges and codes | #### Turning the ARIA attributes off `jqx.ariaEnabled` is `true` by default. Setting it to `false` in `src/main.ts`, before the app is mounted, stops the widgets from writing their states. `jqx` is a global that the components' scripts define: ```typescript import { createApp } from 'vue'; import App from './App.vue'; declare const jqx: any; jqx.ariaEnabled = false; createApp(App).mount('#app'); ``` It does less than its name says. The roles, the labels and the grid's structure stay. What goes are the values and states, such as `aria-valuenow` and `aria-checked`, and the messages of `jqx.announce` (see Status messages). A slider is then a slider without a value, and axe-core reports it as an error (`aria-required-attr`). Leave the setting on. #### Keyboard navigation Tab moves into a component and out of it again, and the arrow keys move inside it. The conformance report found every interactive widget operable from the keyboard, with no keyboard trap and a visible change when it gets the focus. These are the main keys in 27.1.0: | Component | Keys | | --- | --- | | JqxSlider | Left and Down Arrow lower the value, Right and Up Arrow raise it; Home and End go to the minimum and the maximum | | JqxRating | Left and Right Arrow | | JqxNumberInput | Up and Down Arrow | | JqxCheckBox, JqxSwitchButton | Space | | JqxListBox | Up and Down Arrow, Home, End | | JqxDropDownList, JqxComboBox | Alt+Down Arrow opens the list, Down Arrow and Enter pick an item, Escape closes the list | | JqxDateTimeInput | Alt+Down Arrow opens the calendar; the arrow keys and Enter pick a day | | JqxCalendar | Left and Right Arrow: a day; Up and Down Arrow: a week; Page Up and Page Down: a month; Home and End: the first and last day of the month | | JqxTabs | Left and Right Arrow, Home, End | | JqxTree | Up and Down Arrow; Right Arrow expands an item and Left Arrow collapses it; Home, End | | JqxMenu | with `:keyboardNavigation="true"`: Left and Right Arrow, Alt+Down Arrow opens a submenu, Down Arrow and Enter choose in it, Escape closes it | | JqxGrid | Up and Down Arrow move the selection, Home and End go to the first and last row | | JqxButtonGroup | Left and Right Arrow move between the buttons | | JqxWindow | Escape closes it; a modal window keeps Tab inside it | | JqxTooltip | Escape closes it | What to know about a few components: - **JqxTree** and **JqxGrid** move from the selected item or row. When a tree gets the focus with nothing selected, it selects its first item; in a grid with no row selected, the first arrow key selects the first row. Before 27.1.0 the arrow keys did nothing until something was selected. On those versions, call the tree's `selectItem` method when it is mounted, and the grid's `selectrow(0)` once the data is in it. - **JqxMenu** answers the keyboard only with `:keyboardNavigation="true"`; the default is `false`. - **JqxWindow**: when a modal window opens, the focus moves into it. Escape closes it, and the focus goes back to the element that had it before. The keyboard demos list all the keys of each component: [Grid](https://www.jqwidgets.com/vue/vue-grid/vue-grid-keyboardnavigation.htm), [Tree](https://www.jqwidgets.com/vue/vue-tree/vue-tree-keyboardnavigation.htm), [ListBox](https://www.jqwidgets.com/vue/vue-listbox/vue-listbox-keyboardnavigation.htm), [DropDownList](https://www.jqwidgets.com/vue/vue-dropdownlist/vue-dropdownlist-keyboardnavigation.htm), [ComboBox](https://www.jqwidgets.com/vue/vue-combobox/vue-combobox-keyboardnavigation.htm), [Calendar](https://www.jqwidgets.com/vue/vue-calendar/vue-calendar-keyboardnavigation.htm), [DateTimeInput](https://www.jqwidgets.com/vue/vue-datetimeinput/vue-datetimeinput-keyboardnavigation.htm), [Slider](https://www.jqwidgets.com/vue/vue-slider/vue-slider-keyboardnavigation.htm), [Tabs](https://www.jqwidgets.com/vue/vue-tabs/vue-tabs-keyboardnavigation.htm), [Menu](https://www.jqwidgets.com/vue/vue-menu/vue-menu-keyboardnavigation.htm) and [Window](https://www.jqwidgets.com/vue/vue-window/vue-window-keyboardnavigation.htm). #### Right-to-left languages 59 components have an `rtl` prop. With `:rtl="true"`, a widget mirrors its layout for languages such as Arabic and Hebrew: the tabs start on the right, the grid's first column is on the right, and the arrow of a drop-down list moves to the left. ```vue ``` The prop mirrors the widget only. It does not set the `dir` attribute, so give the page its language and direction as well, in `index.html`; the widgets lay out the same way inside it: ```html ``` #### Contrast and the high-contrast theme The report measured the `base`, `light` and `dark` themes: no text below the contrast that WCAG 2.1 AA asks for, and control borders and focus indicators at 3:1 or more. If your app has to meet WCAG 2.1 AA, use one of these three. The `highcontrast` theme is for users with low vision. It shows black text on white, white on black under the pointer, and white on dark purple for the selected item: | State | Text on background | Contrast ratio | | --- | --- | --- | | Normal | `#000` on `#fff` | 21:1 | | Hover | `#fff` on `#000` | 21:1 | | Selected | `#fff` on `#37006e` | 15.13:1 | All three are above 7:1, the level of the WCAG AAA criterion 1.4.6 Contrast (Enhanced). On a test page with 16 widgets in this theme, axe-core found no text below 7:1. The theme is not part of the report's claim. To use it, import its stylesheet after `jqx.base.css`, for example in `src/main.ts`, and set each component's `theme` to `highcontrast`: ```typescript import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.highcontrast.css'; ``` The `highcontrast` theme does not change chart colours. For colour-blind users, the report measured the 27 colour schemes of version 27.0.0: only `scheme09` kept every pair of series apart for all three common kinds of colour blindness. 27.1.0 adds `scheme28` and makes it the default; measured the same way, it keeps every pair apart too. #### Names for charts, gauges and codes Widgets that draw get `role="img"` and an `aria-label`, so a screen reader reads each one as a single image with a name: | Component | Name | Example | | --- | --- | --- | | JqxChart | its title and description | "Sales. Units by month" | | JqxGauge, JqxLinearGauge | the reading | "Gauge, 55 of 0 to 220" | | JqxBarGauge | the values | "Bar gauge, values 35, 60, 80" | | JqxBulletChart | its title and description | "Revenue. (U.S. $ thousands)" | | JqxQRcode | the encoded value | "https://www.jqwidgets.com" | A chart with no title and no description gets no role at all, rather than an image without a name. An `aria-label` on the component wins over the widget's own name, so use one to say what the chart shows, not only what it is called: ```vue ``` A gauge's own name follows its value. An `aria-label` on the component wins, and the widget does not change it, so if you name a gauge yourself, bind `aria-label` to a value that changes with it: `:aria-label="'Engine temperature, ' + temperature + ' degrees'"`. JqxDraw is a drawing surface and cannot know what you draw on it: give the component `role="img"` and an `aria-label`. #### Status messages A screen reader reads what has the focus. Changes elsewhere on the page, such as a sorted grid or a saved form, stay silent unless they go into a live region. When the page has loaded, jQWidgets adds two hidden live regions to it: `#jqxLiveRegionPolite` (`role="status"`) and `#jqxLiveRegionAssertive` (`role="alert"`). The grid uses them: sorting by the Product column announces "Sorted by Product". Your code can use them too, with `jqx.announce`. A message is polite by default, so the screen reader waits until it has finished speaking. Pass `true` for an error, which is read at once: ```typescript declare const jqx: any; jqx.announce('3 rows saved'); jqx.announce('Could not save the changes', true); ``` Announce the changes that your own code makes. For example, when your code selects a grid row while the focus is somewhere else, the report notes that nothing is announced. #### What your app adds ##### A name for every field A widget cannot know what a field is for. Give each one a visible label and connect the two with `aria-labelledby`, or name it with `aria-label`. On a Vue component, both attributes reach the widget's element. Which one to use, and where, depends on the widget: | Component | How to name it | | --- | --- | | JqxCheckBox | Its content: `Gift wrap` | | JqxSlider, JqxSwitchButton, JqxListBox, JqxTree, JqxGrid, JqxDropDownList, JqxInput | `aria-label` or `aria-labelledby` on the component | | JqxComboBox, JqxNumberInput, JqxDateTimeInput | `aria-label` or `aria-labelledby` on the component. The keyboard focus goes to an `` inside the widget, and the widget gives it the component's label. | Before 27.1.0, JqxDropDownList and JqxInput replaced an `aria-label` with their own ("DropDownList", "Input"), and JqxComboBox and JqxDateTimeInput did not give the label to their input. On those versions, use `aria-labelledby`, and set it on the input as well in `onMounted`, which runs after the components have created their widgets. This form puts it together. axe-core finds no violations in it, and in the accessibility tree the fields are named Size, Country, Gift wrap and Save, in that Tab order. Save announces "Order saved". ```vue ``` ##### The rest is your app's part - **The page itself**: its title, its language (`lang`) and a way to skip repeated content. The report rates these as the page's responsibility, not the library's. Headings and landmarks (`main`, `nav`) are yours as well. - **An alternative to dragging** (WCAG 2.2, criterion 2.5.7). Moving a JqxWindow, resizing JqxSplitter panes, reordering in JqxSortable and JqxKanban, and, where you turn them on, reordering and resizing grid columns and dragging list box and tree items, can all be done with the keyboard, but with the pointer only by dragging. Where your users need it, add another way, such as a button or a menu command. - **Target size** (WCAG 2.2, criterion 2.5.8). JqxScrollView's page dots, JqxTimePicker's AM/PM buttons, JqxRating's stars at their default size and JqxEditor's toolbar toggles are smaller than 24 by 24 pixels. For JqxRating, set the `itemWidth` and `itemHeight` props. - **Testing**: use the app with the keyboard alone and with a screen reader such as NVDA, and run axe-core or your browser's accessibility checker. #### Further reading - [jQWidgets Accessibility Conformance Report](https://www.jqwidgets.com/jquery-widgets-documentation/documentation/compliance/vpat.htm) (VPAT 2.5, WCAG 2.1 Level A and AA) - [WAI-ARIA Authoring Practices Guide](https://www.w3.org/WAI/ARIA/apg/) - [WCAG 2.1](https://www.w3.org/TR/WCAG21/) and [WCAG 2.2](https://www.w3.org/TR/WCAG22/) - Live demos of every component: [jQWidgets for Vue](https://www.jqwidgets.com/vue/) --- ### Themes in Vue Source: https://www.jqwidgets.com/vue-components-documentation/documentation/vue-themes/index.htm > A jQWidgets theme is a stylesheet and a name. The stylesheet jqx.fluent.css styles every widget whose theme is fluent: the widget adds the name to its CSS… A jQWidgets theme is a stylesheet and a name. The stylesheet `jqx.fluent.css` styles every widget whose `theme` is `fluent`: the widget adds the name to its CSS classes, such as `jqx-grid-fluent`, and the stylesheet's rules match those classes. In Vue you import the stylesheet in `src/main.ts` and set the `theme` prop of each component. This guide does that in a Vite project with Vue 3.5 and jqwidgets-scripts 27.0.1. It then switches between a light and a dark theme while the app runs, and follows the dark mode of the operating system. The project setup is described in [Vite and Vue 3 with \ ``` `theme="fluent"` passes a fixed string; `:theme="name"` passes the value of an expression. Each component needs its own `theme`; a widget without one uses only `jqx.base.css`. The grid in the fluent theme; in dark mode this page shows it in tailwind-dark. #### Switch themes while the app runs To let users change the theme, the app needs two things: the new theme's stylesheet on the page, and the new name in every component's `theme`. A composable can do both, keeping the name in a ref that the components read. ##### Import each theme as a URL An import with `?url` gives the address of a stylesheet without adding it to the page. Vite still processes the file: `npm run build` writes it to `dist/assets/` with a hash in its name, together with the images and fonts it refers to. During `npm run dev` the address points to the file in `node_modules`. ##### Load one theme at a time Several themes, such as `fluent`, `tailwind`, `tailwind-dark`, `light` and `dark`, set CSS variables with the same names on `:root`. If two of them are on the page, the one loaded last decides the colours of both: after `tailwind-dark` has been loaded, a `fluent` grid turns dark. So the composable adds the new theme's ``, waits until it has loaded, and then removes the previous one. `src/useTheme.ts`: ```typescript import { readonly, ref } from 'vue'; // ?url: Vite writes each theme to a file of its own and returns its URL, without adding it to the page. import fluent from 'jqwidgets-scripts/jqwidgets/styles/jqx.fluent.css?url'; import tailwind from 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind.css?url'; import tailwindDark from 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-dark.css?url'; const urls: Record = { fluent, tailwind, 'tailwind-dark': tailwindDark }; // What the picker offers: 'system' follows the dark mode of the operating system or browser. export const choices = ['system', ...Object.keys(urls)]; const darkMode = window.matchMedia('(prefers-color-scheme: dark)'); const choice = ref('system'); const theme = ref(''); let current: HTMLLinkElement | undefined; let latest: HTMLLinkElement | undefined; async function load(name: string): Promise { const link = document.createElement('link'); link.rel = 'stylesheet'; link.href = urls[name]; latest = link; await new Promise((resolve, reject) => { link.onload = () => resolve(); link.onerror = () => { link.remove(); reject(new Error(`${link.href} could not be loaded`)); }; document.head.appendChild(link); }); // A later choice was made while this one loaded: keep that one. if (link !== latest) { link.remove(); return; } // A theme stylesheet sets CSS variables on :root, so keep only one on the page. current?.remove(); current = link; theme.value = name; document.body.classList.toggle('dark', name.endsWith('-dark')); } function choose(value: string): Promise { choice.value = value; return load(value === 'system' ? (darkMode.matches ? 'tailwind-dark' : 'fluent') : value); } // Follow the operating system when it switches between light and dark mode. darkMode.addEventListener('change', () => { if (choice.value === 'system') { choose('system'); } }); export function useTheme() { return { choice: readonly(choice), theme: readonly(theme), choose }; } ``` The `theme` ref changes only after the stylesheet has loaded, so the widgets never show the new theme's classes without its rules. If the user picks another theme while one is still loading, the later choice wins. The `dark` class on `` lets the page itself follow the theme, as shown below. The state lives in the module, outside the function, so every component that calls `useTheme()` shares the same theme. `src/main.ts` loads the first theme before it mounts the app: ```typescript import { createApp } from 'vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import './style.css'; import App from './App.vue'; import { useTheme } from './useTheme'; // Load the first theme before the app renders. useTheme().choose('system').then(() => createApp(App).mount('#app')); ``` `jqx.base.css` is part of the bundle, and the composable adds the theme's `` at the end of ``, so the theme comes after it. ##### Pass the theme to the components `src/App.vue`: ```vue ``` The button's `:theme` is bound to the ref: when the ref changes, Vue passes the new name and the button draws itself again with the new classes. The Grid and the DropDownList start with the same theme, but they get later ones from the `watch`, through their `setOptions` method; the next section explains why. The picker is a native ``, dark as well: ```css body { margin: 24px; font-family: system-ui, sans-serif; color-scheme: light; background: #ffffff; color: #1f2937; } body.dark { color-scheme: dark; background: #14171c; color: #e5e7eb; } ``` #### When a component loses its state In jqwidgets-scripts 27.0.1, a Vue component re-renders when one of its props changes, and then applies all of its props to the widget again, not only the one that changed. For JqxButton that is harmless. With `:theme="theme"` on the other two components of the example, a theme change did this: - **JqxGrid** took its `source` again and stayed on *Loading...*: in `tailwind-dark` its rows were gone, and after the next change the rows came back under the *Loading...* box. - **JqxDropDownList** took its `selectedIndex` again: after the user picked *Large*, a new theme put it back to *Medium*. In 27.1.0 a component applies only the props whose value changed, so a theme change no longer resets the grid or the list. With 27.0.1, give such a component a theme that does not change, and set each new theme with `setOptions`, which changes only that option: ```typescript const startTheme = theme.value; const grid = ref(null); const sizeList = ref(null); watch(theme, (name) => { grid.value?.setOptions({ theme: name }); sizeList.value?.setOptions({ theme: name }); }); ``` Props that never change do not re-render the component, so the grid keeps its rows, sort and selection, and the list its selected item. The same holds for every other prop of the grid; [Sorting, filtering and paging from Vue](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-sorting-filtering-paging.htm) shows more. #### Troubleshooting - **The widgets look plain: grey headers, Verdana text.** No stylesheet matches the theme name, so only `jqx.base.css` applies. Check that the theme is imported (or loaded by the composable) and that the name matches the file: `jqx.tailwind-dark.css` is `tailwind-dark`. There is no `fluent-dark` in 27.0.1; 27.1.0 has it. - **The theme only partly applies: Verdana in the cells, grey borders.** `jqx.base.css` is loaded after the theme. Import it first. - **A light theme turns dark after switching.** Two token-based themes are on the page at once; remove the previous theme's `` when you load the next one. - **The grid shows *Loading...* after a theme change, or a list goes back to the item of its `selectedIndex`.** The component's props changed; see When a component loses its state. - **`npm run dev` stops with "Cannot set properties of undefined (setting 'Globalize')".** Add the plugin shown in Add a theme. - **`npm run build` fails with "[lightningcss minify] Unexpected token Semicolon".** Add `css: { lightningcss: { errorRecovery: true } }` to `vite.config.ts`. - **`npm run build` warns that some chunks are larger than 500 kB.** The chunk with the Grid is about 1.5 MB (390 kB compressed). The build still succeeds; raise `build.chunkSizeWarningLimit` to silence the warning. - **The console shows *[Vue warn]: Invalid prop: type check failed for prop "cursor"*.** JqxButton in 27.0.1 declares `cursor` as a Boolean with the default `'pointer'`. Vue checks props only in development, and the button works. In 27.1.0 `cursor` is a string. More: [Vite and Vue 3 with \ ``` #### 4. Call methods Call methods through a template ref. For example, `val`: Returns the conversation history as an array of message objects (alias of getMessages). ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Chat API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchat/vue-chat-api.htm): every property, event and method, with examples. - [Vue demos](https://www.jqwidgets.com/vue/): live examples with their source code. --- ### AI features in Vue Source: https://www.jqwidgets.com/vue-components-documentation/documentation/ai/vue-ai-features.htm > The jQWidgets Grid, Scheduler and Gantt have AI modules. A user types a request in plain English, such as "orders from Germany over 1,000, largest first". The jQWidgets Grid, Scheduler and Gantt have AI modules. A user types a request in plain English, such as "orders from Germany over 1,000, largest first". The component sends it to a language model with a description of its columns, and applies the answer: here, a filter and a sort. The components can also answer questions about their data, write summaries and label rows. This guide adds an AI command bar to a `JqxGrid` in a Vite project with Vue 3.5, TypeScript and jqwidgets-scripts 27.1.0. Your server holds the API key and calls the model. The project setup is described in [Vite and Vue 3](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-vite/index.htm). #### How the AI features stay safe - **The answer is data, never code.** The component asks the model for JSON in a fixed shape. It checks each action against its real columns, operators, appointments or tasks, and applies only the ones that pass, with its own methods (`addfilter`, `sortby`, `addAppointment`, `updateTask`). Nothing in the answer is run as code. - **Unknown names are skipped.** A filter on a column the grid does not have is dropped, and so is a Gantt edit for a task that does not exist. The result lists what was applied, so you can show it to the user. - **Free time is computed, not invented.** The Scheduler's `aiFindSlot` asks the model only what the user wants ("30 minutes before Friday afternoon"). The free slots come from the real appointments. `aiResolveConflicts` calls no model at all. - **The key stays on your server.** With `aiSendRequest`, the component calls your function and your function calls your server. The browser never sees the key. - **You decide what data leaves the browser.** `aiCommand` sends the request and the column names and types, not the data. `aiAsk` and `aiSummarize` add up to `aiMaxRows` rows (40 by default), and `aiAsk` and `aiExplainRow` add the minimum, maximum, sum, average and count of each number column. `aiExplainRow` also sends its row, and `aiClassifyColumn` sends every row, with the fields you name in `sourceFields`. The Scheduler and the Gantt send up to `aiMaxRows` appointments or tasks. Your server sees each request and can remove what must not be sent. #### What each component can do | Component | AI methods | In Vue (jqwidgets-scripts 27.1.0) | | --- | --- | --- | | Grid | `aiCommand` (filter, sort, group), `aiAsk`, `aiSummarize`, `aiExplainRow`, `aiClassifyColumn` | Included in `JqxGrid`. Bind `:aiSendRequest` and call the methods through a template ref. | | Scheduler | `aiCommand` (search), `aiScheduleAppointment`, `aiAsk`, `aiSummarize`, `aiExplainAppointment`, `aiClassifyAppointments`, `aiFindSlot`, `aiBookSlot`, `aiResolveConflicts`, `aiApplyResolution` | `JqxScheduler` does not load this AI module. The methods work in plain JavaScript: see [AI features in JavaScript](https://www.jqwidgets.com/jquery-widgets-documentation/documentation/ai/jquery-ai-features.htm). | | Gantt | `aiCommand` (dates, progress, links), `aiAddTask`, `aiAsk`, `aiSummarize`, `aiExplainTask`, `aiClassifyTasks` | `JqxGantt` does not load this AI module either. The methods work in plain JavaScript. | #### 1. The server endpoint The component builds two texts: `system` (the instructions and the columns) and `user` (the request and, for questions, the data). This server sends them to the Anthropic Messages API with your key and returns the model's text. It runs on Node 18 or later and needs no packages. `server.mjs`, next to the project: ```javascript // server.mjs - the /api/ai endpoint for aiSendRequest (Node 18+, no dependencies). // The API key stays here, on the server. Run: ANTHROPIC_API_KEY=... node server.mjs import http from 'node:http'; http.createServer(async (req, res) => { if (req.method !== 'POST' || req.url !== '/api/ai') { res.writeHead(404).end(); return; } let body = ''; for await (const chunk of req) body += chunk; const { system, user } = JSON.parse(body); const reply = await fetch('https://api.anthropic.com/v1/messages', { method: 'POST', headers: { 'content-type': 'application/json', 'x-api-key': process.env.ANTHROPIC_API_KEY, 'anthropic-version': '2026-05-28' }, body: JSON.stringify({ model: 'claude-sonnet-5-5', max_tokens: 1024, system, messages: [{ role: 'user', content: user }] }) }); const json = await reply.json(); const text = (json.content || []).filter(part => part.type === 'text').map(part => part.text).join(''); res.writeHead(reply.ok ? 200 : 502, { 'content-type': 'application/json' }); res.end(JSON.stringify(reply.ok ? { text } : { error: json.error?.message || 'model error' })); }).listen(3001); ``` Start it with your key in the environment: ```properties ANTHROPIC_API_KEY=your-key node server.mjs ``` The component only needs text back, so the server can call any provider or a model you host. Before you deploy it, check the user's session in the endpoint and limit how often it can be called: anyone who can reach `/api/ai` can spend your tokens. #### 2. Pass /api to the server during development The app calls `/api/ai` on its own origin. In development, the Vite server passes those requests on to `server.mjs`. In production, your web server or reverse proxy does the same. `vite.config.ts`: ```typescript import vue from '@vitejs/plugin-vue'; import { defineConfig } from 'vite'; export default defineConfig({ plugins: [vue()], // In development, pass the app's /api requests to server.mjs. server: { proxy: { '/api': 'http://localhost:3001' } } }); ``` #### 3. Send the prompt to your server This function is what the components call. It receives `{ system, user }` and returns the model's text. `src/ai.ts`: ```typescript // The components send their prompt here. Your server adds the API key and calls the model. export async function sendRequest({ system, user }: { system: string; user: string }): Promise { const response = await fetch('/api/ai', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ system, user }) }); if (!response.ok) { throw new Error('AI request failed: ' + response.status); } return (await response.json()).text; } ``` #### 4. The command bar `src/main.ts` loads the styles once: ```typescript import { createApp } from 'vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.fluent.css'; import App from './App.vue'; createApp(App).mount('#app'); ``` The components are `.vue` files without type declarations. Declare them once in `src/jqwidgets-vue3.d.ts`, or `vue-tsc` stops with TS7016: ```typescript // The Vue components are plain .vue files without types: declare them once for TypeScript. declare module 'jqwidgets-scripts/jqwidgets-vue3/*.vue' { import type { DefineComponent } from 'vue'; const component: DefineComponent, Record, any>; export default component; } ``` `src/App.vue`: ```vue ``` - `:aiSendRequest="sendRequest"` connects the grid to your server. No key is in the app. - `aiCommand` is called through the template ref. It returns a Promise, which resolves when the actions are applied, or rejects when the request fails. - `result.applied` lists the actions as text. Show it, so the user sees what the grid did with the request. - The grid applies filters, a sort and groups only when `filterable`, `sortable` and `groupable` allow them. #### 5. Run it Keep `server.mjs` running, and start the app in a second terminal: ```bash npm run dev ``` Click **Apply**. The model returns a filter on Country, a filter on Amount and a sort, and the grid shows the two German orders over 1,000, largest first. The line above the grid reads, for example, "Applied: Country EQUAL Germany, Amount GREATER_THAN 1000, sort by Amount desc". Try "group by country" or "customers starting with A". #### Grid methods Every AI method returns a Promise. It also takes an optional Node-style callback `(error, result)` as its last argument. Add the methods you call to the `GridMethods` interface. | Method | What it does | Resolves with | | --- | --- | --- | | `aiCommand(text)` | Turns a request into filters, a sort and groups, checks them against the columns and operators, and applies them. The model can also ask to clear the current filters and groups first. | `{ spec, applied, query }`: the model's JSON, the applied actions as text, the request | | `aiAsk(text)` | Answers a question from the columns, the totals of the number columns and up to `aiMaxRows` rows. | `{ answer, chart, query }`; `chart` is a suggested chart (`{ type, categoryField, valueField, aggregate }`) or `null` | | `aiSummarize(rows?)` | Summarizes the rows you pass, or else the selected rows, or else up to `aiMaxRows` rows. | `{ summary, count }` | | `aiExplainRow(rowindex)` | Explains how one row compares with the rest of the data. | `{ row, explanation }` | | `aiClassifyColumn({ datafield, instruction, categories?, sourceFields? })` | Asks for one label per row and writes it into the existing column `datafield` with `setcellvalue`. | `{ datafield, written }` | | `aiConfig(options)` | Sets or changes the AI configuration while the app runs. | the configuration (not a Promise) | #### Options Bind them as props, or set them through the template ref with `aiConfig({... })`, which takes the keys in the second column. | Prop | `aiConfig` key | Meaning | | --- | --- | --- | | `aiSendRequest` | `sendRequest` | `async ({ system, user, model, provider }) => string`. Your own transport. When it is set, the options below that describe a provider are not used. | | `aiProxyUrl` | `proxyUrl` | Your endpoint. The component posts the provider's request body there (Anthropic or OpenAI format, by `aiProvider`) and reads the provider's response. | | `aiProvider` | `provider` | `'anthropic'` (default), `'openai'` or `'custom'` (the Anthropic format) | | `aiKey` | `apiKey` | The provider's API key, for a trial on your own machine only: it is visible to anyone who opens the page. | | `aiModel` | `model` | The model name. Without it, the component uses `claude-opus-4-8` (Anthropic) or `gpt-4o` (OpenAI). | | `aiHeaders` | `headers` | Extra request headers, for example your session token for `aiProxyUrl` | | `aiMaxRows` | `maxRows` | How many rows are sent as context (default 40) | The grid also has `aiUrl`, an older name for `aiProxyUrl`. #### Events | Event | Raised | | --- | --- | | `@gridaiResult` | after an AI method has finished | | `@gridaiError` | when a request fails | In jqwidgets-scripts 27.1.0 the component emits only the event object, without the result or the error. Read both from the Promise of the method, as the example does. #### jqxChat: a chat panel for your assistant `JqxChat` is a chat interface, inline or as a floating button, with streamed replies and your own branding. It connects in the same way: `provider` and `apiKey` for a trial, `proxyUrl` or `sendRequest` to go through your server. Its `sendRequest` receives the whole conversation in the provider's request format. See [Chat getting started](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchat/vue-chat-getting-started.htm). #### In your editor: the MCP server The features above are for your users. For you, the [jQWidgets MCP server](https://www.jqwidgets.com/vue-components-documentation/documentation/mcp/mcp-server.htm) gives AI coding assistants (Claude Code, Cursor, GitHub Copilot) the API of every component, the scripts each one needs, and working examples. #### Demos and API reference - Grid demos: [AI command bar](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/ai-command-bar.htm), [Ask the data](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/ai-ask-data.htm), [Summarize](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/ai-summarize.htm), [Classify a column](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/ai-classify-column.htm) - Scheduler demos: [AI assistant](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxscheduler/ai-assistant.htm), [Smart scheduling](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxscheduler/ai-smart-scheduling.htm) - Chat demos: [jqxChat](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchat/index.htm) - Grid API: [aiSendRequest](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm#aiSendRequest), [aiCommand](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm#aiCommand), [aiAsk](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm#aiAsk), [aiClassifyColumn](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm#aiClassifyColumn), [gridaiResult](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm#gridaiResult) The demos are JavaScript pages. They use an offline mock in place of the model, so they run without a key. Next: [Grid getting started](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-getting-started.htm). --- ### jQWidgets MCP Server Source: https://www.jqwidgets.com/vue-components-documentation/documentation/mcp/mcp-server.htm > A Model Context Protocol server that gives AI coding assistants full knowledge of the jQWidgets component library — 80+ widgets with every property, method… A Model Context Protocol server that gives AI coding assistants full knowledge of the jQWidgets component library — 80+ widgets with every property, method, event and data type, plus a code generator that emits runnable examples for jQuery, React, Angular and Vue. #### What it does Wire the server into any MCP-aware assistant and ask in plain English. The assistant can: - Answer API questions — *"what properties does `jqxGrid` support?"*, *"what events does `jqxScheduler` fire?"* - Resolve the exact ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `valueChanged`: Fires after the values are changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Returns an array of the BarGauge values. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [BarGauge API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbargauge/vue-bargauge-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbargauge/vue-bargauge-styling-and-appearance.htm): themes and CSS classes. - [Vue BarGauge demos](https://www.jqwidgets.com/vue/vue-bargauge/): live examples with their source code. --- ### Vue BarGauge Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbargauge/vue-bargauge-styling-and-appearance.htm > Style the Vue BarGauge: the jqxBarGauge CSS classes, the theme stylesheets it uses and how to change its appearance. To set the jqxBarGauge's size, you need to use the 'width' and 'height' properties. These properties accept number values and percentage values. jqxBarGauge offers many options to customize the BarGauge appearance. In this section we will go through the styling options available in different BarGauge elements. jQWidgets uses a CSS file - jqx.base.css. The base stylesheet creates the styles related to the widget's layout. #### Series Color Scheme jqxBarGauge ships with eleven built-in color schemes which are used to automatically set colors for different series. You can change the color scheme by setting the colorScheme option of the BarGauge. - The available values are from 'scheme01' to 'scheme27'. - Another option is combination of "colorScheme" with "customColorScheme" property - name - sets the name of color scheme that corresponding with set value of "colorScheme" property. - colors - sets the array of colors. #### Below is the list of CSS classes used by jqxBarGauge. - jqx-bar-gauge-tooltip - applied to jqxBarGauge's tooltip. To control container of the tooltip. #### Title and subtitle To change position of the title, you need to set 'verticalAlignment' property and/or 'horizontalAlignment' property of the title. If need to make fine correction of the position of the title, can set 'margin' property of the title. It can also be set and 'font' (for both - title and subtitle) with standard members - 'color', 'family', 'opacity', 'size' and 'weight'. - color - sets the color of the text. - family - sets the font family of the text. - opacity - sets the font opacity of the text. - size - sets the size of the text. - weight - sets the font weight of the text. #### Relative inner radius To change inner radius of the BarGauge, you need to set 'relativeInnerRadius' property. It describe the ratio between the two radiuses. From zero to one. #### Geometry To determine the geometry of the BarGauge, you need to set 'geometry' property. With those options 'startAngle' and 'endAngle'. These properties accept number values that describe angles in degrees. #### Segments To make fine settings to represent values with different sizes. To determine the segments of the BarGauge, you need to set 'min' property and/or 'max' property. To represent value with mixed values positive and negative of the BarGauge, you need to set 'min' property with some negative value. To change base value of the BarGauge, you need to set 'baseValue' property. To change space between the segments in the BarGauge, you need to set 'barSpacing' property. #### Animation To set the animations of the BarGauge, you need to set 'animationDuration' property. Determine time of the animation. In milliseconds (1000 ms = 1 sec). If you don;t wat the widget to be animated - set 'animationDuration' to 0. --- ### Vue BarGauge API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbargauge/vue-bargauge-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxbargauge.txt #### Properties - `animationDuration` (Type: Number, Default: 1000): Determines the animation in milliseconds. To disable this property - set it to **0** (zero). - `backgroundColor` (Type: String, Default: #e0e0e0): Sets or gets the jqxBarGauge background color. - `barSpacing` (Type: Number, Default: 4): Sets or gets the space between the segments of the jqxBarGauge. - `baseValue` (Type: Number, Default: null): Sets the base value of jqxBarGauge. - `colorScheme` (Type: String, Default: scheme01): Sets the jqxBarGauge's color palette. jqxBarGauge supports 27 color schemes from 'scheme01' to 'scheme27'. I's possible to set custom scheme in combination with "customColorScheme" property. - `customColorScheme` (Type: String | Object, Default: scheme01): Sets custom color palette in the BarGauge. This is used in combination with "colorScheme" property. - `disabled` (Type: Boolean, Default: false): Sets or gets the values of the disabled property of jqxBarGauge. By default is false. - `endAngle` (Type: Number, Default: 0) - `formatFunction` (Type: Object | Function, Default: null): Sets or gets the formatFunction of the BarGauge. Used to make changes on the particular segment. - `height` (Type: Number | String, Default: 400): Sets or gets the BarGauge's height. - `labels` (Type: Object, Default: null): This property is used to make fine settings on BarGauge labels at each segment. - `max` (Type: Number, Default: 100): Sets or gets the end value of BarGauge. - `min` (Type: Number, Default: 0): Sets or gets BarGauge's min. This property specifies the beginning of the BarGauge's scale. - `relativeInnerRadius` (Type: Number, Default: 0.3): Sets or gets the relativeInnerRadius of jqxBarGauge. It's value represents the proportion between inner and outer radius. - `rendered` (Type: Function, Default: null): This function is called when the BarGauge is initialized and the binding is complete. - `startAngle` (Type: Number, Default: 225): Sets or gets the startAngle of the BarGauge. Used to create geometry of the arc in the space. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `title` (Type: Object | String, Default: null): Sets or gets the BarGauge's title. This property can be string or object with custom title settings. - `tooltip` (Type: Object, Default: null): Sets or gets the BarGauge's tooltip. - `useGradient` (Type: Boolean, Default: true): Sets or gets useGradient of the BarGauge. Change visualization of the segments between flat color or with gradient. - `values` (Type: Array, Default: []): Sets or gets array of values for the BarGauge. - `width` (Type: Number | String, Default: 400): Sets or gets the BarGauge's width. #### Events - `drawEnd` (Type: Event): The event is raised when the BarGauge finish rendering. Commonly used in combination with drawStart event. - `drawStart` (Type: Event): The event is raised when the BarGauge starts rendering again. Commonly used in combination with drawEnd event. - `initialized` (Type: Event): Fires when the jqxBarGauge is rendered for the first time. The BarGauge is initialized. - `tooltipClose` (Type: Event): Fires when a BarGauge's tooltip is closed. - `tooltipOpen` (Type: Event): Fires when a BarGauge's tooltip is open. - `valueChanged` (Type: Event): Fires after the values are changed. #### Methods - `refresh` (Arguments: None, Return Type: None): Refreshes the BarGauge. - `render` (Arguments: None, Return Type: None): Renders the BarGauge contents. This method completely refreshes the BarGauge. - `val` (Arguments: value, Return Type: Array): Returns an array of the BarGauge values. --- ### Getting started with the Vue Form Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxform/vue-form-getting-started.htm > Vue Form getting started: install jQWidgets, add jqxForm to your app, see a complete example, handle its events and call its methods. The Vue Form builds a form from a JSON template of fields, groups and buttons, with layout and validation. This guide adds the Vue Form (`jqxForm`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxform.vue` - **Demos:** [Vue Form demos](https://www.jqwidgets.com/vue/vue-form/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxform/vue-form-api.htm) jqxForm in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxform/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxForm from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxform.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `formDataChange`: ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value of the object to bind to the form. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Form API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxform/vue-form-api.htm): every property, event and method, with examples. - [Vue Form demos](https://www.jqwidgets.com/vue/vue-form/): live examples with their source code. --- ### Vue Form API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxform/vue-form-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxform.txt #### Properties - `padding` (Type: Object, Default: { left: 5, top: 5, right: 5, bottom: 5 }) - `backgroundColor` (Type: String, Default: #F5F5F5) - `borderColor` (Type: String, Default: #E5E5E5) - `theme` (Type: String, Default: ''): Sets the widget's theme. - `value` (Type: Object, Default: {}) - `template` (Type: Array, Default: undefined): Gets or sets the jqxForm's template. Each object in the template, represents a Form row. Each row can have one field with label or multiple fields(if the current object's columns property is defined). - `enableSmartPaste` (Type: Boolean) - `aiKey` (Type: String) - `aiUrl` (Type: String) #### Events - `formDataChange` (Type: Event): Event: formDataChange - `buttonClick` (Type: Event): Event: buttonClick #### Methods - `getInstance` (Return Type: Object): Method: getInstance - `refresh` (Return Type: None) - `destroy` (Return Type: None) - `hideComponent` (Arguments: name, Return Type: None) - `showComponent` (Arguments: name, Return Type: None) - `val` (Arguments: value, Return Type: Object): Sets or gets the value of the object to bind to the form. - `submit` (Arguments: action, target, method, Return Type: Void): Submits the form. - `getComponentByName` (Arguments: name, Return Type: Object): Gets a form input element by name. --- ### Vue Chat API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchat/vue-chat-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxchat.txt #### Properties - `accentColor` (Type: String, Default: null): Sets or gets the brand accent colour used for the send button, the user message bubbles, the avatars and the popup launcher. Accepts any CSS colour. When null, the default indigo accent is used. - `apiKey` (Type: String, Default: ''): Sets or gets the platform key used to authenticate requests to the AI provider. **Security note:** a key set here is used to call the provider directly from the browser and is therefore exposed - this is intended for local trials only. - `botAvatar` (Type: String, Default: null): Sets or gets the assistant avatar image. Accepts any image URL or data-URI. When null, a themed circle with the first letter of `botName` is shown. - `botName` (Type: String, Default: 'Assistant'): Sets or gets the display name of the assistant, shown in the message meta and used for the assistant avatar initial. - `colorScheme` (Type: String, Default: 'auto'): Sets or gets the colour scheme of the chat. Possible values: 'auto' (follow the operating system preference), 'light' and 'dark'. The scheme is applied independently of the jqWidgets theme. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the chat is disabled. When disabled, the input and send button are inactive. - `enableClear` (Type: Boolean, Default: true): Sets or gets whether the header shows the 'New chat' action button that clears the conversation. - `enableCopyCode` (Type: Boolean, Default: true): Sets or gets whether a 'Copy' button is shown on fenced code blocks in assistant messages. - `enableStop` (Type: Boolean, Default: true): Sets or gets whether the send button turns into a 'Stop' button while the assistant is generating a response. When stopped, any text streamed so far is preserved. - `headers` (Type: Object, Default: null): Sets or gets an object of additional HTTP headers merged into the outgoing request to the provider or proxy. - `height` (Type: Number | String, Default: 580): Sets or gets the chat's height. - `launcherIcon` (Type: String, Default: null): Sets or gets custom HTML/SVG markup for the popup launcher button. Applies only when `mode` is 'popup'. When null, a default chat-bubble icon is used. - `launcherPosition` (Type: String, Default: 'bottom-right'): Sets or gets the screen corner of the popup launcher button and panel. Possible values: 'bottom-right' and 'bottom-left'. Applies only when `mode` is 'popup'. - `maxTokens` (Type: Number, Default: 1024): Sets or gets the upper bound on the number of tokens in the assistant's response, sent to the provider as max_tokens. - `messages` (Type: Array, Default: []): Sets or gets the conversation as an array of message objects of the form `{ role: 'user' | 'assistant', content: string }`. Setting this property replaces the current conversation. - `mode` (Type: String, Default: 'inline'): Sets or gets the display mode. Possible values: 'inline' (the chat is an embedded panel) and 'popup' (a floating launcher button in the page corner opens the chat panel). - `model` (Type: String, Default: null): Sets or gets the model identifier sent to the provider. When null, a per-provider default is used ('claude-opus-4-8' for anthropic, 'gpt-4o-mini' for openai). - `open` (Type: Boolean, Default: false): Sets or gets whether the popup panel is open. Applies only when `mode` is 'popup'. Setting it to true opens the panel and hides the launcher; false collapses back to the launcher. - `placeHolder` (Type: String, Default: 'Message the assistant...'): Sets or gets the placeholder text shown in the message input. - `provider` (Type: String, Default: 'anthropic'): Sets or gets the AI provider adapter. Possible values: 'anthropic' (Anthropic Claude), 'openai' (OpenAI) and 'custom'. - `proxyUrl` (Type: String, Default: null): Sets or gets a URL to POST the request to instead of calling the provider directly. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether the widget's layout is aligned to support locales using right-to-left fonts. - `sendButtonIcon` (Type: Boolean, Default: true): Sets or gets whether the send button is rendered as a circular icon (true) or as a text label using `sendButtonLabel` (false). - `sendButtonLabel` (Type: String, Default: 'Send'): Sets or gets the text label of the send button when `sendButtonIcon` is false. Also used as the button's tooltip. - `sendRequest` (Type: Any, Default: null): Sets or gets a callback that fully controls transport: `function(payload, widget)`. - `showAvatars` (Type: Boolean, Default: true): Sets or gets whether avatars are shown next to messages. - `showHeader` (Type: Boolean, Default: true): Sets or gets whether the header (avatar, title, status and actions) is shown. - `showHeaderAvatar` (Type: Boolean, Default: true): Sets or gets whether the assistant avatar is shown in the header. - `showTimestamps` (Type: Boolean, Default: true): Sets or gets whether a timestamp is shown in each message's meta line. - `starterPrompts` (Type: Array, Default: []): Sets or gets an array of suggested prompt strings displayed as clickable chips when the conversation is empty. Clicking a chip sends that prompt. - `statusText` (Type: String, Default: 'Online'): Sets or gets the status label shown under the title next to a status dot. When null, the status is hidden. When `subtitle` is set, the subtitle text takes precedence. - `stream` (Type: Boolean, Default: true): Sets or gets whether the assistant response is streamed token by token using Server-Sent Events. When false, the full response is requested and rendered at once. - `subtitle` (Type: String, Default: null): Sets or gets the header subtitle text shown under the title. When set, it takes precedence over `statusText`. - `system` (Type: String, Default: 'You are a helpful assistant embedded in a web application.'): Sets or gets the system / developer instructions sent to the model to define the assistant's behaviour. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `title` (Type: String, Default: 'AI Assistant'): Sets or gets the header title text (also used as the popup launcher tooltip). - `typingIndicator` (Type: Boolean, Default: true): Sets or gets whether an animated typing indicator is shown while the assistant is generating a response. - `userAvatar` (Type: String, Default: null): Sets or gets the user avatar image. Accepts any image URL or data-URI. When null, a themed circle with the first letter of `userName` is shown. - `userName` (Type: String, Default: 'You'): Sets or gets the display name of the user, shown in the message meta and used for the user avatar initial. - `welcomeMessage` (Type: String, Default: null): Sets or gets the welcome text (Markdown supported) shown in the empty state above the starter prompts. - `width` (Type: Number | String, Default: 400): Sets or gets the chat's width. #### Events - `messageSent` (Type: Event): This event is triggered when the user sends a message. The event argument contains `args.role` ('user') and `args.content` (the message text). - `responseStart` (Type: Event): This event is triggered when a request to the AI provider begins, before any tokens arrive. - `responseDelta` (Type: Event): This event is triggered for each streamed chunk of the assistant's response. The event argument contains `args.delta` (the new text) and `args.content` (the accumulated text so far). - `messageReceived` (Type: Event): This event is triggered when the assistant's response is complete. The event argument contains `args.role` ('assistant') and `args.content` (the full response text). - `responseEnd` (Type: Event): This event is triggered after a response finishes, alongside `messageReceived`. The event argument contains `args.content` (the full response text). - `error` (Type: Event): This event is triggered when a request fails or the connection is misconfigured. The event argument contains `args.error` (the error object) and `args.message` (the error text). - `open` (Type: Event): This event is triggered when the popup panel is opened. Applies only when `mode` is 'popup'. - `close` (Type: Event): This event is triggered when the popup panel is closed. Applies only when `mode` is 'popup'. - `stop` (Type: Event): This event is triggered when the user stops an in-progress generation via the stop button or the `stop` method. - `create` (Type: Event): This event is triggered when the widget is created and rendered. #### Methods - `sendMessage` (Arguments: text, Return Type: None): Sends a message to the assistant. When `text` is omitted, the current input value is used. Adds the message to the conversation and requests a response from the provider. - `stop` (Arguments: None, Return Type: None): Stops the in-progress generation. Any text streamed so far is kept in the conversation and the `stop` event is raised. - `addMessage` (Arguments: role, content, Return Type: None): Appends a message to the conversation and the view without contacting the provider. - `appendDelta` (Arguments: delta, Return Type: None): Appends a chunk of streamed text into the current assistant bubble. Intended for use inside a `sendRequest` callback that drives streaming manually. Late chunks are ignored after a stop. - `getMessages` (Arguments: None, Return Type: Array): Returns a copy of the conversation history as an array of message objects. - `clearConversation` (Arguments: None, Return Type: None): Clears the conversation and restores the empty state (welcome message and starter prompts). - `focus` (Arguments: None, Return Type: None): Moves keyboard focus to the message input. In popup mode, focus is applied only when the panel is open. - `openPopup` (Arguments: None, Return Type: None): Opens the popup panel and hides the launcher. Applies only when `mode` is 'popup'. - `closePopup` (Arguments: None, Return Type: None): Closes the popup panel and shows the launcher. Applies only when `mode` is 'popup'. - `toggle` (Arguments: None, Return Type: None): Toggles the popup panel open or closed. Applies only when `mode` is 'popup'. - `val` (Arguments: value, Return Type: Array): Returns the conversation history as an array of message objects (alias of getMessages). - `render` (Arguments: None, Return Type: None): Renders the widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget's layout (re-measures and re-sizes the message area). - `destroy` (Arguments: None, Return Type: None): Destroys the widget and removes it (and the popup launcher, if any) from the DOM. --- ### Getting started with the Vue SplitLayout Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsplitlayout/vue-splitlayout-getting-started.htm > Vue SplitLayout getting started: install jQWidgets, add jqxSplitLayout to your app, handle its events and call its methods. The Vue SplitLayout builds a nested split layout from a JSON structure. This guide adds the Vue SplitLayout (`jqxSplitLayout`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitlayout.vue` - **Demos:** [Vue demos](https://www.jqwidgets.com/vue/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsplitlayout/vue-splitlayout-api.htm) jqxSplitLayout in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxsplitlayout/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxSplitLayout from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitlayout.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` #### 4. Call methods Call methods through a template ref. For example, `refresh`: refreshes the layout and re-arranges the panels ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [SplitLayout API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsplitlayout/vue-splitlayout-api.htm): every property, event and method, with examples. - [Vue demos](https://www.jqwidgets.com/vue/): live examples with their source code. --- ### Vue SplitLayout API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsplitlayout/vue-splitlayout-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxsplitlayout.txt #### Properties - `disabled` (Type: Boolean, Default: false): Sets or gets whether the split layout panel is disabled. - `dataSource` (Type: Object, Default: false): Sets or gets the data source. The dataSource is an Array of JSON objects. - `ready` (Type: Function, Default: null): This function is called when the SplitLayout is initialized. It is useful for one-time content initialization. - `orientation` (Type: String, Default: vertical): Sets or gets the jqxSplitLayout's orientation. #### Events - `resize` (Type: Event): This event is triggered when a layout panel is resized. - `stateChange` (Type: Event): This event is triggered when an item is inserted or deleted. For example when you drag and drop a tab panel into another panel or when you click the close button of a tab panel. #### Methods - `refresh` (Arguments: None, Return Type: None): refreshes the layout and re-arranges the panels --- ### Getting started with the Vue PickList Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpicklist/vue-picklist-getting-started.htm > Vue PickList getting started: install jQWidgets, add jqxPickList to your app, see a complete example, handle its events and call its methods. The Vue PickList moves items between an available list and a selected list, with buttons, a double-click or the keyboard. This guide adds the Vue PickList (`jqxPickList`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxpicklist.vue` - **Demos:** [Vue PickList demos](https://www.jqwidgets.com/vue/vue-picklist/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpicklist/vue-picklist-api.htm) jqxPickList in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxpicklist/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxPickList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpicklist.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the selected items change. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Gets the selected values, or sets them when an array is passed. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [PickList API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpicklist/vue-picklist-api.htm): every property, event and method, with examples. - [Vue PickList demos](https://www.jqwidgets.com/vue/vue-picklist/): live examples with their source code. --- ### Vue PickList API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpicklist/vue-picklist-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxpicklist.txt #### Properties - `width` (Type: String | Number, Default: 560): Sets or gets the width of the widget. - `height` (Type: String | Number, Default: 340): Sets or gets the height of the widget. - `source` (Type: Array | Object, Default: null): Sets or gets the pool of available items. Accepts an array of strings, an array of objects, or a jqxDataAdapter instance. - `selectedItems` (Type: Array, Default: []): Sets or gets the values that start in the Selected list. Values are matched against valueMember. - `displayMember` (Type: String, Default: ""): Sets or gets the field of a source object used as the item label. - `valueMember` (Type: String, Default: ""): Sets or gets the field of a source object used as the item value. - `sourceHeader` (Type: String, Default: "Available"): Sets or gets the header text of the available list. Set to null to hide the header row. - `targetHeader` (Type: String, Default: "Selected"): Sets or gets the header text of the selected list. Set to null to hide the header row. - `showCounts` (Type: Boolean, Default: true): Sets or gets whether item counts are shown in the list headers. - `filterable` (Type: Boolean, Default: false): Sets or gets whether a search box is displayed above each list. - `filterPlaceHolder` (Type: String, Default: "Filter..."): Sets or gets the placeholder text of the search boxes. - `searchMode` (Type: String, Default: "containsignorecase"): Sets or gets how the search boxes match items. - `checkboxes` (Type: Boolean, Default: false): Sets or gets whether items are selected with checkboxes. - `reorderable` (Type: Boolean, Default: false): Sets or gets whether the selected list can be reordered. Adds move up and move down buttons. - `renderer` (Type: Function, Default: null): Sets or gets a custom item template. The function returns the HTML rendered for an item. - `buttons` (Type: Array, Default: ['add', 'addAll', 'remove', 'removeAll']): Sets or gets which transfer buttons are rendered. Valid entries are add, addAll, remove and removeAll. - `itemHeight` (Type: Number, Default: 26): Sets or gets the height of an item, in pixels. - `sourceLabel` (Type: String, Default: "Available items"): Sets or gets the accessible name of the available list. - `targetLabel` (Type: String, Default: "Selected items"): Sets or gets the accessible name of the selected list. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the widget is disabled. - `rtl` (Type: Boolean, Default: false): Sets or gets whether the widget is displayed right-to-left. - `theme` (Type: String, Default: ''): Sets or gets the theme of the widget. #### Events - `create` (Type: Event): This event is triggered when the widget is created. - `change` (Type: Event): This event is triggered when the selected items change. The event argument carries added, removed and selectedItems. - `itemsAdded` (Type: Event): This event is triggered when items are moved into the selected list. The event argument carries items. - `itemsRemoved` (Type: Event): This event is triggered when items are moved out of the selected list. The event argument carries items. - `reordered` (Type: Event): This event is triggered when the selected list is reordered. The event argument carries items. #### Methods - `getSelectedItems` (Return Type: Array): Returns the items currently in the selected list, in order. - `getSelectedValues` (Return Type: Array): Returns the values currently in the selected list, in order. - `getSource` (Return Type: Array): Returns the items remaining in the available list. - `add` (Arguments: values, Return Type: None): Moves one or more values into the selected list. - `remove` (Arguments: values, Return Type: None): Moves one or more values out of the selected list. - `addAll` (Return Type: None): Moves every available item into the selected list. - `removeAll` (Return Type: None): Moves every selected item back into the available list. - `moveUp` (Return Type: None): Moves the highlighted items one position up in the selected list. Requires reorderable. - `moveDown` (Return Type: None): Moves the highlighted items one position down in the selected list. Requires reorderable. - `val` (Arguments: value, Return Type: Array): Gets the selected values, or sets them when an array is passed. - `focus` (Return Type: None): Focuses the available list. - `refresh` (Return Type: None): Refreshes the widget. - `render` (Return Type: None): Renders the widget. - `destroy` (Return Type: None): Destroys the widget and removes it from the DOM. --- ### Getting started with the Vue TimePicker Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtimepicker/vue-timepicker-getting-started.htm > Vue TimePicker getting started: install jQWidgets, add jqxTimePicker to your app, see a complete example, handle its events and call its methods. The Vue TimePicker lets users pick a time of day on a clock face, in 12-hour or 24-hour format. This guide adds the Vue TimePicker (`jqxTimePicker`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue` - **Demos:** [Vue TimePicker demos](https://www.jqwidgets.com/vue/vue-timepicker/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtimepicker/vue-timepicker-api.htm) jqxTimePicker in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtimepicker/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `setHours`: Sets the hours. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [TimePicker API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtimepicker/vue-timepicker-api.htm): every property, event and method, with examples. - [Vue TimePicker demos](https://www.jqwidgets.com/vue/vue-timepicker/): live examples with their source code. --- ### Vue TimePicker API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtimepicker/vue-timepicker-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtimepicker.txt #### Properties - `autoSwitchToMinutes` (Type: Boolean, Default: false) - `disabled` (Type: Boolean, Default: false): Enables or disables the jqxTimePicker. - `footer` (Type: Boolean, Default: false): Sets or gets whether the footer is shown. - `footerTemplate` (Type: String, Default: null) - `format` (Type: String, Default: 12-hour) - `height` (Type: Number | String, Default: 400) - `minuteInterval` (Type: Number, Default: 1) - `name` (Type: String) - `readonly` (Type: Boolean, Default: false) - `selection` (Type: String, Default: hour) - `theme` (Type: String): Sets the widget's theme. - `unfocusable` (Type: Boolean, Default: false) - `value` (Type: Date, Default: new Date()) - `view` (Type: String, Default: portrait): **Possible Values:** - `width` (Type: Number | String, Default: 400) #### Events - `change` (Type: Event) #### Methods - `setHours` (Arguments: hours, Return Type: None) - `setMinutes` (Arguments: minutes, Return Type: None) --- ### Getting started with the Vue Timeline Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtimeline/vue-timeline-getting-started.htm > Vue Timeline getting started: install jQWidgets, add jqxTimeline to your app and call its methods. The Vue Timeline shows dated events on a vertical or horizontal timeline. This guide adds the Vue Timeline (`jqxTimeline`) to an app, then shows how to set its options and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimeline.vue` - **Demos:** [Vue demos](https://www.jqwidgets.com/vue/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtimeline/vue-timeline-api.htm) jqxTimeline in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtimeline/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxTimeline from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimeline.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Timeline API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtimeline/vue-timeline-api.htm): every property, event and method, with examples. - [Vue demos](https://www.jqwidgets.com/vue/): live examples with their source code. --- ### Vue Timeline API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtimeline/vue-timeline-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtimeline.txt #### Properties - `autoWidth` (Type: Boolean, Default: false): Sets or gets whether the Timeline is with auto width in horizontal mode. - `collapsible` (Type: Boolean, Default: true): Sets or gets whether the items can be collapsed. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the Timeline is disabled. - `horizontal` (Type: Boolean, Default: false): Sets or gets whether the Timeline is horizontal. - `position` (Type: String, Default: both): Sets or gets position. - `source` (Type: [], Default: []): Sets or gets the items. Each item should be an object. The object has the following properties: date: date, description: string, subtitle: string, css: string, dotCSS: string, title: string and icon: string. - `theme` (Type: String, Default: ''): Sets the widget's theme. #### Methods - `render` (Arguments: None, Return Type: []): Re-renders the timeline. --- ### Getting started with the Vue Gantt Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgantt/vue-gantt-getting-started.htm > Vue Gantt getting started: install jQWidgets, add jqxGantt to your app, handle its events and call its methods. The Vue Gantt shows tasks, dependencies, milestones and resources on a Gantt chart with a task tree. This guide adds the Vue Gantt (`jqxGantt`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxgantt.vue` - **Demos:** [Vue demos](https://www.jqwidgets.com/vue/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgantt/vue-gantt-api.htm) jqxGantt in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgantt/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxGantt from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxgantt.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` #### 4. Call methods Call methods through a template ref. For example, `expand`: Expands a collapsed project with tasks. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Gantt API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgantt/vue-gantt-api.htm): every property, event and method, with examples. - [Vue demos](https://www.jqwidgets.com/vue/): live examples with their source code. --- ### Vue Gantt API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgantt/vue-gantt-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxgantt.txt #### Properties - `adjustToNonworkingTime` (Type: Boolean, Default: undefined) - `aiProvider` (Type: String, Default: 'anthropic'): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiKey` (Type: String, Default: null): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiModel` (Type: String, Default: null): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiProxyUrl` (Type: String, Default: null): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiHeaders` (Type: Object, Default: null): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiSendRequest` (Type: Function, Default: null): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiMaxRows` (Type: Number, Default: 40): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `autoSchedule` (Type: Boolean, Default: undefined) - `autoScheduleStrictMode` (Type: Boolean, Default: undefined) - `autoScrollStep` (Type: Number, Default: undefined) - `columnMenu` (Type: Boolean, Default: undefined) - `columnMinWidth` (Type: String | Number, Default: undefined) - `columnResize` (Type: Boolean, Default: undefined) - `columnResizeFeedback` (Type: Boolean, Default: undefined) - `currentTime` (Type: String | Date, Default: undefined) - `currentTimeIndicator` (Type: Boolean, Default: undefined) - `currentTimeIndicatorInterval` (Type: Number, Default: undefined) - `dataExportFileName` (Type: String, Default: undefined) - `source` (Type: Any, Default: undefined): - label - the label of the Task - `dayFormat` (Type: String, Default: undefined) - `dateEnd` (Type: String | Date, Default: undefined) - `dateStart` (Type: String | Date, Default: undefined) - `dateMarkers` (Type: {label?: string, date: Date | String, className?: string }[], Default: undefined) - `disabled` (Type: Boolean, Default: undefined) - `disableAutoScroll` (Type: Boolean, Default: undefined) - `disableTaskDrag` (Type: Boolean, Default: undefined) - `disableTaskProgressChange` (Type: Boolean, Default: undefined) - `disableTaskResize` (Type: Boolean, Default: undefined) - `disableSelection` (Type: Boolean, Default: undefined) - `disableSegmentDrag` (Type: Boolean, Default: undefined) - `disableSegmentResize` (Type: Boolean, Default: undefined) - `disableWindowEditor` (Type: Boolean, Default: undefined) - `durationUnit` (Type: String, Default: undefined) - `filterRow` (Type: Boolean, Default: undefined) - `firstDayOfWeek` (Type: Number, Default: undefined) - `groupByResources` (Type: Boolean, Default: undefined) - `headerTemplate` (Type: Any, Default: undefined) - `hideDateMarkers` (Type: Boolean, Default: undefined) - `hideTimelineHeader` (Type: Boolean, Default: undefined) - `hideTimelineHeaderDetails` (Type: Boolean, Default: undefined) - `hideTimelineSecondHeaderDetails` (Type: Boolean, Default: undefined) - `hideResourcePanel` (Type: Boolean, Default: undefined) - `horizontalScrollBarVisibility` (Type: String, Default: undefined) - `hourFormat` (Type: String, Default: undefined) - `infiniteTimeline` (Type: Boolean, Default: undefined) - `infiniteTimelineStep` (Type: Number, Default: undefined) - `inverted` (Type: Boolean, Default: undefined) - `keyboardNavigation` (Type: Boolean, Default: undefined): - **Enter** - opens the Window editor to edit the currently focused task. - `max` (Type: String | Date, Default: undefined) - `min` (Type: String | Date, Default: undefined) - `monthFormat` (Type: String, Default: undefined) - `monthScale` (Type: String, Default: undefined) - `nonworkingDays` (Type: Number[], Default: undefined) - `nonworkingHours` (Type: Number[] | Number[][], Default: undefined) - `onTaskRender` (Type: None, Default: undefined): - task - the task object. - `popupWindowCustomizationFunction` (Type: None, Default: undefined): - target - the target popup Window that is about to be opened. - `popupWindowTabs` (Type: String[], Default: undefined): - **general** - the general tab with task properties determines by the **taskColumns** property. - `progressLabelFormatFunction` (Type: String, Default: undefined) - `quarterFormat` (Type: String, Default: undefined) - `resources` (Type: {label: string, capacity: number, value: string, workload: number, progress: number, id: string, class: string }[], Default: undefined) - `resourceColumns` (Type: {label: string, value: string}[], Default: undefined): - formatFunction - a function that allows to customize the content of each record in the column. The function accepts two arguments - the actual label as string that is going to be inserted and the index of the resource. - `resourceFiltering` (Type: Boolean, Default: undefined) - `resourceGroupFormatFunction` (Type: String, Default: undefined) - `resourcePanelHeaderTemplate` (Type: Any, Default: undefined) - `resourcePanelMin` (Type: Number | String, Default: undefined) - `resourcePanelSize` (Type: Number | String, Default: undefined) - `resourcePanelRefreshRate` (Type: Number, Default: undefined) - `resourceTimelineFormatFunction` (Type: Any, Default: undefined): - taskIndexes - an array of task indexes that are assigned to the resource for the current cell. - `resourceTimelineMode` (Type: String, Default: undefined) - `resourceTimelineView` (Type: String, Default: undefined) - `rtl` (Type: Boolean, Default: undefined) - `selectedTaskIds` (Type: Number[] | String[], Default: undefined) - `selectedResourceIds` (Type: Number[] | String[], Default: undefined) - `shadeUntilCurrentTime` (Type: Boolean, Default: undefined) - `showSelectionColumn` (Type: Boolean, Default: undefined) - `showBaseline` (Type: Boolean, Default: undefined) - `showProgressLabel` (Type: Boolean, Default: undefined) - `snapToNearest` (Type: Boolean, Default: undefined) - `sortFunction` (Type: { (dataSource: any, sortColumns: string[], directions: string[], defaultCompareFunctions: { (firstRecord: any, secondRecord: any): number }[]): void }, Default: undefined): 1. dataSource - the Table's data source - `sortMode` (Type: String, Default: undefined) - `tasks` (Type: {label: string, dateStart: string | Date, dateEnd: string | Date, expanded?: boolean, progress?: number, type?: string}[], Default: undefined) - `taskColumns` (Type: {label: string, value: string}[], Default: undefined): - formatFunction - a function that allows to customize the content of each record in the column. The function accepts one argument - the actual label as string that is going to be inserted and must return some content. - `taskFiltering` (Type: Boolean, Default: undefined) - `taskPanelMin` (Type: String | Number, Default: undefined) - `taskPanelSize` (Type: String | Number, Default: undefined) - `timelineMin` (Type: String | Number, Default: undefined) - `treeMin` (Type: String | Number, Default: undefined) - `treeSize` (Type: String | Number, Default: undefined) - `timelineHeaderFormatFunction` (Type: String, Default: undefined): - **date** - a Date object that represents the date for the current cell. - `tooltip` (Type: Object, Default: undefined) - `verticalScrollBarVisibility` (Type: String, Default: undefined) - `view` (Type: String, Default: undefined): - day - The timeline show the hours of the day. - `yearFormat` (Type: String, Default: undefined) - `weekFormat` (Type: String, Default: undefined) - `theme` (Type: String, Default: undefined) #### Events - `beginUpdate` (Type: Event) - `endUpdate` (Type: Event) - `connectionStart` (Type: Event) - `connectionEnd` (Type: Event) - `change` (Type: Event) - `columnResize` (Type: Event) - `closing` (Type: Event) - `close` (Type: Event) - `collapse` (Type: Event) - `dragStart` (Type: Event) - `dragEnd` (Type: Event) - `expand` (Type: Event) - `filter` (Type: Event) - `itemClick` (Type: Event) - `itemInsert` (Type: Event) - `itemRemove` (Type: Event) - `itemUpdate` (Type: Event) - `opening` (Type: Event) - `open` (Type: Event) - `progressChangeStart` (Type: Event) - `progressChangeEnd` (Type: Event) - `resizeStart` (Type: Event) - `resizeEnd` (Type: Event) - `sort` (Type: Event) - `scrollBottomReached` (Type: Event) - `scrollTopReached` (Type: Event) - `scrollLeftReached` (Type: Event) - `scrollRightReached` (Type: Event) - `ganttaiResult` (Type: Event): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `ganttaiError` (Type: Event): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. #### Methods - `addFilter` (Arguments: columns, filterGroup, Return Type: None) - `aiConfig` (Arguments: options, Return Type: Object): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiCommand` (Arguments: text, callback, Return Type: Promise): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiAddTask` (Arguments: text, callback, Return Type: Promise): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiAsk` (Arguments: text, callback, Return Type: Promise): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiSummarize` (Arguments: callback, Return Type: Promise): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiExplainTask` (Arguments: ref, callback, Return Type: Promise): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiClassifyTasks` (Arguments: options, callback, Return Type: Promise): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `aiGetCustomField` (Arguments: ref, field, Return Type: Any): **React, Angular and Vue (27.1.0):** the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. - `clearFilters` (Arguments: None, Return Type: None) - `clearSort` (Arguments: None, Return Type: None) - `clearSelection` (Arguments: None, Return Type: None) - `clearState` (Arguments: None, Return Type: None) - `clearTasks` (Arguments: None, Return Type: None) - `clearResources` (Arguments: None, Return Type: None) - `createConnection` (Arguments: startTaskIndex, taskEndIndex, connectionType, lag, Return Type: None) - `collapse` (Arguments: id, Return Type: None) - `beginUpdate` (Return Type: None) - `endUpdate` (Return Type: None) - `ensureVisible` (Arguments: taskId, Return Type: None) - `expand` (Arguments: id, Return Type: None) - `exportData` (Arguments: dataFormat, callback, Return Type: None) - `getConnections` (Arguments: None, Return Type: Array) - `getConnectionDetails` (Arguments: connectionId, Return Type: Object | Undefined) - `getState` (Arguments: None, Return Type: []) - `getItemPath` (Arguments: item, Return Type: String) - `getTask` (Arguments: itemId, Return Type: Object) - `getTasks` (Arguments: None, Return Type: []) - `getTaskIndex` (Arguments: task, Return Type: Number) - `getTaskConnections` (Arguments: taskId, Return Type: Any) - `getTaskProject` (Arguments: task, Return Type: Object | Undefined) - `getResource` (Arguments: itemId, Return Type: Object) - `getResources` (Arguments: None, Return Type: []) - `getResourceIndex` (Arguments: resource, Return Type: Number) - `getResourceTasks` (Arguments: resource, Return Type: Array) - `getSelectedIds` (Arguments: None, Return Type: Array | Null) - `getSelectedTasks` (Arguments: None, Return Type: Array | Null) - `getSelectedResources` (Arguments: None, Return Type: Array | Null) - `getWorkingHours` (Arguments: None, Return Type: Array) - `hideTooltip` (Arguments: None, Return Type: Array) - `isWorkingDay` (Arguments: date, Return Type: None) - `loadState` (Arguments: state, Return Type: None) - `removeAllConnections` (Arguments: None, Return Type: None) - `removeConnection` (Arguments: startTaskIndex, taskEndIndex, connectionType, Return Type: Object) - `removeTaskConnection` (Arguments: taskStart, taskEnd, Return Type: None) - `showTooltip` (Arguments: target, content, Return Type: None) - `saveState` (Arguments: state, Return Type: None) - `insertTask` (Arguments: taskObject, project, index, Return Type: String | Number | Undefined) - `updateTask` (Arguments: taskId, taskObject, Return Type: None) - `removeTask` (Arguments: taskId, Return Type: None) - `insertResource` (Arguments: resourceId, resourceObject, Return Type: None) - `updateResource` (Arguments: resourceId, taskObject, Return Type: None) - `removeResource` (Arguments: resourceId, Return Type: None) - `openWindow` (Arguments: taskId, Return Type: None) - `closeWindow` (Arguments: None, Return Type: None) - `print` (Arguments: None, Return Type: None) - `setWorkTime` (Arguments: settings, Return Type: None) - `selectTask` (Arguments: id, Return Type: None) - `selectResource` (Arguments: id, Return Type: None) - `unselectTask` (Arguments: id, Return Type: None) - `unselectResource` (Arguments: id, Return Type: None) - `unsetWorkTime` (Arguments: settings, Return Type: None) - `sort` (Arguments: columns, Return Type: None) --- ### Getting started with the Vue QRcode Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxqrcode/vue-qrcode-getting-started.htm > Vue QRcode getting started: install jQWidgets, add jqxQRcode to your app, handle its events and call its methods. The Vue QRcode generates QR codes, with error-correction levels, colours and an embedded logo. This guide adds the Vue QRcode (`jqxQRcode`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue` - **Demos:** [Vue demos](https://www.jqwidgets.com/vue/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxqrcode/vue-qrcode-api.htm) jqxQRcode in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxqrcode/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` #### 4. Call methods Call methods through a template ref. For example, `export`: Exports the QR Code. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [QRcode API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxqrcode/vue-qrcode-api.htm): every property, event and method, with examples. - [Vue demos](https://www.jqwidgets.com/vue/): live examples with their source code. --- ### Vue QRcode API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxqrcode/vue-qrcode-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxqrcode.txt #### Properties - `backgroundColor` (Type: String, Default: white) - `displayLabel` (Type: Boolean, Default: false) - `embedImage` (Type: String) - `errorLevel` (Type: String, Default: H) - `imageHeight` (Type: Number, Default: 15) - `imageWidth` (Type: Number, Default: 15) - `labelColor` (Type: String, Default: black) - `labelFont` (Type: String, Default: monospace) - `labelFontSize` (Type: Number, Default: 14) - `labelMarginBottom` (Type: Number, Default: 5) - `labelMarginTop` (Type: Number, Default: 5) - `labelPosition` (Type: String, Default: bottom) - `lineColor` (Type: String, Default: black) - `squareWidth` (Type: Number, Default: 7) - `renderAs` (Type: String, Default: svg) - `value` (Type: String) #### Events - `invalid` (Type: Event) #### Methods - `export` (Arguments: format, fileName, Return Type: None) - `getDataURL` (Arguments: format, Return Type: String) - `getDataURLAsync` (Arguments: format, Return Type: Object) - `isValid` (Return Type: Boolean) --- ### Getting started with the Vue Barcode Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbarcode/vue-barcode-getting-started.htm > Vue Barcode getting started: install jQWidgets, add jqxBarcode to your app, handle its events and call its methods. The Vue Barcode generates barcodes in common 1D symbologies, rendered as SVG or Canvas. This guide adds the Vue Barcode (`jqxBarcode`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxbarcode.vue` - **Demos:** [Vue demos](https://www.jqwidgets.com/vue/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbarcode/vue-barcode-api.htm) jqxBarcode in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxbarcode/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxBarcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbarcode.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` #### 4. Call methods Call methods through a template ref. For example, `export`: Exports the qrcode. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Barcode API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbarcode/vue-barcode-api.htm): every property, event and method, with examples. - [Vue demos](https://www.jqwidgets.com/vue/): live examples with their source code. --- ### Vue Barcode API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbarcode/vue-barcode-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxbarcode.txt #### Properties - `backgroundColor` (Type: String, Default: white) - `displayLabel` (Type: Boolean, Default: true) - `labelColor` (Type: String, Default: black) - `labelFont` (Type: String, Default: monospace) - `labelFontSize` (Type: Number, Default: 14) - `labelMarginBottom` (Type: Number, Default: 5) - `labelMarginTop` (Type: Number, Default: 5) - `labelPosition` (Type: String, Default: bottom) - `lineColor` (Type: String, Default: black) - `lineHeight` (Type: Number, Default: 50) - `lineWidth` (Type: Number, Default: 4) - `renderAs` (Type: String, Default: svg) - `type` (Type: String, Default: codabar) - `value` (Type: String) #### Events - `invalid` (Type: Event) #### Methods - `export` (Arguments: format, fileName, Return Type: None) - `getDataURL` (Arguments: format, Return Type: String) - `getDataURLAsync` (Arguments: format, Return Type: Object) - `isValid` (Return Type: Boolean) --- ### Getting started with the Vue HeatMap Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxheatmap/vue-heatmap-getting-started.htm > Vue HeatMap getting started: install jQWidgets, add jqxHeatMap to your app, see a complete example and call its methods. The Vue HeatMap shows a matrix of values as coloured cells, on a gradient or a fixed colour scale, with a legend and tooltips. This guide adds the Vue HeatMap (`jqxHeatMap`) to an app, then shows how to set its options and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxheatmap.vue` - **Demos:** [Vue HeatMap demos](https://www.jqwidgets.com/vue/vue-heatmap/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxheatmap/vue-heatmap-api.htm) jqxHeatMap in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxheatmap/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxHeatMap from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxheatmap.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Call methods Call methods through a template ref. For example, `setLegendPosition`: Sets legend's position. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [HeatMap API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxheatmap/vue-heatmap-api.htm): every property, event and method, with examples. - [Vue HeatMap demos](https://www.jqwidgets.com/vue/vue-heatmap/): live examples with their source code. --- ### Vue HeatMap API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxheatmap/vue-heatmap-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxheatmap.txt #### Properties - `xAxis` (Type: Object, Default: {}): Sets the HeatMap x Axis. - `yAxis` (Type: Object, Default: {}): Sets the HeatMap y Axis. - `paletteSettings` (Type: Object, Default: {}): Sets the HeatMap palette settings. - `legendSettings` (Type: Object, Default: {}): Sets the HeatMap legend settings. - `source` (Type: Array, Default: []): Sets or gets the heatmap's source. - `title` (Type: String, Default: Title): Sets or gets the heatmap's title. - `width` (Type: String | Number, Default: auto): Sets or gets the heatmap's width. - `tooltipRender` (Type: Function, Default: null): Set the content of the tooltip. It can be either plain text or HTML code. Args object is passed which contains five properties - xLabel, yLabel, value, content and date (if heatmap is in calendar mode). #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `setLegendPosition` (Arguments: position, Return Type: None): Sets legend's position. - `setOpposedXAxisPosition` (Arguments: opposedPosition, Return Type: None): Sets opposed x axis position. - `setOpposedYAxisPosition` (Arguments: opposedPosition, Return Type: None): Sets opposed y axis position. - `reverseXAxisPosition` (Arguments: isInversed, Return Type: None): Sets reversed x axis position. - `reverseYAxisPosition` (Arguments: isInversed, Return Type: None): Sets reversed y axis position. - `setPaletteType` (Arguments: type, Return Type: None): Sets palette's type. --- ### Getting started with the Vue BulletChart Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbulletchart/vue-bulletchart-getting-started.htm > Vue BulletChart getting started: install jQWidgets, add jqxBulletChart to your app, see a complete example, handle its events and call its methods. The Vue BulletChart features two measures - a primary one (the pointer) and a comparative one (the target) and displays them in the context of a number of differently styled qualitative ranges. This guide adds the Vue BulletChart (`jqxBulletChart`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue` - **Demos:** [Vue BulletChart demos](https://www.jqwidgets.com/vue/vue-bulletchart/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbulletchart/vue-bulletchart-api.htm) jqxBulletChart in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxbulletchart/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the selected value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [BulletChart API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbulletchart/vue-bulletchart-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbulletchart/vue-bulletchart-styling-and-appearance.htm): themes and CSS classes. - [Vue BulletChart demos](https://www.jqwidgets.com/vue/vue-bulletchart/): live examples with their source code. --- ### Vue BulletChart Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbulletchart/vue-bulletchart-styling-and-appearance.htm > Style the Vue BulletChart: the jqxBulletChart CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxBulletChart. - jqx-widget - applied to the jqxBulletChart widget. - jqx-bulletchart - applied to the jqxBulletChart. - jqx-bulletchart-title - applied to the jqxBulletChart title. - jqx-bulletchart-description - applied to the jqxBulletChart description. - jqx-bulletchart-range - applied to the jqxBulletChart ranges. - jqx-bulletchart-pointer - applied to the jqxBulletChart pointer. - jqx-bulletchart-target - applied to the jqxBulletChart target. - jqx-bulletchart-ticks - applied to the jqxBulletChart ticks. - jqx-bulletchart-zero-tick - applied to the jqxBulletChart zero tick (shown only when the minimum value is a negative number). - jqx-bulletchart-labels - applied to the jqxBulletChart labels. - jqx-fill-state-pressed - applied to the pointer and target if their **color** properties are not set or are set to *""*. - jqx-fill-state-hover - applied to a hovered pointer or target if its **color** property is not set or is set to *""*. - jqx-fill-state-disabled - applied to the jqxBulletChart when it is disabled. Classes applied only when the **orientation** property is set to *"horizontal"*: - jqx-bulletchart-range-horizontal - applied to ranges. - jqx-bulletchart-target-horizontal - applied to the target. - jqx-bulletchart-ticks-horizontal - applied to ticks. Classes applied only when the **orientation** property is set to *"vertical"*: - jqx-bulletchart-range-vertical - applied to ranges. - jqx-bulletchart-target-vertical - applied to the target. - jqx-bulletchart-ticks-vertical - applied to ticks. When you create a custom style with colors and backgrounds for jqxBulletChart, you need to do the following: - Add the above CSS classes related to jqxBulletChart - After each CSS class, add your theme name. For example: jqx-bulletchart-summer - To apply your custom style to jqxBulletChart, you need to set its 'theme' property(option) to point to your theme name string. The pointer and target can also be styled by setting their **color** properties. If the range's or target's color is not set or it is set to *""*, the theme setting is applied. Ranges can be styled only by setting their **color** and **opacity**. --- ### Vue BulletChart API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbulletchart/vue-bulletchart-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxbulletchart.txt #### Properties - `animationDuration` (Type: Number, Default: null): Sets ot gets the bulletcharts's animationDuration. - `barSize` (Type: String | Number, Default: 50%): Sets ot gets the bulletcharts's bar size. - `description` (Type: String, Default: 'Description'): Sets ot gets the bulletcharts's description. - `disabled` (Type: Boolean, Default: false): Disables the bullet chart. - `height` (Type: Number | String, Default: 100): Sets ot gets the bulletcharts's height. - `labelsFormat` (Type: String, Default: null): Sets ot gets the bulletcharts's labelsFormat. - `labelsFormatFunction` (Type: Function, Default: null): Sets ot gets the bulletcharts's labelsFormatFunction. - `orientation` (Type: String, Default: "horizontal"): Sets ot gets the bulletcharts's orientation. - `pointer` (Type: Object, Default: { value: 65, label: "Value", size: "25%", color: "" }): Sets ot gets the bulletcharts's pointer. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `ranges` (Type: Array, Default: [{ startValue: 0, endValue: 50, color: "#000000", opacity: 0.7 }, { startValue: 50, endValue: 80, color: "#000000", opacity: 0.5 }, { startValue: 80, endValue: 100, color: "#000000", opacity: 0.3}]): Sets ot gets the bulletcharts's range. - `showTooltip` (Type: Boolean, Default: true): Sets ot gets the bulletcharts's showTooltip. - `target` (Type: Object, Default: { value: 85, label: "Target", size: 4, color: "" };): Sets ot gets the bulletcharts's target. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `ticks` (Type: Object, Default: { position: "far", interval: 20, size: 10 }): Sets ot gets the bulletcharts's ticks. - `title` (Type: String, Default: 'Title'): Sets ot gets the bulletcharts's title. - `tooltipFormatFunction` (Type: Function, Default: null): Sets ot gets the bulletcharts's tooltipFormatFunction. - `width` (Type: Number | String, Default: 500): Sets ot gets the bulletcharts's width. #### Events - `change` (Type: Event): This event is triggered when the value is changed. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroy the jqxBulletChart widget. - `render` (Arguments: None, Return Type: None): Renders the jqxBulletChart widget. - `refresh` (Arguments: None, Return Type: None): Refresh the jqxBulletChart widget. - `val` (Arguments: value, Return Type: Number): Sets or gets the selected value. --- ### Getting started with the Vue Button Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbutton/vue-button-getting-started.htm > Vue Buttons getting started: install jQWidgets, add jqxButtons to your app, see a complete example, handle its events and call its methods. The Vue Button displays a clickable button with text, an image or both. This guide adds the Vue Button (`jqxButton`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxbutton.vue` - **Demos:** [Vue Button demos](https://www.jqwidgets.com/vue/vue-buttons/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbutton/vue-button-api.htm) jqxButton in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxbutton/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbutton.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `click`: This event is triggered when the button is clicked. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Button API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbutton/vue-button-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbutton/vue-button-styling-and-appearance.htm): themes and CSS classes. - [Vue Button demos](https://www.jqwidgets.com/vue/vue-buttons/): live examples with their source code. --- ### Vue Buttons Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbutton/vue-button-styling-and-appearance.htm > Style the Vue Buttons: the jqxButtons CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxButtons. - jqxButton, jqxRepeatButton, jqxLinkButton and jqxToggleButton Style - jqx-button - applied to jqxButton's outer div element. - jqx-link - applied to the jqxLinkButton's anchor element. - jqx-fill-state-normal - applied to button when it's state is default/normal. - jqx-fill-state-hover - applied to button when it's state is hovered i.e the mouse cursor is over the button. - jqx-fill-state-pressed - applied to button when it's state is pressed i.e the mouse button is down. - jqx-fill-state-disabled - applied to button it is disabled. When you create a custom style with colors and backgrounds for jqxButton, jqxRepeatButton, jqxLinkButton and jqxToggleButton, you need to do the following: - Add the above CSS classes related to jqxButtons - After each CSS class, add your theme name. For example: jqx-button-energyblue - To apply your custom style to jqxButtons, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Buttons API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbutton/vue-button-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxbutton.txt #### Properties - `disabled` (Type: Boolean, Default: false): Enables or disables the button. - `height` (Type: String | Number, Default: null): Sets or gets the button's height. - `imgSrc` (Type: String, Default: ''): Sets or gets the button's image source. - `imgWidth` (Type: Number, Default: 16): Sets or gets the button's image width. - `imgHeight` (Type: Number, Default: 16): Sets or gets the button's image height. - `imgPosition` (Type: String, Default: 'center'): Sets or gets the button's image position. Possible values: "left", "top", "center", "bottom", "right", "topLeft", "bottomLeft", "topRight", "bottomRight". - `roundedCorners` (Type: String, Default: all): Enables or disables the rounded corners functionality. This property setting has effect in browsers which support CSS border-radius. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `enableDefault` (Type: Boolean, Default: true) - `cursor` (Type: String, Default: 'arrow') - `textPosition` (Type: String, Default: ''): Sets or gets the button's text position. Possible values: "left", "top", "center", "bottom", "right", "topLeft", "bottomLeft", "topRight", "bottomRight". - `textImageRelation` (Type: String, Default: 'overlay'): Sets or gets the button's text image relation. Possible values: "imageBeforeText", "imageAboveText", "textAboveImage", "textBeforeImage" and "overlay". - `theme` (Type: String, Default: ''): Sets the widget's theme. - `template` (Type: String, Default: 'default'): Determines the button's template as an alternative of the default styles. - `width` (Type: String | Number, Default: null): Sets ot gets the button's width. - `value` (Type: String, Default: ''): Sets or gets the button's value. #### Events - `click` (Type: Event): This event is triggered when the button is clicked. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `render` (Arguments: None, Return Type: None): Renders the widget. - `val` (Arguments: value, Return Type: String): Sets or gets the value. --- ### Getting started with the Vue ButtonGroup Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbuttongroup/vue-buttongroup-getting-started.htm > Vue ButtonGroup getting started: install jQWidgets, add jqxButtonGroup to your app, see a complete example, handle its events and call its methods. The Vue ButtonGroup enables the creation of groups of buttons. This guide adds the Vue ButtonGroup (`jqxButtonGroup`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttongroup.vue` - **Demos:** [Vue ButtonGroup demos](https://www.jqwidgets.com/vue/vue-buttons/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbuttongroup/vue-buttongroup-api.htm) #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxButtonGroup from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttongroup.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `buttonclick`: This event is triggered when a button is clicked. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `disableAt`: Disables a button at specific index. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ButtonGroup API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbuttongroup/vue-buttongroup-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbuttongroup/vue-buttongroup-styling-and-appearance.htm): themes and CSS classes. - [Vue ButtonGroup demos](https://www.jqwidgets.com/vue/vue-buttons/): live examples with their source code. --- ### Vue ButtonGroup Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbuttongroup/vue-buttongroup-styling-and-appearance.htm > Style the Vue ButtonGroup: the jqxButtonGroup CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxButtons. - jqxButtonGroup - jqx-buttongroup - applied to the Button Group. - jqx-fill-state-normal - applied to button when it's state is default/normal. - jqx-fill-state-hover - applied to button when it's state is hovered i.e the mouse cursor is over the button. - jqx-fill-state-pressed - applied to button when it's state is pressed i.e the mouse button is down. - jqx-fill-state-disabled - applied to button it is disabled. When you create a custom style with colors and backgrounds for jqxButtonGroup, you need to do the following: - Add the above CSS classes related to jqxButtons - After each CSS class, add your theme name. For example: jqx-buttongroup-energyblue - To apply your custom style to jqxButtons, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue ButtonGroup API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxbuttongroup/vue-buttongroup-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxbuttongroup.txt #### Properties - `disabled` (Type: Boolean, Default: false): Enables or disables the jqxButtonGroup. - `enableHover` (Type: Boolean, Default: false): Enables or disabled the highlight state. - `mode` (Type: String, Default: 'default'): Sets or gets the jqxButtonGroup's mode. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `template` (Type: String, Default: 'default'): Determines the template as an alternative of the default styles. - `theme` (Type: String, Default: ''): Sets the widget's theme. #### Events - `buttonclick` (Type: Event): This event is triggered when a button is clicked. - `selected` (Type: Event): This event is triggered when a button is selected - in checkboxes or radio buttons mode. - `unselected` (Type: Event): This event is triggered when a button is unselected - in checkbox or radio buttons mode. #### Methods - `disableAt` (Arguments: index, Return Type: None): Disables a button at specific index. - `disable` (Arguments: None, Return Type: None): Disables jqxButtonGroup. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `enable` (Arguments: None, Return Type: None): Enables the jqxButtonGroup. - `enableAt` (Arguments: index, Return Type: None): Enables a button at specific index. - `getSelection` (Arguments: None, Return Type: Number/Array): Gets the index or indexes of the selected button(s). - `render` (Arguments: None, Return Type: None): Renders the widget. - `setSelection` (Arguments: index, Return Type: None): Selects a button in checkbox or radio buttons mode --- ### Getting started with the Vue Calendar Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcalendar/vue-calendar-getting-started.htm > Vue Calendar getting started: install jQWidgets, add jqxCalendar to your app, see a complete example, handle its events and call its methods. The Vue Calendar enables the user to select a date using a visual monthly calendar display. This guide adds the Vue Calendar (`jqxCalendar`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxcalendar.vue` - **Demos:** [Vue Calendar demos](https://www.jqwidgets.com/vue/vue-calendar/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcalendar/vue-calendar-api.htm) jqxCalendar in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcalendar/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxCalendar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxcalendar.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the Calendar's selection is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Gets or sets the jqxCalendar's value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Calendar API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcalendar/vue-calendar-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcalendar/vue-calendar-styling-and-appearance.htm): themes and CSS classes. - [Vue Calendar demos](https://www.jqwidgets.com/vue/vue-calendar/): live examples with their source code. --- ### Vue Calendar Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcalendar/vue-calendar-styling-and-appearance.htm > Style the Vue Calendar: the jqxCalendar CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxCalendar. - jqx-widget - applied to the jqxCalendar widget. - jqx-calendar - applied to jqxCalendar widget. - jqx-calendar-row-header - applied to the calendar's row header. This header displays the week numbers. - jqx-calendar-column-header - applied to the calendar's column. This header displays the day names. - jqx-calendar-top-left-header - applied to the calendar's top-left header. This header is displayed before the day names and above the week numbers. - jqx-calendar-title-navigation - applied to the calendar's navigation buttons. - jqx-calendar-title-header - applied to the calendar's navigation title. - jqx-calendar-title-header-disabled - applied to the calendar's navigation title when the calendar is disabled. - jqx-calendar-cell - applied to a calendar cell. - jqx-calendar-cell-hidden - applied to a calendar cell when the cell is hidden. A cell can be hidden when the showOtherMonthDays property is false and the calendar hides the cells with dates from the other months. - jqx-calendar-cell-weekend - applied to a calendar cell when the cell's date is a weekend date. - jqx-calendar-cell-specialDate - applied to a calendar cell when the cell's date is a special date(holiday, vacation, birthday). - jqx-calendar-cell-today - applied to a calendar cell when the cell's date is the today date. - jqx-calendar-cell-hover - applied to a calendar cell when the cell is hovered. - jqx-fill-state-hover - applied to a calendar cell when the cell is hovered. - jqx-calendar-cell-selected - applied to a calendar cell when the cell is selected. - jqx-fill-state-pressed - applied to a calendar cell when the cell is selected. - jqx-calendar-cell-othermonth - applied to a calendar cell when the cell's date represents a date from the previous or next month. - jqx-calendar-cell-disabled - applied to a calendar cell when the calendar is disabled - jqx-calendar-row-cell - applied to a calendar cell when the cell is from the row header that displays the week numbers. - jqx-calendar-row-cell-disabled - applied to a calendar cell when the cell is from the row header that displays the week numbers and the calendar is disabled. - jqx-calendar-column-cell - applied to a calendar cell when the cell is from the column header that displays the day names. - jqx-calendar-column-cell-disabled - applied to a calendar cell when the cell is from the column header that displays the day names and the calendar is disabled. - jqx-calendar-view - applied to the calendar's cell area element. - jqx-fill-state-disabled - applied to the calendar when it is disabled. When you create a custom style with colors and backgrounds for jqxCalendar, you need to do the following: - Add the above CSS classes related to jqxCalendar - After each CSS class, add your theme name. For example: jqx-calendar-themename - To apply your custom style to jqxCalendar, you need to set its 'theme' property(option) to point to your theme name string. - The sample below demonstrates how to set the 'Summer' theme to jqxCalendar. --- ### Vue Calendar API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcalendar/vue-calendar-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxcalendar.txt #### Properties - `backText` (Type: String, Default: Back): Sets or gets the tooltip text displayed when the mouse cursor is over the back navigation button. - `columnHeaderHeight` (Type: Number, Default: 20): Sets or gets the Calendar column header's height. In the column header are displayed the calendar day names. - `clearString` (Type: String, Default: 'Clear'): Sets or gets the 'Clear' string displayed when the 'showFooter' property is true. - `culture` (Type: String, Default: default): Sets or gets the jqxCalendar's culture. The culture settings are contained within a file with the language code appended to the name, e.g. jquery.glob.de-DE.js for German. - `dayNameFormat` (Type: String, Default: 'firstTwoLetters'): Sets or gets the name format of days of the week. - `disabled` (Type: Boolean, Default: false): Disables (true) or enables (false) the calendar. Can be set when initialising (first creating) the calendar. - `enableWeekend` (Type: Boolean, Default: false): Sets or gets a value indicating whether weekend persists its view state. - `enableViews` (Type: Boolean, Default: true): Determines whether switching between month, year and decade views is enabled. - `enableOtherMonthDays` (Type: Boolean, Default: true): Sets or gets a value indicating whether the other month days are enabled. - `enableFastNavigation` (Type: Boolean, Default: true): Sets or gets a value indicating whether the fast navigation is enabled. - `enableHover` (Type: Boolean, Default: true): Sets or gets a value indicating whether the hover state is enabled. The hover state is activated when the mouse cursor is over a calendar cell. - `enableAutoNavigation` (Type: Boolean, Default: true): Sets or gets a value indicating whether the auto navigation is enabled. When this property is true, click on other month date will automatically navigate to the previous or next month. - `enableTooltips` (Type: Boolean, Default: false): Sets or gets a value indicating whether the tool tips are enabled. - `forwardText` (Type: String, Default: Forward): Sets or gets the tooltip text displayed when the mouse cursor is over the forward navigation button. EnableTooltips property should be set to true. - `firstDayOfWeek` (Type: Number, Default: 0): Sets or gets which day to display in the first day column. By default the calendar displays 'Sunday' as first day. - `height` (Type: Number | String, Default: null): Sets or gets the height of the Calendar. - `min` (Type: Date, Default: 1900, 1, 1): Represents the minimum navigation date. - `max` (Type: Date, Default: 2100, 1, 1): Represents the maximum navigation date. - `navigationDelay` (Type: Number, Default: 400): Determines the animation delay between switching views. - `rowHeaderWidth` (Type: Number, Default: 25): Sets or gets the row header width. - `readOnly` (Type: Boolean, Default: false): Sets or gets the calendar in read only state. - `restrictedDates` (Type: Array, Default: []): Sets or gets the calendar's restricted dates. These are dates which cannot be clicked. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `stepMonths` (Type: Number, Default: 1): Represents the calendar`s navigation step when the left or right navigation button is clicked. - `showWeekNumbers` (Type: Boolean, Default: true): Sets or gets a value whether the week`s numbers are displayed. - `showDayNames` (Type: Boolean, Default: true): Sets or gets a value whether the day names are displayed. By default, the day names are displayed. - `showOtherMonthDays` (Type: Boolean, Default: true): Sets or gets a value whether the other month days are displayed. - `showFooter` (Type: Boolean, Default: false): Sets or gets a value indicating whether the calendar's footer is displayed. - `selectionMode` (Type: String, Default: 'default'): Sets or gets the selection mode. - `specialDates` (Type: Array, Default: new Array()): Sets or gets a special date to the Calendar. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `titleHeight` (Type: Number, Default: 25): Sets or gets the title height where the navigation arrows are displayed. - `titleFormat` (Type: Array, Default: ["MMMM yyyy", "yyyy", "yyyy"]): Sets or gets the title format for the title section. - `todayString` (Type: String, Default: 'Today'): Sets or gets the 'Today' string displayed when the 'showFooter' property is true. - `value` (Type: Date, Default: Today's Date): Sets or gets the Calendar's value. - `width` (Type: Number | String, Default: null): Sets or gets the width of the Calendar. #### Events - `backButtonClick` (Type: Event): This event is triggered when the calendar back navigation button is clicked. - `change` (Type: Event): This event is triggered when the Calendar's selection is changed. - `nextButtonClick` (Type: Event): This event is triggered when the calendar next navigation button is clicked. - `viewChange` (Type: Event): This event is triggered when the Calendar's view is changed. #### Methods - `clear` (Arguments: None, Return Type: None): Clears the selection. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the Calendar. - `addSpecialDate` (Arguments: date, specialDateClass, text, Return Type: None): Method: addSpecialDate - `getMinDate` (Arguments: None, Return Type: Date): When the getMinDate method is called, the user gets the lowest navigation date set to the Calendar. - `getMaxDate` (Arguments: None, Return Type: Date): When the getMaxDate method is called, the user gets the highest navigation date set to the Calendar. The returned value is a JavaScript Date object. - `getDate` (Arguments: None, Return Type: Date): When the getDate method is called, the user gets the current month displayed in the Calendar.The returned value is a JavaScript Date object. - `getRange` (Arguments: None, Return Type: Object): Gets the selection range when the selectionMode is set to 'range'. The returned value is an object with "from" and "to" fields. Each of these is a JavaScript Date object. - `navigateForward` (Arguments: months, Return Type: None): When the navigateForward method is called, the calendar navigates forward with a specific month step (by default 1). - `navigateBackward` (Arguments: months, Return Type: None): When the navigateBackward method is called, the calendar navigates backward with a specific month step (by default 1). - `render` (Arguments: None, Return Type: None): Renders the Calendar. - `refresh` (Arguments: None, Return Type: None): Performs a layout and updates the UI. - `setMinDate` (Arguments: date, Return Type: None): When the setMinDate method is called, the user sets the lowest date to which it is possible to navigate. - `setMaxDate` (Arguments: date, Return Type: None): When the setMaxDate method is called, the user sets the highest date to which it is possible to navigate. - `setDate` (Arguments: date, Return Type: None): When the setDate method is called, the user sets the current month displayed in the Calendar. The parameter is a JavaScript Date object. - `setRange` (Arguments: date, date2, Return Type: None): Sets the selection range when the selectionMode is set to 'range'. The parameters are JavaScript Date objects. - `today` (Arguments: None, Return Type: None): Sets the Date to Today. - `val` (Arguments: value, value2, Return Type: Date/string): Gets or sets the jqxCalendar's value. --- ### Getting started with the Vue Chart Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchart/vue-chart-getting-started.htm > Vue Chart getting started: install jQWidgets, add jqxChart to your app, see a complete example, handle its events and call its methods. The Vue Chart draws more than 30 chart types, among them line, area, bar, pie, donut, range, financial, polar and spider charts, as SVG or HTML5 Canvas. This guide adds the Vue Chart (`jqxChart`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxchart.vue` - **Demos:** [Vue Chart demos](https://www.jqwidgets.com/vue/vue-chart/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchart/vue-chart-api.htm) jqxChart in the [Line Series](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxchart.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `click`: The event is raised when the user clicks on series element. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Chart API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchart/vue-chart-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchart/vue-chart-styling-and-appearance.htm): themes and CSS classes. - [Vue Chart demos](https://www.jqwidgets.com/vue/vue-chart/): live examples with their source code. --- ### Chart Styling Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchart/vue-chart-styling-and-appearance.htm > Style the Vue Chart: the jqxChart CSS classes, the theme stylesheets it uses and how to change its appearance. jqxChart offers many options to customize the chart appearance and colors. In this section we will go through the styling options available in different chart elements. #### Series Color Scheme jqxChart ships with eleven built-in color schemes which are used to automatically set colors for different series. You can change the color scheme by setting the colorScheme option of the chart. The available value are from 'scheme01' to 'scheme11'. #### Color Gradients jqxChart uses fill gradients built from the base colors in the color schemes. If you wish to use only basic fill colors you can turn off the gradients at series or seriesGroup level by setting the useGradient property. If the property is not set jqxChart will use gradients by default. ```javascript seriesGroups: [ { type: 'splinearea', useGradient: false, // disable gradient for the entire group valueAxis: { unitInterval: 10, minValue: 0, maxValue: 100, displayValueAxis: false, description: 'Goal in minutes', axisSize: 'auto', tickMarksColor: '#888888' }, series: [ { dataField: 'Goal', displayText: 'Personal Goal', opacity: 0.7 } ] }, { type: 'stackedcolumn', columnsGapPercent: 100, seriesGapPercent: 5, useGradient: false, // disable gradient for the entire group valueAxis: { unitInterval: 10, minValue: 0, maxValue: 100, displayValueAxis: true, description: 'Time in minutes', axisSize: 'auto', tickMarksColor: '#888888', gridLinesColor: '#777777' }, series: [ // override the useGradient property at series level { dataField: 'Running', displayText: 'Running', useGradient: true }, { dataField: 'Swimming', displayText: 'Swimming' }, { dataField: 'Cycling', displayText: 'Cycling' } ] } ] ``` With jqxChart you can define custom Colors for the series by setting their color property. ```javascript seriesGroups: [ { type: 'line', valueAxis: { unitInterval: 500, minValue: 0, maxValue: 3000, displayValueAxis: true, description: 'Daily Closing Price', axisSize: 'auto', tickMarksColor: '#888888' }, series: [ { dataField: 'S&P 500', displayText: 'S&P 500', color: '#ff0000' }, { dataField: 'NASDAQ', displayText: 'NASDAQ', color: '#0000ff' } ] } ] ``` #### Grid lines You can adjust the spacing and colors of the horizontal and vertical grid lines. The vertical gridlines can be adjusted by changing the categoryAxis options. For example the following code makes the vertical grid lines visible, makes their color blue and sets the spacing between the lines such that a line appears once for every tenth element: ```javascript xAxis: { gridLinesColor: '#0000FF', showGridLines: true, gridLinesInterval: 10 } ``` The horizontal grid lines can be changed by setting the gridLinesColor, showGridLines and gridLinesInterval options on valueAxis for each seriesGroup. ```javascript valueAxis: { gridLinesColor: '#0000FF', showGridLines: true, gridLinesInterval: 20 } ``` #### Tick marks Tick marks and grid lines work in a very similar way and jqxChart offers identical properties. To change the tick marks across the horizontal axis use the showTickMarks, tickMarksColor and tickMarksInterval options of the Category Axis: ```javascript xAxis: { showTickMarks: true, tickMarksColor: '#0000FF', tickMarksInterval: 10 } ``` Similar options are available for the value axis of each series group: ```javascript valueAxis: { showTickMarks: true, tickMarksColor: '#0000FF', tickMarksInterval: 10 } ``` #### Background and border line colors You can also change the chart's border color and background fill by using the 'borderColor' and 'background' properties. Sets the chart's border color by setting the `borderLineColor` property. Sets the chart's background color by setting the `backgroundColor` property. #### Background image Instead of using background color you can use an image by setting the `backgroundImage` property. --- ### Vue Chart API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxchart/vue-chart-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxchart.txt #### Properties - `title` (Type: String, Default: Chart title): Sets or gets the jqxChart title. - `description` (Type: String, Default: Description): Sets or gets the jqxChart description. - `source` (Type: Array | Object, Default: []): Sets the chart's data source. - `showBorderLine` (Type: Boolean, Default: true): Determines whether to display the chart's border line. - `borderLineColor` (Type: String, Default: #888888): Sets or gets the chart's border line color. - `borderLineWidth` (Type: Number, Default: 1): Sets or gets the chart's border line width. - `backgroundColor` (Type: String, Default: #FFFFFF) - `backgroundImage` (Type: String, Default: '') - `showLegend` (Type: Boolean, Default: true) - `legendLayout` (Type: Object, Default: {}): Sets the legend's layout. The expected object is with the following fields: - `padding` (Type: Object, Default: {left: 5, top: 5, right: 5, bottom: 5}) - `titlePadding` (Type: Object, Default: {left: 2, top: 2, right: 2, bottom: 2}) - `colorScheme` (Type: String, Default: scheme01) - `greyScale` (Type: Boolean, Default: false) - `showToolTips` (Type: Boolean, Default: true) - `toolTipShowDelay` (Type: Number, Default: 500) - `toolTipHideDelay` (Type: Number, Default: 4000) - `toolTipMoveDuration` (Type: Number, Default: 300) - `drawBefore` (Type: Function, Default: null) - `draw` (Type: Function, Default: null) - `rtl` (Type: Boolean, Default: false) - `enableCrosshairs` (Type: Boolean, Default: false) - `crosshairsColor` (Type: String, Default: #888888) - `crosshairsDashStyle` (Type: String, Default: 2,2) - `crosshairsLineWidth` (Type: Number, Default: 1) - `columnSeriesOverlap` (Type: Boolean, Default: false) - `enabled` (Type: Boolean, Default: true) - `enableAnimations` (Type: Boolean, Default: true) - `animationDuration` (Type: Number, Default: 500) - `enableAxisTextAnimation` (Type: Boolean, Default: false) - `renderEngine` (Type: String, Default: auto) - `xAxis` (Type: Object, Default: null): Sets the Chart's xAxis. - `valueAxis` (Type: Object, Default: null): - visible - shows or hides the valueAxis. - `categoryAxis` (Type: Object, Default: null) - `seriesGroups` (Type: Array, Default: null): The seriesGroups property is used to describe all series displayed on the chart. jqxChart supports multiple series of different types and series grouping. #### Events - `toggle` (Type: Event) - `click` (Type: Event) - `refreshBegin` (Type: Event) - `refreshEnd` (Type: Event) - `rangeSelectionChanging` (Type: Event) - `rangeSelectionChanged` (Type: Event) #### Methods - `getInstance` (Return Type: Object): Method: getInstance - `refresh` (Return Type: None) - `update` (Return Type: None) - `destroy` (Return Type: None) - `addColorScheme` (Arguments: schemeName, colors, Return Type: None) - `removeColorScheme` (Arguments: schemeName, Return Type: None) - `getItemsCount` (Arguments: groupIndex, serieIndex, Return Type: Number) - `getItemCoord` (Arguments: groupIndex, serieIndex, itemIndex, Return Type: Object) - `getXAxisRect` (Arguments: groupIndex, Return Type: Object) - `getXAxisLabels` (Arguments: groupIndex, Return Type: Array) - `getValueAxisRect` (Arguments: groupIndex, Return Type: Object) - `getValueAxisLabels` (Arguments: groupIndex, Return Type: Array) - `getColorScheme` (Arguments: colorScheme, Return Type: Array) - `hideSerie` (Arguments: groupIndex, serieIndex, itemIndex, Return Type: None) - `showSerie` (Arguments: groupIndex, serieIndex, itemIndex, Return Type: None) - `hideToolTip` (Arguments: hideDelay, Return Type: None) - `showToolTip` (Arguments: groupIndex, serieIndex, itemIndex, showDelay, hideDelay, Return Type: None) - `saveAsJPEG` (Arguments: fileName, exportServerUrl, Return Type: None) - `saveAsPNG` (Arguments: fileName, exportServerUrl, Return Type: None) - `saveAsPDF` (Arguments: fileName, exportServerUrl, Return Type: None) - `getXAxisValue` (Arguments: offset, groupIndex, Return Type: Object) - `getValueAxisValue` (Arguments: offset, groupIndex, Return Type: Object) --- ### Getting started with the Vue CheckBox Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcheckbox/vue-checkbox-getting-started.htm > Vue CheckBox getting started: install jQWidgets, add jqxCheckBox to your app, see a complete example, handle its events and call its methods. The Vue CheckBox displays a check box that allows the end-user to select a true, false or indeterminate condition. This guide adds the Vue CheckBox (`jqxCheckBox`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxcheckbox.vue` - **Demos:** [Vue CheckBox demos](https://www.jqwidgets.com/vue/vue-buttons/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcheckbox/vue-checkbox-api.htm) #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxCheckBox from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxcheckbox.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This is triggered when the checkbox's state changes from one state to another. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [CheckBox API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcheckbox/vue-checkbox-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcheckbox/vue-checkbox-styling-and-appearance.htm): themes and CSS classes. - [Vue CheckBox demos](https://www.jqwidgets.com/vue/vue-buttons/): live examples with their source code. --- ### Vue CheckBox Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcheckbox/vue-checkbox-styling-and-appearance.htm > Style the Vue CheckBox: the jqxCheckBox CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxButtons. - jqxCheckBox Style - jqx-widget - applied to jqxCheckBox widget. - jqx-checkbox - applied to jqxCheckBox's outer div element. - jqx-checkbox-default - applied to the check box when its state is default. - jqx-fill-state-normal - applied to the check box when its state is default. - jqx-checkbox-hover - applied to the check box when the mouse cursor is over it - jqx-fill-state-hover - applied to the check box when the mouse cursor is over it - jqx-checkbox-disabled -applied to the check box when the widget is disabled - jqx-checkbox-disabled-box - applied to the check's box when the jqxCheckBox is disabled. - jqx-checkbox-check-checked - applied to the check's box when the jqxCheckBox is checked. Displays a check icon - jqx-checkbox-check-disabled - applied to the check's box when the jqxCheckBox is disabled. Displays a disabled check icon - jqx-checkbox-check-indeterminate - applied to the check's box when the jqxCheckBox is in indeterminate state. Displays a rectangle inside the check's box. - jqx-checkbox-check-indeterminate-disabled - applied to the check's box when the jqxCheckBox is in indeterminate state and the jqxCheckBox is disabled. Displays a gray(disabled) rectangle inside the check's box. - jqx-fill-state-disabled - applied to the jqxCheckBox when it is disabled. - jqx-fill-state-focus - applied to the jqxCheckBox when it is focused. When you create a custom style with colors and backgrounds for jqxCheckBox, you need to do the following: - Add the above CSS classes related to jqxButtons - After each CSS class, add your theme name. For example: jqx-checkbox-shinyblack - To apply your custom style to jqxCheckBox, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue CheckBox API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcheckbox/vue-checkbox-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxcheckbox.txt #### Properties - `animationShowDelay` (Type: Number, Default: 250): Sets or gets the delay of the fade animation when the CheckBox is going to be checked. - `animationHideDelay` (Type: Number, Default: 300): Sets or gets the delay of the fade animation when the CheckBox is going to be unchecked. - `boxSize` (Type: String, Default: "13px"): Sets or gets the checkbox's size. - `checked` (Type: Boolean, Default: false): Sets or gets the check state. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the CheckBox is disabled. - `enableContainerClick` (Type: Boolean, Default: true): Sets or gets whether the clicks on the container are handled as clicks on the check box. - `groupName` (Type: String, Default: ""): Sets or gets the group name. When this property is set, the checkboxes in the same group behave as radio buttons. - `height` (Type: Number | String, Default: null): Sets or gets the jqxCheckBox's height. - `hasThreeStates` (Type: Boolean, Default: false): Sets or gets whether the checkbox has 3 states - checked, unchecked and indeterminate. - `locked` (Type: Boolean, Default: false): Sets or gets whether the checkbox is locked. In this mode the user is not allowed to check/uncheck the checkbox. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: null): Sets or gets the jqxCheckBox's width. #### Events - `checked` (Type: Event): This event is triggered when the checkbox is checked. - `change` (Type: Event): This is triggered when the checkbox's state changes from one state to another. - `indeterminate` (Type: Event): This event is triggered when the checkbox's checked property is going to be null. - `unchecked` (Type: Event): This event is triggered when the checkbox is unchecked. #### Methods - `check` (Arguments: None, Return Type: None): Checks the checkbox. - `disable` (Arguments: None, Return Type: None): Disables the checkbox. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `enable` (Arguments: None, Return Type: None): Enables the checkbox. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `indeterminate` (Arguments: None, Return Type: None): Sets the indeterminate state(checked property value is going to be null after calling this method). - `render` (Arguments: None, Return Type: None): Renders the widget. - `toggle` (Arguments: None, Return Type: None): Toggles the check state. This method is automatically called when the user clicks the checkbox. - `uncheck` (Arguments: None, Return Type: None): Unchecks the checkbox. - `val` (Arguments: value, Return Type: Boolean): Sets or gets the value. --- ### Getting started with the Vue ColorPicker Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcolorpicker/vue-colorpicker-getting-started.htm > Vue ColorPicker getting started: install jQWidgets, add jqxColorPicker to your app, see a complete example, handle its events and call its methods. The Vue ColorPicker enables the user to easily pick a color. This guide adds the Vue ColorPicker (`jqxColorPicker`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxcolorpicker.vue` - **Demos:** [Vue ColorPicker demos](https://www.jqwidgets.com/vue/vue-colorpicker/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcolorpicker/vue-colorpicker-api.htm) jqxColorPicker in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcolorpicker/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxColorPicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxcolorpicker.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `colorchange`: This event is triggered when a new color is picked. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `getColor`: Gets the color. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ColorPicker API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcolorpicker/vue-colorpicker-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcolorpicker/vue-colorpicker-styling-and-appearance.htm): themes and CSS classes. - [Vue ColorPicker demos](https://www.jqwidgets.com/vue/vue-colorpicker/): live examples with their source code. --- ### Vue ColorPicker Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcolorpicker/vue-colorpicker-styling-and-appearance.htm > Style the Vue ColorPicker: the jqxColorPicker CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxColorPicker. - jqx-widget - applied to the jqxColorPicker widget. - jqx-color-picker - applied to the jqxColorPicker widget. When you create a custom style with colors and backgrounds for jqxColorPicker, you need to do the following: - Add the above CSS classes related to jqxColorPicker - After each CSS class, add your theme name. For example: jqx-ColorPicker-summer - To apply your custom style to jqxColorPicker, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue ColorPicker API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcolorpicker/vue-colorpicker-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxcolorpicker.txt #### Properties - `color` (Type: String, Default: '#ff0000') - `colorMode` (Type: String, Default: 'saturation'): Sets or gets the color mode. - `disabled` (Type: Boolean, Default: false): Enables or disables the color picker. - `height` (Type: Number | String, Default: null): Sets or gets the height of the color picker. - `showTransparent` (Type: Boolean, Default: false): Sets or gets the showTransparent property. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: null): Sets or gets the width of the color picker. #### Events - `colorchange` (Type: Event): This event is triggered when a new color is picked. #### Methods - `getColor` (Arguments: None, Return Type: Object): Gets the color. - `setColor` (Arguments: color, Return Type: None): Sets a color. --- ### Getting started with the Vue ComboBox Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcombobox/vue-combobox-getting-started.htm > Vue ComboBox getting started: install jQWidgets, add jqxComboBox to your app, see a complete example, handle its events and call its methods. The Vue ComboBox enables the user to easily pick an item from a list of selectable items displayed in a drop-down. This guide adds the Vue ComboBox (`jqxComboBox`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxcombobox.vue` - **Demos:** [Vue ComboBox demos](https://www.jqwidgets.com/vue/vue-combobox/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcombobox/vue-combobox-api.htm) jqxComboBox in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcombobox/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxComboBox from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxcombobox.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the user selects an item. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the selected value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ComboBox API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcombobox/vue-combobox-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcombobox/vue-combobox-styling-and-appearance.htm): themes and CSS classes. - [Vue ComboBox demos](https://www.jqwidgets.com/vue/vue-combobox/): live examples with their source code. --- ### Vue ComboBox Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcombobox/vue-combobox-styling-and-appearance.htm > Style the Vue ComboBox: the jqxComboBox CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxComboBox. - jqx-widget - applied to the jqxComboBox widget. - jqx-combobox-content - applied to the jqxComboBox's content which displays the text. - jqx-widget-content - applied to the jqxComboBox's content which displays the text. - jqx-combobox-input - applied to the ComboBox's input field. - jqx-combobox-content-disabled - applied to the ComboBox's content when the widget is disabled. - jqx-combobox-arrow-normal - applied to the ComboBox's arrow button. - jqx-combobox-arrow-hover - applied to the ComboBox's arrow button when the mouse is over the button. - jqx-combobox-arrow-selected - applied to the ComboBox's arrow button when the ComboBox's popup is opened. - jqx-combobox-state-normal - applied to the ComboBox in normal state. - jqx-fill-state-normal - applied to the ComboBox in normal state. - jqx-combobox-state-hover - applied to the ComboBox when the mouse is over the widget. - jqx-fill-state-hover - applied to the ComboBox when the mouse is over the widget. - jqx-combobox-state-selected - applied to the ComboBox when the popup ListBox is shown. - jqx-fill-state-pressed - applied to the ComboBox when the popup ListBox is shown. - jqx-fill-state-focus - applied to the combobox when it is focused. - jqx-fill-state-disabled - applied to the combobox when it is disabled. *jqxComboBox internally use the jqxListBox widget. For additional information about styling jqxListBox, please take a look at the jqxListBox's Styling and Appearance help topic. When you create a custom style with colors and backgrounds for jqxComboBox, you need to do the following: - Add the above CSS classes related to jqxComboBox - After each CSS class, add your theme name. For example: jqx-combobox-summer - To apply your custom style to jqxComboBox, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue ComboBox API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcombobox/vue-combobox-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxcombobox.txt #### Properties - `animationType` (Type: String, Default: 'slide'): Sets the type of the animation. - `autoComplete` (Type: Boolean, Default: false): Sets or gets the whether the 'autoComplete' feature is enabled or disabled. When this feature is enabled, the jqxComboBox displays in the popup listbox, only the items that match the searched text. - `autoOpen` (Type: Boolean, Default: false): Sets or gets whether the DropDown is automatically opened when the mouse cursor is moved over the widget. - `autoItemsHeight` (Type: Boolean, Default: false): Sets or gets whether items will wrap when they reach the width of the dropDown. - `autoDropDownHeight` (Type: Boolean, Default: false): Sets or gets whether the height of the jqxComboBox's ListBox displayed in the widget's DropDown is calculated as a sum of the items heights. - `closeDelay` (Type: Number, Default: 400): Sets the delay of the 'close' animation. - `checkboxes` (Type: Boolean, Default: false): Determines whether checkboxes will be displayed next to the list items. - `disabled` (Type: Boolean, Default: false): Enables/disables the jqxComboBox. - `displayMember` (Type: String, Default: ""): Sets or gets the displayMember of the Items. The displayMember specifies the name of an object property to display. The name is contained in the collection specified by the 'source' property. - `dropDownHorizontalAlignment` (Type: String, Default: 'left'): Sets or gets the DropDown's alignment. - `dropDownVerticalAlignment` (Type: String, Default: 'bottom'): Sets or gets the DropDown's alignment. - `dropDownHeight` (Type: Number, Default: 200): Sets or gets the height of the jqxComboBox's ListBox displayed in the widget's DropDown. - `dropDownWidth` (Type: Number, Default: 200): Sets or gets the width of the jqxComboBox's ListBox displayed in the widget's DropDown. - `enableHover` (Type: Boolean, Default: true): Enables/disables the hover state. - `enableSelection` (Type: Boolean, Default: true): Enables/disables the selection. - `enableBrowserBoundsDetection` (Type: Boolean, Default: false): Sets or gets whether the dropdown detects the browser window's bounds and automatically adjusts the dropdown's position. - `height` (Type: Number | String, Default: null): Sets or gets the jqxComboBox height. - `itemHeight` (Type: Number, Default: -1): Sets or gets the height of the jqxComboBox Items. When the itemHeight == - 1, each item's height is equal to its desired height. - `multiSelect` (Type: Boolean, Default: false): Determines whether the jqxComboBox is in multi-select mode. - `minLength` (Type: Number, Default: 2): Determines the minimum number of characters that need to be entered by the user for search in remote data source when remoteAutoComplete property is set to true. - `openDelay` (Type: Number, Default: 350): Sets or gets the delay of the 'open' animation. - `popupZIndex` (Type: Number, Default: 20000): Sets or gets the popup's z-index. - `placeHolder` (Type: String, Default: ""): Sets or gets the input field's place holder. - `remoteAutoComplete` (Type: Boolean, Default: false): Determines whether the items displayed in the popup come from a remote data source. When this property is set to true, the jqxComboBox calls the 'search' callback function when the user types into the input field. - `remoteAutoCompleteDelay` (Type: Number, Default: 300): Determines the delay between two keystrokes. The search callback function is called on timeout. The value is specified in milliseconds. - `renderer` (Type: Function, Default: null): Callback function which is called when an item is rendered. By using the renderer function, you can customize the look of the list items. - `renderSelectedItem` (Type: Function, Default: null): Callback function which is called when the selected item is rendered. By using the renderSelectedItem function, you can customize the displayed text in the ComboBox's input field. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `selectedIndex` (Type: Number, Default: -1): Sets or gets the selected index. - `showArrow` (Type: Boolean, Default: true): Determines whether the jqxComboBox shows its dropdown button. - `showCloseButtons` (Type: Boolean, Default: true): Determines whether the jqxComboBox shows the items close buttons in multi-select mode. - `searchMode` (Type: String, Default: startswith): Sets or gets the item search mode. When the user types into the edit field, the jqxComboBox widget tries to find the searched item using the entered text and the selected search mode. - `search` (Type: Function, Default: null): Callback function which is called when the 'remoteAutoComplate' property is set to true and the user types into the ComboBox's input field. - `source` (Type: Array | Object, Default: null): Sets or gets the items source. - `scrollBarSize` (Type: Number, Default: 17): Sets or gets the scrollbars size. - `template` (Type: String, Default: 'default'): Determines the button's template as an alternative of the default styles. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `validateSelection` (Type: Function, Default: null): Determines whether an item can be selected in multi-select mode. - `valueMember` (Type: String, Default: ""): Sets or gets the valueMember of the Items. The valueMember specifies the name of an object property to set as a 'value' of the list items. The name is contained in the collection specified by the 'source' property. - `width` (Type: Number | String, Default: null): Sets or gets the jqxComboBox's width. #### Events - `bindingComplete` (Type: Event): This event is triggered when the data binding operation is completed. - `checkChange` (Type: Event): This event is triggered when an item is checked/unchecked. - `close` (Type: Event): This event is triggered when the popup ListBox is closed. - `change` (Type: Event): This event is triggered when the user selects an item. - `open` (Type: Event): This event is triggered when the popup ListBox is opened. - `select` (Type: Event): This event is triggered when the user selects an item. - `unselect` (Type: Event): This event is triggered when the user unselects an item. #### Methods - `addItem` (Arguments: item, Return Type: None): Adds a new item to the jqxComboBox. Returns 'true', if the new item is added or 'false' if the item is not added. - `clearSelection` (Arguments: None, Return Type: None): Clears all selected items. - `clear` (Arguments: None, Return Type: None): Clears all items. - `close` (Arguments: None, Return Type: None): Hides the popup listbox. - `checkIndex` (Arguments: index, Return Type: None): Checks a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to check the first item, the 'checkIndex' method should be called with parameter 0. - `checkItem` (Arguments: item, Return Type: None): Checks an item. - `checkAll` (Arguments: None, Return Type: None): Checks all list items when the 'checkboxes' property value is true. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `disableItem` (Arguments: item, Return Type: None): Disables an item. Item is an object. - `disableAt` (Arguments: index, Return Type: None): Disables an item by index. Index is a number. - `enableItem` (Arguments: item, Return Type: None): Enables an item. Item is an object. - `enableAt` (Arguments: index, Return Type: None): Enables a disabled item by index. Index is a number. - `ensureVisible` (Arguments: index, Return Type: None): Ensures that an item is visible. index is number. When necessary, the jqxComboBox scrolls to the item to make it visible. - `focus` (Arguments: None, Return Type: None): Sets the focus to the widget. - `getItem` (Arguments: index, Return Type: Object): Gets item by index. The returned value is an object with the following fields: - `getItemByValue` (Arguments: value, Return Type: Object): Gets an item by its value. The returned value is an object with the following fields: - `getVisibleItems` (Arguments: None, Return Type: Array): Gets all items displayed in the ComboBox. The method could be useful for getting the currently visible items after auto complete. The returned value is an array of Items. - `getItems` (Arguments: None, Return Type: Array): Gets all items. The returned value is an array of Items. - `getCheckedItems` (Arguments: None, Return Type: Array): Gets the checked items. The returned value is an array of Items. - `getSelectedItem` (Arguments: None, Return Type: Object): Gets the selected item. The returned value is an object or null(if there is no selected item). - `getSelectedItems` (Arguments: None, Return Type: Array): Gets the selected items when "multiselect" is turned on. The returned value is an Array with objects. - `getSelectedIndex` (Arguments: None, Return Type: Number): Gets the index of the selected item. The returned value is the index of the selected item. If there's no selected item, -1 is returned. - `insertAt` (Arguments: item, index, Return Type: None): Inserts a new item to the jqxComboBox. Returns 'true', if the new item is inserted or false if the insertion fails. The first parameter is object or string - the new item. - `isOpened` (Arguments: None, Return Type: Boolean): Returns true, if the popup is opened. Otherwise returns false. - `indeterminateIndex` (Arguments: index, Return Type: None): Indeterminates a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to indeterminate the first item, the 'indeterminateIndex' method should be called with parameter 0. - `indeterminateItem` (Arguments: item, Return Type: None): Indeterminates an item. - `loadFromSelect` (Arguments: selectTagId, Return Type: None): Loads list items from a 'select' tag. - `open` (Arguments: None, Return Type: None): Shows the popup listbox. - `removeItem` (Arguments: item, Return Type: Boolean): Removes an item from the listbox. Parameter type: object returned by the "getItem" method or string - the value of an item. Returns 'true', if the item is removed or 'false', if the item is not removed. - `removeAt` (Arguments: index, Return Type: Boolean): Removes an item from the listbox. Parameter type: number - the index of the item. The method returns 'true', if the item is removed or 'false', if the item is not removed. - `selectIndex` (Arguments: index, Return Type: None): Selects an item by index. The index is zero-based, i.e to select the first item, the 'selectIndex' method should be called with parameter 0. - `selectItem` (Arguments: item, Return Type: None): Selects an item. - `searchString` (Arguments: None, Return Type: String): Method: searchString - `updateItem` (Arguments: item, itemValue, Return Type: None): Updates an item. The first parameter is the new item. The second parameter could be an existing item or the value of an existing item. - `updateAt` (Arguments: item, index, Return Type: None): Updates an item. The first parameter is the new item. The second parameter is the index of the item to be updated. - `unselectIndex` (Arguments: index, Return Type: None): Unselects item by index. The index is zero-based, i.e to unselect the first item, the 'unselectIndex' method should be called with parameter 0. - `unselectItem` (Arguments: item, Return Type: None): Unselects an item. - `uncheckIndex` (Arguments: index, Return Type: None): Unchecks a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to uncheck the first item, the 'uncheckIndex' method should be called with parameter 0. - `uncheckItem` (Arguments: item, Return Type: None): Unchecks an item. - `uncheckAll` (Arguments: None, Return Type: None): Unchecks all list items when the 'checkboxes' property value is true. - `val` (Arguments: value, Return Type: String): Sets or gets the selected value. --- ### Getting started with the Vue ComplexInput Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcomplexinput/vue-complexinput-getting-started.htm > Vue ComplexInput getting started: install jQWidgets, add jqxComplexInput to your app, see a complete example, handle its events and call its methods. The Vue ComplexInput enables the user to edit complex and scientific numbers. This guide adds the Vue ComplexInput (`jqxComplexInput`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxcomplexinput.vue` - **Demos:** [Vue ComplexInput demos](https://www.jqwidgets.com/vue/vue-complexinput/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcomplexinput/vue-complexinput-api.htm) jqxComplexInput in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcomplexinput/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxComplexInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxcomplexinput.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ComplexInput API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcomplexinput/vue-complexinput-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcomplexinput/vue-complexinput-styling-and-appearance.htm): themes and CSS classes. - [Vue ComplexInput demos](https://www.jqwidgets.com/vue/vue-complexinput/): live examples with their source code. --- ### Vue ComplexInput Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcomplexinput/vue-complexinput-styling-and-appearance.htm > Style the Vue ComplexInput: the jqxComplexInput CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxComplexInput. - jqx-complex-input - applied to the complex input. - jqx-input - applied to the complex input. - jqx-widget - applied to the complex input. - jqx-rc-all - applied to the complex input (if the `roundedCorners` property is set to *true* and the spin buttons are not enabled). Adds rounded corners to the widget. - jqx-input-disabled - applied to the complex input when it is disabled. - jqx-fill-state-disabled - applied to the complex input when it is disabled. - jqx-complex-input-rtl - applied to the complex input if the `rtl` property is set to *true*. - jqx-complex-input-spin-buttons-container - applied to the spin buttons container div. When you create a custom style with colors and backgrounds for jqxComplexInput, you need to do the following: - Add the above CSS classes related to jqxComplexInput - After each CSS class, add your theme name. For example: jqx-complex-input-summer - To apply your custom style to jqxComplexInput, you need to set its 'theme' property (option) to point to your theme name string: --- ### Vue ComplexInput API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxcomplexinput/vue-complexinput-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxcomplexinput.txt #### Properties - `decimalNotation` (Type: String, Default: 'default'): Sets or gets the notation in which to display the real and imaginary parts of the complex number. - `disabled` (Type: Boolean, Default: false): Enables or disables the jqxComplexInput. - `height` (Type: Number | String, Default: null): Sets or gets the jqxComplexInput's height. - `placeHolder` (Type: String, Default: ''): Sets or gets the jqxComplexInput's placeholder. - `roundedCorners` (Type: Boolean, Default: true): Enables or disables the rounded corners functionality. This property setting has effect in browsers which support CSS border-radius. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `spinButtons` (Type: Boolean, Default: false): Shows or hides the spin buttons. - `spinButtonsStep` (Type: Number, Default: 1): Sets or gets the increase/decrease step. - `template` (Type: String, Default: 'default'): Determines the template as an alternative of the default styles. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `value` (Type: String, Default: ''): Sets or gets the value of the jqxComplexInput widget. - `width` (Type: Number | String, Default: null): Sets or gets the jqxComplexInput's width. #### Events - `change` (Type: Event): This event is triggered when the value is changed. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `getDecimalNotation` (Arguments: part, decimalNotation, Return Type: String): Method: getDecimalNotation - `getReal` (Arguments: complexnumber, Return Type: Number): Gets the real part of the entered number. - `getImaginary` (Arguments: complexnumber, Return Type: Number): Gets the imaginary part of the entered number. - `render` (Arguments: None, Return Type: None): Renders the widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. - `val` (Arguments: value, Return Type: String): Sets or gets the value. --- ### Getting started with the Vue DataTable Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatatable/vue-datatable-getting-started.htm > Vue DataTable getting started: install jQWidgets, add jqxDataTable to your app, see a complete example, handle its events and call its methods. The Vue DataTable displays a table of data and allows the user to sort, filter or edit it. This guide adds the Vue DataTable (`jqxDataTable`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatatable.vue` - **Demos:** [Vue DataTable demos](https://www.jqwidgets.com/vue/vue-datatable/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatatable/vue-datatable-api.htm) jqxDataTable in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdatatable/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxDataTable from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatatable.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `bindingComplete`: This event is triggered when the jqxDataTable binding is completed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Performs a layout and updates the HTML elements position and size. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [DataTable API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatatable/vue-datatable-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatatable/vue-datatable-styling-and-appearance.htm): themes and CSS classes. - [Vue DataTable demos](https://www.jqwidgets.com/vue/vue-datatable/): live examples with their source code. --- ### Vue DataTable Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatatable/vue-datatable-styling-and-appearance.htm > Style the Vue DataTable: the jqxDataTable CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxDataTable. - jqx-widget - applied to the DataTable widget. - jqx-grid - applied to DataTable container element. - jqx-grid-pager - applied to the DataTable Pager. - jqx-grid-header- applied to DataTable Columns container element. - jqx-grid-column-header - applied to a DataTable column. - jqx-widget-header - applied to a DataTable column, Toolbar, Statusbar and Groups Header. - jqx-widget-content - applied to the DataTable's content area. - jqx-grid-content - applied to the DataTable's content area. - jqx-grid-toolbar - applied to the toolbar. - jqx-grid-statusbar - applied to the statusbar. - jqx-cell - applied to the DataTable cells. - jqx-grid-cell - applied to the DataTable cells. - jqx-grid-cell-locked - applied to DataTable cells in a locked row. - jqx-grid-cell-sort - applied to the DataTable cells in the sort column. - jqx-grid-cell-filter - applied to the DataTable cells in the filter column. - jqx-grid-cell-alt - alternating cells style. This is applied to the cells in the alternating rows. - jqx-grid-cell-pinned - applied to the cells in a pinned column. - jqx-grid-cell-selected - applied to a selected cell. - jqx-fill-state-pressed - applied to a selected cell. - jqx-grid-cell-hover - applied to a hovered cell. - jqx-fill-state-hover - applied to a hovered cell. - jqx-grid-column-resizeline - applied to the column's resize line. - jqx-grid-column-resizestartline - applied to the column's resize start line. - jqx-fill-state-disabled - applied to the widget when it is disabled. - jqx-grid-group-drag-line - applied to the drop line indicators displayed in the grouping header. - jqx-grid-group-column-line - applied to the lines between the group columns. - jqx-right-align - applied to the content in cells depending on the column's `cellsAlign` value. Aligns the cell's content to the right. - jqx-left-align - applied to the content in cells depending on the column's `cellsAlign` value. Aligns the cell's content to the left. - jqx-center-align - applied to the content in cells depending on the column's `cellsAlign` value. Aligns the cell's content to the center. When you create a custom style with colors and backgrounds for jqxDataTable, you need to do the following: - Add the above CSS classes related to jqxDataTable - After each CSS class, add your theme name. For example: jqx-grid-energyblue - To apply your custom style to jqxDataTable, you need to set its 'theme' property(option) to point to your theme's name. --- ### Vue DataTable API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatatable/vue-datatable-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxdatatable.txt #### Properties - `altRows` (Type: Boolean, Default: false): Sets or gets whether the jqxDataTable automatically alternates row colors. - `autoRowHeight` (Type: Boolean, Default: true): Sets or gets whether the jqxDataTable automatically calculates the rows height and wraps the cell text. - `aggregatesHeight` (Type: Number, Default: 34): Sets or gets the height of the aggregates bar. Aggregates bar is displayed after setting `showAggregates` to true. - `autoShowLoadElement` (Type: Boolean, Default: true): Sets or gets whether the loading html element with animated gif is automatically displayed by the widget during the data binding process. - `columnsHeight` (Type: Number, Default: 30): Sets or gets the height of the columns header. - `columns` (Type: Array, Default: []): Sets the jqxDataTable's columns. - `columnGroups` (Type: Array, Default: []): Sets the jqxDataTable's column groups. - `columnsResize` (Type: Boolean, Default: false): Sets or gets the jqxDataTable's columnsResize. - `columnsReorder` (Type: Boolean, Default: false): Sets or gets the jqxDataTable's columnsReorder. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the jqxDataTable is disabled. - `editable` (Type: Boolean, Default: false): Sets or gets whether the jqxDataTable editing is enabled. - `editSettings` (Type: Object, Default: { saveOnPageChange: true, saveOnBlur: true, saveOnSelectionChange: true, cancelOnEsc: true, saveOnEnter: true, editSingleCell: false, editOnDoubleClick: true, editOnF2: true }): Sets or gets the jqxDataTable's edit settings. - `exportSettings` (Type: Object, Default: { columnsHeader: true, hiddenColumns: false, serverURL: null, characterSet: null, recordsInView: true, fileName: "jqxDataTable"}): Determines the Data Export settings used by jqxDataTable when `exportData` is called. See also the `exportData` method. - `enableHover` (Type: Boolean, Default: true): Sets or gets whether row highlighting is enabled. - `enableBrowserSelection` (Type: Boolean, Default: false): Enables or disables the default text selection of the web browser. - `filterable` (Type: Boolean, Default: false): Enables/Disables the filtering feature. - `filterHeight` (Type: Number, Default: 30): Sets or gets the Filter Element's height. - `filterMode` (Type: String, Default: "default"): Determines the Filter's mode. Possible values: `"default"`, `"simple"` and `"advanced"` - `groups` (Type: Array, Default: []): 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). - `groupsRenderer` (Type: Function, Default: null): Callback function which allows you to customize the rendering of the group headers. - `height` (Type: Number | String, Default: null): Sets or gets the jqxDataTable's height. - `initRowDetails` (Type: Function, Default: 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. - `incrementalSearch` (Type: Boolean, Default: 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. - `localization` (Type: Object, Default: default localization strings.): Applies a localization to the jqxDataTable's strings. - `pagerHeight` (Type: Number, Default: 28): Sets or gets the height of the jqxDataTable's Pager(s). Pager(s) is(are) displayed after setting `pageable` to true. - `pageSize` (Type: Number, Default: 10): Sets or gets the rows count per page when paging is enabled. - `pageSizeOptions` (Type: Array, Default: ['5', '10', '20']): Sets or gets the jqxDataTable's page size options when paging is enabled and the `pagerMode` property is set to `"advanced"`. - `pageable` (Type: Boolean, Default: false): Determines whether the jqxDataTable is in paging mode. - `pagerPosition` (Type: String, Default: "bottom"): Sets or gets the Pager's position. Possible values: `'top'`, `'bottom'` and `'both'` - `pagerMode` (Type: String, Default: "default"): Sets or gets the Pager's mode. Possible values: `"default"` and `"advanced"` - `pagerButtonsCount` (Type: Number, Default: 5): Sets or gets the count of the buttons displayed on the Pager when `pagerMode` is set to `"default"`. - `pagerRenderer` (Type: Function, Default: null): Enables custom rendering of the Pager. - `ready` (Type: Function, Default: null): Callback function which is called when the jqxDataTable is rendered and data binding is completed.. - `rowDetails` (Type: Boolean, Default: false): Sets or gets whether the jqxDataTable rows have details and can be expanded/collapsed. See the `initRowDetails` for initialization of the row details. - `renderToolbar` (Type: Function, Default: null): Enables custom rendering of the Toolbar. - `renderStatusBar` (Type: Function, Default: null): Enables custom rendering of the Statusbar. - `rendering` (Type: Function, Default: null): Callback function which is called before the rendering of the jqxDataTable's rows. - `rendered` (Type: Function, Default: null): Callback function which is called after the rendering of the jqxDataTable's row. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `source` (Type: Object, Default: null): Determines the jqxDataTable's data source. The `source` property is expected to point to an instance of jqxDataAdapter. For more information about jqxDataAdapter, visit: jquery-data-adapter.htm. - `sortable` (Type: Boolean, Default: false): Enables/Disables the sorting feature. - `showAggregates` (Type: Boolean, Default: false): Determines whether the jqxDataTable's Aggregates bar is visible. - `showToolbar` (Type: Boolean, Default: false): Determines whether the jqxDataTable's Toolbar is visible. - `showStatusbar` (Type: Boolean, Default: false): Determines whether the jqxDataTable's Statusbar is visible. - `enableSanitizeAll` (Type: Boolean, Default: false): Determines whether the jqxDataTable's HTML escape of chars is enabled. - `statusBarHeight` (Type: Number, Default: 34): Sets or gets the height of the Statusbar. Statusbar is displayed after setting `showStatusbar` to true. - `scrollBarSize` (Type: Number, Default: 17): Sets or gets the size of the scrollbars. - `selectionMode` (Type: String, Default: "multipleRows"): Sets or gets the selection mode. Possible values: `"multipleRows"`, `"singleRow"` and `"custom"`. In the "custom" mode, rows could be selected/unselected only through the API. - `serverProcessing` (Type: Boolean, Default: 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. - `showHeader` (Type: Boolean, Default: true): Sets or gets the jqxDataTable's columns visibility. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `toolbarHeight` (Type: Number, Default: 34): Sets or gets the height of the Toolbar. Toolbar is displayed after setting `showToolbar` to true. - `width` (Type: Number | String, Default: null): Sets or gets the jqxDataTable's width. #### Events - `bindingComplete` (Type: Event): This event is triggered when the jqxDataTable binding is completed. *Bind to that event before the jqxDataTable's initialization. - `cellBeginEdit` (Type: Event): This is triggered when a cell edit begins. Note: To turn on cell editing, you should set the `editSettings` property and make sure that its `editSingleCell` sub property is set to `true`. - `cellEndEdit` (Type: Event): This is triggered when a cell edit ends. Note: To turn on cell editing, you should set the `editSettings` property and make sure that its `editSingleCell` sub property is set to `true`. - `cellValueChanged` (Type: Event): This event is triggered when a cell value is changed. - `columnResized` (Type: Event): This event is triggered when a column is resized. - `columnReordered` (Type: Event): This event is triggered when the column's order is changed. - `sort` (Type: Event): This event is triggered when the jqxDataTable sort order or sort column is changed. - `filter` (Type: Event): This event is triggered when the jqxDataTable's rows filter is changed. - `pageChanged` (Type: Event): This is triggered when the jqxDataTable's current page is changed. - `pageSizeChanged` (Type: Event): This is triggered when the jqxDataTable's page size is changed. - `rowClick` (Type: Event): This is triggered when a row is clicked. - `rowDoubleClick` (Type: Event): This is triggered when a row is double-clicked. - `rowSelect` (Type: Event): This is triggered when a row is selected. - `rowUnselect` (Type: Event): This is triggered when a row is unselected. - `rowBeginEdit` (Type: Event): This is triggered when a row edit begins. - `rowEndEdit` (Type: Event): This is triggered when a row edit ends. - `rowExpand` (Type: Event): This is triggered when a row is expanded. - `rowCollapse` (Type: Event): This is triggered when a row is collapsed. #### Methods - `addRow` (Arguments: rowIndex, rowData, rowPosition, Return Type: None): Adds a new row. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation. - `addFilter` (Arguments: dataField, filerGroup, Return Type: None): Adds a new filter. - `applyFilters` (Arguments: None, Return Type: None): Applies the added/removed filters. - `beginUpdate` (Arguments: None, Return Type: None): Begins an update and stops all refreshes. - `beginRowEdit` (Arguments: rowIndex, Return Type: None): Begins a row edit operation when `editable` is set to true. - `beginCellEdit` (Arguments: rowIndex, dataField, Return Type: None): Begins a cell edit operation when `editable` is set to true. - `clearSelection` (Arguments: None, Return Type: None): Clears the selection. - `clearFilters` (Arguments: None, Return Type: None): Clears the filters. - `clear` (Arguments: None, Return Type: None): Clears the jqxDataTable. - `destroy` (Arguments: None, Return Type: None): Destroys jqxDataTable and removes it from the DOM. - `deleteRow` (Arguments: rowIndex, Return Type: None): Deletes a row. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation. - `endUpdate` (Arguments: None, Return Type: None): Ends the update and resumes all refreshes. - `ensureRowVisible` (Arguments: rowIndex, Return Type: None): Moves the vertical scrollbar to a row index. - `endRowEdit` (Arguments: rowIndex, cancelChanges, Return Type: None): Ends a row edit when `editable` is set to true. Invoke the endRowEdit method: `".endRowEdit(0)"` Invoke the endRowEdit method and cancel changes: `".endRowEdit(0, true)"` - `endCellEdit` (Arguments: rowIndex, dataField, Return Type: None): Ends a cell edit operation when `editable` is set to true. - `exportData` (Arguments: exportDataType, Return Type: Object(optional)): Exports jqxDataTable's data to Excel, HTML, XML, JSON, CSV or TSV. See also the `exportSettings` property - `focus` (Arguments: None, Return Type: None): Focus jqxDataTable. - `getColumnProperty` (Arguments: dataField, propertyName, Return Type: Object): Gets a property value of a column. - `goToPage` (Arguments: pageIndex, Return Type: None): Navigates to a page when `pageable` is set to true. - `goToPrevPage` (Arguments: None, Return Type: None): Navigates to a previous page when `pageable` is set to true. - `goToNextPage` (Arguments: None, Return Type: None): Navigates to a next page when `pageable` is set to true. - `getSelection` (Arguments: None, Return Type: Array): Returns an array of selected rows. - `getRows` (Arguments: None, Return Type: Array): Returns an array of all rows loaded in the widget. - `getView` (Arguments: None, Return Type: 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. - `getCellValue` (Arguments: rowIndex, dataField, Return Type: Object): Returns a value of a cell. - `hideColumn` (Arguments: dataField, Return Type: None): Hides a column. - `hideDetails` (Arguments: rowIndex, Return Type: None): Hides the details of a row. - `isBindingCompleted` (Arguments: None, Return Type: Boolean): Returns whether the binding is completed and if the result is true, this means that you can invoke methods and set properties. - `lockRow` (Arguments: rowIndex, Return Type: None): Locks a row i.e editing of the row would be disabled. - `refresh` (Arguments: None, Return Type: None): Performs a layout and updates the HTML elements position and size. - `render` (Arguments: None, Return Type: None): Renders jqxDataTable. - `removeFilter` (Arguments: dataField, Return Type: None): Removes a filter. - `scrollOffset` (Arguments: top, left, Return Type: None): Scrolls to a position. - `setColumnProperty` (Arguments: dataField, propertyName, propertyValue, Return Type: None): Sets a property of a column. See the `columns` property for more information. - `showColumn` (Arguments: dataField, Return Type: None): Shows a column. - `selectRow` (Arguments: rowIndex, Return Type: None): Selects a row. - `showDetails` (Arguments: rowIndex, Return Type: None): Shows a row details. - `setCellValue` (Arguments: rowIndex, dataField, value, Return Type: None): Sets a value of a cell. - `sortBy` (Arguments: dataField, sortOrder, Return Type: None): Sorts a column, if `sortable` is set to true. - `updating` (Arguments: None, Return Type: Boolean): Gets a boolean value which determines whether jqxDataTable is in update state i.e the `beginUpdate` method was called and the `endUpdate` method is not called yet. - `updateBoundData` (Arguments: None, Return Type: None): Performs a data bind and updates jqxDataTable with the new data. - `unselectRow` (Arguments: rowIndex, Return Type: None): Unselects a row. - `updateRow` (Arguments: rowIndex, rowData, Return Type: None): Updates the row's data. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation. - `unlockRow` (Arguments: rowIndex, Return Type: None): Unlocks a row. --- ### Getting started with the Vue DateTimeInput Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatetimeinput/vue-datetimeinput-getting-started.htm > Vue DateTimeInput getting started: install jQWidgets, add jqxDateTimeInput to your app, see a complete example, handle its events and call its methods. The Vue DateTimeInput lets users type a date or time, or pick it from a drop-down calendar. This guide adds the Vue DateTimeInput (`jqxDateTimeInput`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue` - **Demos:** [Vue DateTimeInput demos](https://www.jqwidgets.com/vue/vue-datetimeinput/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatetimeinput/vue-datetimeinput-api.htm) jqxDateTimeInput in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdatetimeinput/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered on blur when the value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Gets or sets the jqxDateTimeInput's value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [DateTimeInput API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatetimeinput/vue-datetimeinput-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatetimeinput/vue-datetimeinput-styling-and-appearance.htm): themes and CSS classes. - [Vue DateTimeInput demos](https://www.jqwidgets.com/vue/vue-datetimeinput/): live examples with their source code. --- ### Vue DateTimeInput Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatetimeinput/vue-datetimeinput-styling-and-appearance.htm > Style the Vue DateTimeInput: the jqxDateTimeInput CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxDateTimeInput. - jqx-input - applied to jqxDateTimeInput widget. - jqx-input-content - applied to the input's content. - jqx-widget-content - applied to the input's content. - jqx-input-disabled - applied to the input when it is disabled. - jqx-input-button-header - applied to the jqxDateTimeInput's button header. - jqx-widget-header - applied to the jqxDateTimeInput's button header. - jqx-input-button-innerHeader - applied to the element which is in the middle of the jqxDateTimeInput's button header. - jqx-input-button-content- applied to the jqxDateTimeInput's button content. - jqx-fill-state-focus - applied to the jqxDateTimeInput when it is focused. - jqx-fill-state-disabled - applied to the jqxDateTimeInput when it is disabled. *jqxDateTimeInput internally use the jqxCalendar widget. For additional information about styling jqxCalendar, please take a look at the jqxCalendar's Styling and Appearance help topic. When you create a custom style with colors and backgrounds for jqxDateTimeInput, you need to do the following: - Add the above CSS classes related to jqxDateTimeInput - After each CSS class, add your theme name. For example: jqx-input-themename - To apply your custom style to jqxDateTimeInput, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue DateTimeInput API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdatetimeinput/vue-datetimeinput-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxdatetimeinput.txt #### Properties - `animationType` (Type: String, Default: 'slide'): Sets or gets the type of the animation. - `allowNullDate` (Type: Boolean, Default: true): Determines whether Null is allowed as a value. - `allowKeyboardDelete` (Type: Boolean, Default: true): Determines whether `Backspace` and `Delete` keys are handled by the widget. - `clearString` (Type: String, Default: 'Clear'): Sets or gets the 'Clear' string displayed when the 'showFooter' property is true. - `culture` (Type: String, Default: default): Sets or gets the jqxDateTimeInput's culture. The culture settings are contained within a file with the language code appended to the name, e.g. jquery.glob.de-DE.js for German. - `closeDelay` (Type: Number, Default: 400): Specifies the animation duration of the popup calendar when it is going to be hidden. - `closeCalendarAfterSelection` (Type: Boolean, Default: true): Sets or gets whether or not the popup calendar must be closed after selection. - `dropDownHorizontalAlignment` (Type: String, Default: 'left'): Sets the DropDown's alignment. - `dropDownVerticalAlignment` (Type: String, Default: 'bottom'): Sets or gets the DropDown's alignment. - `disabled` (Type: Boolean, Default: false): Determines whether the widget is disabled. - `enableBrowserBoundsDetection` (Type: Boolean, Default: false): When this property is set to true, the popup calendar may open above the input, if there's not enough space below the DateTimeInput. - `enableAbsoluteSelection` (Type: Boolean, Default: false): This setting enables the user to select only one symbol at a time when typing into the text input field. - `editMode` (Type: String, Default: default): Sets the edit mode of the component. Possible values: 'default', 'full'. In 'default' mode, value is always displayed and is validated on each key press. - `firstDayOfWeek` (Type: Number, Default: 0): Sets or gets which day to display in the first day column. By default the calendar displays 'Sunday' as first day. - `formatString` (Type: String, Default: dd/MM/yyyy): Sets or gets the date time input format of the date. - `height` (Type: Number | String, Default: null): Sets or gets the height of the jqxDateTimeInput widget. - `min` (Type: Date, Default: Date(1900, 1, 1)): Sets or gets the jqxDateTimeInput's minimum date. - `max` (Type: Date, Default: Date(2100, 1, 1)): Sets or gets the jqxDateTimeInput's maximum date. - `openDelay` (Type: Number, Default: 350): Specifies the animation duration of the popup calendar when it is going to be displayed. - `placeHolder` (Type: String, Default: ""): Determines the widget's place holder displayed when the widget's value is null. - `popupZIndex` (Type: Number, Default: 20000): Sets or gets the popup's z-index. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `readonly` (Type: Boolean, Default: false) - `showFooter` (Type: Boolean, Default: false): Sets or gets a value indicating whether the dropdown calendar's footer is displayed. - `selectionMode` (Type: String, Default: 'default'): Sets or gets the dropdown calendar's selection mode. - `showWeekNumbers` (Type: Boolean, Default: true): Sets or gets a value whether the week`s numbers are displayed. - `showTimeButton` (Type: Boolean, Default: false): Determines whether the time button is visible. - `showCalendarButton` (Type: Boolean, Default: true): Determines whether the calendar button is visible. - `showDeleteButton` (Type: Boolean, Default: false): Determines whether the delete button is visible. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `template` (Type: String, Default: 'default'): Determines the template as an alternative of the default styles. - `textAlign` (Type: String, Default: left): Sets or gets the position of the text. - `todayString` (Type: String, Default: 'Today'): Sets or gets the 'Today' string displayed in the dropdown Calendar when the 'showFooter' property is true. - `value` (Type: Date, Default: Today's Date): Sets or gets the jqxDateTimeInput value. - `width` (Type: Number | String, Default: null): Sets or gets the width of the jqxDateTimeInput widget. - `yearCutoff` (Type: Number, Default: 2000): Works with editMode='full'. if yearCutoff is 1926 and 01/01/20 is entered, 20 will be interpreted as 2020; if 01/01/54 is entered, 54 will be interpreted as 1954. #### Events - `change` (Type: Event): This event is triggered on blur when the value is changed. - `close` (Type: Event): This event is triggered when the popup calendar is closed. - `open` (Type: Event): This event is triggered when the popup calendar is opened. - `textchanged` (Type: Event): This event is triggered when the text is changed. - `valueChanged` (Type: Event): This event is triggered when the value is changed. #### Methods - `close` (Arguments: None, Return Type: None): After calling this method, the popup calendar will be hidden. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `getRange` (Arguments: date, Return Type: Object): Gets the selection range when the selectionMode is set to 'range'. The returned value is an object with "from" and "to" fields. Each of the fields is a JavaScript Date object. - `getText` (Arguments: None, Return Type: String): Returns the input field's text. - `getDate` (Arguments: None, Return Type: Date): When the getDate method is called, the user gets the current date. The returned value is JavaScript Date object. - `getMaxDate` (Arguments: None, Return Type: Date): When the setMaxDate method is called, the user gets the maximum navigation date. The returned value is JavaScript Date object. - `getMinDate` (Arguments: None, Return Type: Date): When the getMinDate method is called, the user gets the minimum navigation date. The returned value is JavaScript Date object. - `open` (Arguments: None, Return Type: None): After calling this method, the popup calendar will be displayed. - `setRange` (Arguments: date, date2, Return Type: None): Sets the selection range when the selectionMode is set to 'range'. The required parameters are JavaScript Date objects. - `setMinDate` (Arguments: date, Return Type: None): When the setMinDate method is called, the user sets the minimum date to which it is possible to navigate. - `setMaxDate` (Arguments: date, Return Type: None): When the setMaxDate method is called, the user sets the maximum date to which it is possible to navigate. - `setDate` (Arguments: date, Return Type: None): When the setDate method is called, the user sets the date. The required parameter is a JavaScript Date object. - `val` (Arguments: value, value2, Return Type: Date/string): Gets or sets the jqxDateTimeInput's value. Set value: `this.$refs.myDateTimeInput.val(new Date(2011, 10, 24));` Get value: `let date = this.$refs.myDateTimeInput.val();` --- ### Getting started with the Vue Docking Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdocking/vue-docking-getting-started.htm > Vue Docking getting started: install jQWidgets, add jqxDocking to your app, see a complete example, handle its events and call its methods. The Vue Docking enables the user to add windows and change their layout. This guide adds the Vue Docking (`jqxDocking`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxdocking.vue` - **Demos:** [Vue Docking demos](https://www.jqwidgets.com/vue/vue-docking/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdocking/vue-docking-api.htm) jqxDocking in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdocking/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxDocking from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdocking.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `dragStart`: This event is triggered when the user start to drag any window. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `focus`: Focuses the widget. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Docking API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdocking/vue-docking-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdocking/vue-docking-styling-and-appearance.htm): themes and CSS classes. - [Vue Docking demos](https://www.jqwidgets.com/vue/vue-docking/): live examples with their source code. --- ### Vue Docking Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdocking/vue-docking-styling-and-appearance.htm > Style the Vue Docking: the jqxDocking CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxDocking. - jqx-docking - applied to the docking's main div. - jqx-docking-panel - applied to the different docking panels. - jqx-docking-drop-indicator - applied to the jqxdocking's drop indicator. - jqx-docking-window - applied to the windows which are inside the docking. *jqxDocking internally use the jqxWindow widget. For additional information about styling jqxWindow, please take a look at the jqxWindow's Styling and Appearance help topic. When you create a custom style with colors and backgrounds for jqxDocking panels, you need to do the following: - Add the above CSS classes related to jqxDocking - After each CSS class, add your theme name. For example: jqx-docking-panel-shinyblack - To apply your custom style to jqxDocking, you need to set its 'theme' property (option) to point to your theme name string. --- ### Vue Docking API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdocking/vue-docking-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxdocking.txt #### Properties - `cookies` (Type: Boolean, Default: false): Enables or disables the cookies. If the cookies are enabled then the docking layout is going to be saved and kept every time the page is being reloaded. - `cookieOptions` (Type: Object, Default: {}): Sets or gets the cookie options. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the docking is disabled. - `floatingWindowOpacity` (Type: Number, Default: 0.3): Sets or gets the opacity of the window which is currently dragged by the user. - `height` (Type: Number | String, Default: auto): Sets or gets the docking's height. - `keyboardNavigation` (Type: Boolean, Default: false): Enables or disables the jqxDocking's keyboard navigation. - `mode` (Type: String, Default: default): Sets or gets docking's mode. - `orientation` (Type: String, Default: horizontal): Sets or gets docking's orientation. This property is setting whether the panels are going to be side by side or below each other. - `rtl` (Type: Boolean, Default: false): Sets ot gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: auto): Sets or gets the docking's width. - `windowsMode` (Type: Object, Default: null): Sets ot gets specific mode for each window. The value of the property is object with keys - window's ids and values - specific modes. - `windowsOffset` (Type: Number, Default: 5): Sets or gets the offset between the windows. #### Events - `dragStart` (Type: Event): This event is triggered when the user start to drag any window. - `dragEnd` (Type: Event): This event is triggered when the user drop any window. #### Methods - `addWindow` (Arguments: windowId, mode, panel, position, Return Type: None): Adding new window to the docking. This method accepts four arguments. The first one is id of the window we wish to add to the docking. - `closeWindow` (Arguments: windowId, Return Type: None): Closing specific window. - `collapseWindow` (Arguments: windowId, Return Type: None): Collapsing a specific window. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `disableWindowResize` (Arguments: windowId, Return Type: None): Disabling the resize of a specific window. - `disable` (Arguments: None, Return Type: None): Disabling the jqxDocking. - `exportLayout` (Arguments: None, Return Type: String): Exporting docking's layout into a JSON string. - `enable` (Arguments: None, Return Type: None): Enabling the docking - `expandWindow` (Arguments: windowId, Return Type: None): Expanding a specific window. - `enableWindowResize` (Arguments: windowId, Return Type: None): Enabling the resize of a specific window which is not docked into a panel. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `hideAllCloseButtons` (Arguments: None, Return Type: None): Hiding the close buttons of all windows. - `hideAllCollapseButtons` (Arguments: None, Return Type: None): Hiding the collapse buttons of all windows. - `hideCollapseButton` (Arguments: windowId, Return Type: None): Hiding the collapse button of a specific window. - `hideCloseButton` (Arguments: windowId, Return Type: None): Hiding the close button of a specific window. - `importLayout` (Arguments: Json, Return Type: None): Importing the docking layout from a JSON string. - `move` (Arguments: windowId, panel, position, Return Type: None): Moving window to specific position into specific panel. This method have three parameters. - `pinWindow` (Arguments: windowId, Return Type: None): Pinning a specific window - `setWindowMode` (Arguments: windowId, mode, Return Type: None): Setting mode to a specific window. This method accepts two arguments - window id and mode type. - `showCloseButton` (Arguments: windowId, Return Type: None): Showing the close button of a specific window. - `showCollapseButton` (Arguments: windowId, Return Type: None): Showing the collapse button of a specific window. - `setWindowPosition` (Arguments: windowId, top, left, Return Type: None): Moving window in floating mode to a specific position. - `showAllCloseButtons` (Arguments: None, Return Type: None): Showing the close buttons of all windows. - `showAllCollapseButtons` (Arguments: None, Return Type: None): Showing the collapse buttons of all windows. - `unpinWindow` (Arguments: windowId, Return Type: None): Unpinning a specific window --- ### Getting started with the Vue DockingLayout Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdockinglayout/vue-dockinglayout-getting-started.htm > Vue DockingLayout getting started: install jQWidgets, add jqxDockingLayout to your app, see a complete example, handle its events and call its methods. The Vue DockingLayout enables the creation of complex layouts with panels that can be floated, docked, nested, resized, pinned, unpinned and closed. This guide adds the Vue DockingLayout (`jqxDockingLayout`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxdockinglayout.vue` - **Demos:** [Vue DockingLayout demos](https://www.jqwidgets.com/vue/vue-dockinglayout/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdockinglayout/vue-dockinglayout-api.htm) jqxDockingLayout in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdockinglayout/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxDockingLayout from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdockinglayout.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `dock`: This event is triggered when a floatGroup has been docked. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Refreshes the widget. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [DockingLayout API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdockinglayout/vue-dockinglayout-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdockinglayout/vue-dockinglayout-styling-and-appearance.htm): themes and CSS classes. - [Vue DockingLayout demos](https://www.jqwidgets.com/vue/vue-dockinglayout/): live examples with their source code. --- ### Vue DockingLayout Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdockinglayout/vue-dockinglayout-styling-and-appearance.htm > Style the Vue DockingLayout: the jqxDockingLayout CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxDockingLayout. - jqx-docking-layout - applied to the jqxDockingLayout. - jqx-layout - applied to the jqxDockingLayout. - jqx-widget - applied to the jqxDockingLayout. - jqx-widget-content - applied to the jqxDockingLayout. - jqx-rc-all - applied to the jqxDockingLayout. - jqx-layout-group-root - applied to the root layout group. - jqx-layout-group-default - applied to layout groups. - jqx-layout-group-document - applied to document groups. - jqx-layout-group-tabbed - applied to tabbed groups. - jqx-layout-group-auto-hide - applied to auto hide groups. - jqx-layout-group-auto-hide-content-horizontal - applied to the content sections of horizontally-aligned auto hide groups. - jqx-layout-group-auto-hide-content-vertical - applied to the content sections of vertically-aligned auto hide groups. - jqx-docking-layout-group-floating - applied to float groups. - jqx-layout-pseudo-window - applied to pseudo-jqxWindows in tabbed and auto hide groups. - jqx-layout-pseudo-window-header - applied to pseudo-jqxWindow headers. - jqx-layout-pseudo-window-title - applied to pseudo-jqxWindow titles. - jqx-layout-pseudo-window-pin-icon - applied to pseudo-jqxWindow pin icons. - jqx-layout-pseudo-window-pinned-icon - applied to pseudo-jqxWindow unpin icons. - jqx-layout-pseudo-window-close-icon - applied to pseudo-jqxWindow close icons. - jqx-layout-pseudo-window-content - applied to pseudo-jqxWindow content sections. - jqx-layout-resize-feedback - applied to the horizontal and vertical resize feedbacks. - jqx-layout-resize-feedback-horizontal - applied to the horizontal resize feedback. - jqx-layout-resize-feedback-vertical - applied to the vertical resize feedback. - jqx-layout-resize-feedback-warning - applied to the resize feedbacks when a minimum width has been reached. - jqx-docking-layout-overlay - applied to the overlay with squares which appears when a float group is dragged (drag overlay). - jqx-docking-layout-overlay-square - applied to the squares in the drag overlay. - jqx-docking-layout-square-disabled - applied to squares in the drag overlay to indicate a drop operation is not allowed. - jqx-docking-layout-overlay-inner-square - applied to the inner, dialog-resembling, squares in the drag overlay. - jqx-docking-layout-overlay-inner-square-header - applied to the header of the drag overlay inner squares and the "mini windows" of edge squares. - jqx-docking-layout-overlay-inner-square-content - applied to the content of the drag overlay inner squares and the "mini windows" of edge squares. - jqx-docking-layout-overlay-highlight - applied to the highlighted part of the content of the drag overlay inner squares. - jqx-docking-layout-drop-overlay - applied to the overlay which appears when a float group is about to be docked. - jqx-docking-layout-overlay-square-edge - applied to the squares which appear at the left, right, top and bottom of the widget when a float group is dragged. - jqx-docking-layout-overlay-mini-window-edge-horizontal - applied to the inner, dialog-resembling, squares in the left and right edge squares. - jqx-docking-layout-overlay-mini-window-edge-vertical - applied to the inner, dialog-resembling, squares in the top and bottom edge squares. - jqx-docking-layout-overlay-inner-square-content-horizontal - applied to the content of the "mini windows" of the left and right edge squares. - jqx-docking-layout-overlay-inner-square-content-vertical - applied to the content of the "mini windows" of the top and bottom edge squares. - jqx-docking-layout-overlay-square-edge-arrow - applied to the arrows of the edge squares. When you create a custom style with colors and backgrounds for jqxDockingLayout, you need to do the following: - Add the above CSS classes related to jqxDockingLayout - After each CSS class, add your theme name. For example: jqx-docking-layout-energyblue - To apply your custom style to jqxDockingLayout, you need to set its 'theme' property (option) to point to your theme name string: --- ### Vue DockingLayout API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdockinglayout/vue-dockinglayout-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxdockinglayout.txt #### Properties - `contextMenu` (Type: Boolean, Default: false): Sets or gets whether a custom context menu will appear when certain elements of the widget are right-clicked. - `height` (Type: Number | String, Default: null): Sets or gets the docking layout's height. - `layout` (Type: Array, Default: []): Sets or gets the layout. This property determines the position of the docking layout elements and their characteristics. The first member of the layout array should always be an item of type 'layoutGroup'. - `minGroupHeight` (Type: Number, Default: 100): Sets the default minimum height for groups which are vertically aligned within their parent group. - `minGroupWidth` (Type: Number, Default: 100): Sets the default minimum width for groups which are horizontally aligned within their parent group. - `resizable` (Type: Boolean, Default: true): Sets or gets whether panels can be dynamically resized. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: null): Sets or gets the docking layout's width. #### Events - `dock` (Type: Event): This event is triggered when a floatGroup has been docked. - `floatGroupClosed` (Type: Event): This event is triggered when a floatGroup has been closed. - `float` (Type: Event): This event is triggered when a group or panel has been floated. - `pin` (Type: Event): This event is triggered when a group has been pinned. - `resize` (Type: Event): This event is triggered when a group has been resized (when the group has been resized with the mouse or when an adjacent group has been pinned, unpinned or closed). - `unpin` (Type: Event): This event is triggered when a group has been unpinned. #### Methods - `addFloatGroup` (Arguments: width, height, position, panelType, title, content, initContent, Return Type: None): Adds a new floatGroup. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `loadLayout` (Arguments: layout, Return Type: None): Loads a previously saved layout. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. - `render` (Arguments: None, Return Type: None): Renders the widget. - `saveLayout` (Arguments: None, Return Type: Object): Saves the current layout of the widget. The object returned by this method can be passed to the method **loadLayout**. --- ### Getting started with the Vue DockPanel Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdockpanel/vue-dockpanel-getting-started.htm > Vue DockPanel getting started: install jQWidgets, add jqxDockPanel to your app, see a complete example, handle its events and call its methods. The Vue DockPanel allows the creation of dock layouts. This guide adds the Vue DockPanel (`jqxDockPanel`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxdockpanel.vue` - **Demos:** [Vue DockPanel demos](https://www.jqwidgets.com/vue/vue-panel/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdockpanel/vue-dockpanel-api.htm) #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxDockPanel from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdockpanel.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `layout`: Occurs when the layout is performed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Refreshes the DockPanel. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [DockPanel API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdockpanel/vue-dockpanel-api.htm): every property, event and method, with examples. - [Vue DockPanel demos](https://www.jqwidgets.com/vue/vue-panel/): live examples with their source code. --- ### Vue DockPanel API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdockpanel/vue-dockpanel-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxdockpanel.txt #### Properties - `disabled` (Type: Boolean, Default: false): Gets whether the dockpanel is disabled. - `height` (Type: Number | String, Default: null): Sets or gets the dockpanel's height. - `lastchildfill` (Type: Boolean, Default: true): When true, the last child gets the available width and height. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: null): Sets or gets the dockpanel's width. #### Events - `layout` (Type: Event): Occurs when the layout is performed. #### Methods - `refresh` (Arguments: None, Return Type: None): Refreshes the DockPanel. --- ### Getting started with the Vue DragDrop Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdragdrop/vue-dragdrop-getting-started.htm > Vue DragDrop getting started: install jQWidgets, add jqxDragDrop to your app, see a complete example and handle its events. The Vue DragDrop enables the user to easily drag and drop items. This guide adds the Vue DragDrop (`jqxDragDrop`) to an app, then shows how to set its options and handle its events. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxdragdrop.vue` - **Demos:** [Vue DragDrop demos](https://www.jqwidgets.com/vue/vue-dragdrop/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdragdrop/vue-dragdrop-api.htm) jqxDragDrop in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdragdrop/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxDragDrop from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdragdrop.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `dragStart`: This event is triggered when the item is dragged for first time. ```vue ``` #### Next steps - [DragDrop API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdragdrop/vue-dragdrop-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdragdrop/vue-dragdrop-styling-and-appearance.htm): themes and CSS classes. - [Vue DragDrop demos](https://www.jqwidgets.com/vue/vue-dragdrop/): live examples with their source code. --- ### Vue DragDrop Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdragdrop/vue-dragdrop-styling-and-appearance.htm > Style the Vue DragDrop: the jqxDragDrop CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of CSS files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second CSS file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxDragDrop. - jqxDragDrop Style - jqx-dragdrop - applied to draggable elements. - jqx-dragdrop-dragging - applied to draggable while dragging. - jqx-dragdrop-disabled - applied to draggable elements with disabled dragging. When you create a custom style with colors and backgrounds for jqxDragDrop, you need to do the following: - Add the above CSS classes related to jqxDragDrop - After each CSS class, add your theme name. For example: jqx-dragdrop-energyblue - To apply your custom style to jqxDragDrop, you need to set its 'theme' property (option) to point to your theme name string. --- ### Vue DragDrop API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdragdrop/vue-dragdrop-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxdragdrop.txt #### Properties - `appendTo` (Type: String, Default: 'parent'): Sets or gets where will be appended the draggable's feedback. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the dragging is disabled. - `distance` (Type: Number, Default: 5): Sets or gets the distance required for the cursor to pass before the drag begins. - `data` (Type: Object, Default: null): This property can be used for setting some kind of information transferred with the draggable. - `dropAction` (Type: String, Default: 'default'): Sets or gets whether the draggable element will change its position ('default') or not ('none') when the element is dropped. - `dropTarget` (Type: String | Object, Default: null): Sets or gets the drop target. The drop target is a DOM element(s) for which jqxDragDrop triggers events when the user drags or drops the draggable element over that element(s). - `dragZIndex` (Type: Number, Default: 99999): Sets or gets element's z-index when it's dragging. - `feedback` (Type: String, Default: 'clone'): Sets or gets the feedback. The feedback is the object which is actually dragged by the user. - `initFeedback` (Type: Function, Default: null): Callback which is executing when the feedback is created. - `opacity` (Type: Number, Default: 0.6): Sets or gets draggable object's opacity when it's dragging. - `onDragEnd` (Type: Function, Default: null): Callback which is executing when the drag ends. - `onDrag` (Type: Function, Default: null): Callback which is executing while dragging. - `onDragStart` (Type: Function, Default: null): Callback which is executing when drag start. - `onTargetDrop` (Type: Function, Default: null): Callback which is executing when drag ends over the drop target. - `onDropTargetEnter` (Type: Function, Default: null): Callback which is executing when the draggable enter any of it's drop targets. - `onDropTargetLeave` (Type: Function, Default: null): Callback which is executing when the draggable leave any of it's drop targets. - `restricter` (Type: String | Object, Default: 'document'): Sets or gets dragdrop's restrict area. - `revert` (Type: Boolean, Default: false): Sets or gets whether the draggable element will be reverted to it's original position after drop. - `revertDuration` (Type: Number, Default: 400): Sets or gets the duration for which the draggable object will be reverted. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `tolerance` (Type: String, Default: 'intersect'): Sets or gets whether the draggable item is over it's drop target when it's intersecting it or when it's fully inside it's target. #### Events - `dragStart` (Type: Event): This event is triggered when the item is dragged for first time. - `dragEnd` (Type: Event): This event is triggered when the item is dropped. - `dragging` (Type: Event): This event is triggered while the item is dragging. - `dropTargetEnter` (Type: Event): This event is triggered when the draggable item is over it's drop target for first time. - `dropTargetLeave` (Type: Event): This event is triggered when the draggable item leave it's drop target. --- ### Getting started with the Vue Draw Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdraw/vue-draw-getting-started.htm > Vue Draw getting started: install jQWidgets, add jqxDraw to your app, see a complete example and call its methods. The Vue Draw is a low-level drawing API for SVG and Canvas shapes, text and paths. This guide adds the Vue Draw (`jqxDraw`) to an app, then shows how to set its options and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxdraw.vue` - **Demos:** [Vue Draw demos](https://www.jqwidgets.com/vue/vue-draw/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdraw/vue-draw-api.htm) jqxDraw in the [Drawing Shapes](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdraw/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxDraw from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdraw.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Call methods Call methods through a template ref. For example, `refresh`: Refreshes / re-draws the content of the jqxDraw widget ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Draw API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdraw/vue-draw-api.htm): every property, event and method, with examples. - [Vue Draw demos](https://www.jqwidgets.com/vue/vue-draw/): live examples with their source code. --- ### Vue Draw API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdraw/vue-draw-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxdraw.txt #### Properties - `renderEngine` (Type: String, Default: ''): Determines the rendering engine used to display the chart. Possible values are 'SVG', 'VML' and 'HTML5'. - `theme` (Type: String, Default: ''): Sets the widget's theme. #### Methods - `attr` (Arguments: element, attributes, Return Type: None): Sets attributes of an element - `circle` (Arguments: cx, cy, r, attributes, Return Type: Object): Creates a circle element - `clear` (Arguments: None, Return Type: None): Clears the content of the jqxDraw widget - `getAttr` (Arguments: element, attributes, Return Type: String): Gets element's attribute - `getSize` (Arguments: None, Return Type: Object): Method: getSize - `line` (Arguments: x1, y1, x2, y2, attributes, Return Type: Object): Creates a line element - `measureText` (Arguments: text, angle, attributes, Return Type: Object): Estimates the size of a text element - `on` (Arguments: element, event, func, Return Type: None): Adds an event handler to an element - `off` (Arguments: element, event, func, Return Type: None): Removes an event handler from an element - `path` (Arguments: path, attributes, Return Type: Object): Creates a path element - `pieslice` (Arguments: cx, xy, innerRadius, outerRadius, fromAngle, endAngle, centerOffset, attributes, Return Type: Object): Creates a pie slice element - `refresh` (Arguments: None, Return Type: None): Refreshes / re-draws the content of the jqxDraw widget - `rect` (Arguments: x, y, width, height, attributes, Return Type: Object): Creates a rectangle element - `saveAsJPEG` (Arguments: image, url, Return Type: None): Exports the content as JPEG image - `saveAsPNG` (Arguments: image, url, Return Type: None): Exports the chart's content as PNG image - `text` (Arguments: text, x, y, width, height, angle, attributes, clip, halign, valign, rotateAround, Return Type: Object): Creates a text element --- ### Getting started with the Vue DropDownButton Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownbutton/vue-dropdownbutton-getting-started.htm > Vue DropDownButton getting started: install jQWidgets, add jqxDropDownButton to your app, see a complete example, handle its events and call its methods. The Vue DropDownButton shows any content in a drop-down that opens from a button. This guide adds the Vue DropDownButton (`jqxDropDownButton`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownbutton.vue` - **Demos:** [Vue DropDownButton demos](https://www.jqwidgets.com/vue/vue-buttons/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownbutton/vue-dropdownbutton-api.htm) #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxDropDownButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownbutton.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `open`: This event is triggered when the button's popup is opened. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `open`: Shows the button's content. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [DropDownButton API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownbutton/vue-dropdownbutton-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownbutton/vue-dropdownbutton-styling-and-appearance.htm): themes and CSS classes. - [Vue DropDownButton demos](https://www.jqwidgets.com/vue/vue-buttons/): live examples with their source code. --- ### Vue DropDownButton Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownbutton/vue-dropdownbutton-styling-and-appearance.htm > Style the Vue DropDownButton: the jqxDropDownButton CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxButtons. - jqxButton, jqxRepeatButton, jqxLinkButton and jqxToggleButton Style - jqx-button - applied to jqxButton's outer div element. - jqx-link - applied to the jqxLinkButton's anchor element. - jqx-fill-state-normal - applied to button when it's state is default/normal. - jqx-fill-state-hover - applied to button when it's state is hovered i.e the mouse cursor is over the button. - jqx-fill-state-pressed - applied to button when it's state is pressed i.e the mouse button is down. - jqx-fill-state-disabled - applied to button it is disabled. When you create a custom style with colors and backgrounds for jqxButton, jqxRepeatButton, jqxLinkButton and jqxToggleButton, you need to do the following: - Add the above CSS classes related to jqxButtons - After each CSS class, add your theme name. For example: jqx-button-energyblue - To apply your custom style to jqxButtons, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue DropDownButton API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownbutton/vue-dropdownbutton-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxdropdownbutton.txt #### Properties - `animationType` (Type: String, Default: 'slide'): Sets or gets the type of the animation. - `arrowSize` (Type: Number, Default: 16) - `autoOpen` (Type: Boolean, Default: false): Sets or gets whether the DropDown is automatically opened when the mouse cursor is moved over the widget. - `closeDelay` (Type: Number, Default: 400): Sets or gets the delay of the 'close' animation. - `disabled` (Type: Boolean, Default: false): Enables or disables the dropDownButton. - `dropDownHorizontalAlignment` (Type: String, Default: 'left'): Sets or gets the DropDown's alignment. - `dropDownVerticalAlignment` (Type: String, Default: 'bottom'): Sets or gets the DropDown's alignment. - `dropDownWidth` (Type: String | Number, Default: null) - `enableBrowserBoundsDetection` (Type: Boolean, Default: false): When this property is set to true, the popup may open above the button, if there's not enough available space below the button. - `height` (Type: Number | String, Default: null): Sets or gets the button's height. - `initContent` (Type: Function, Default: null): Function, called after the first open of the dropdown button popup. - `openDelay` (Type: Number, Default: 350): Sets or gets the delay of the 'open' animation. - `popupZIndex` (Type: Number, Default: 20000): Sets or gets the popup's z-index. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `template` (Type: String, Default: 'default'): Determines the template as an alternative of the default styles. - `theme` (Type: String, Default: ''): Sets the widget's theme. Include the desired theme's CSS file after the 'jqx.base.css' file. - `width` (Type: Number | String, Default: null): Sets or gets the button's width. #### Events - `close` (Type: Event): This event is triggered when the button's popup is closed. - `open` (Type: Event): This event is triggered when the button's popup is opened. #### Methods - `close` (Arguments: None, Return Type: None): Hides the button's content. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `getContent` (Arguments: None, Return Type: Object): Gets the button's content. The returned value is the button's content set through the "setContent" method. - `isOpened` (Arguments: None, Return Type: Boolean): Returns true, if the drop down is opened. Otherwise returns false. - `open` (Arguments: None, Return Type: None): Shows the button's content. - `setContent` (Arguments: content, Return Type: None): Sets the button's content. The parameter could be a "string" or "html". --- ### Getting started with the Vue DropDownList Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownlist/vue-dropdownlist-getting-started.htm > Vue DropDownList getting started: install jQWidgets, add jqxDropDownList to your app, see a complete example, handle its events and call its methods. The Vue DropDownList contains a list of selectable items displayed in a drop-down. This guide adds the Vue DropDownList (`jqxDropDownList`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue` - **Demos:** [Vue DropDownList demos](https://www.jqwidgets.com/vue/vue-dropdownlist/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownlist/vue-dropdownlist-api.htm) jqxDropDownList in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdropdownlist/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the user selects an item. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Gets the selected value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [DropDownList API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownlist/vue-dropdownlist-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownlist/vue-dropdownlist-styling-and-appearance.htm): themes and CSS classes. - [Vue DropDownList demos](https://www.jqwidgets.com/vue/vue-dropdownlist/): live examples with their source code. --- ### Vue DropDownList Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownlist/vue-dropdownlist-styling-and-appearance.htm > Style the Vue DropDownList: the jqxDropDownList CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxDropDownList. - jqx-widget - applied to the dropdownlist. - jqx-dropdownlist-content - applied to the dropdownlist's content element which displays the selected item's text or html. - jqx-dropdownlist-content-disabled - applied to the dropdownlist's content element which displays the selected item's text or html and the widget is disabled. - jqx-dropdownlist-state-normal - applied to the dropdownlist in default state. - jqx-fill-state-normal - applied to the dropdownlist in default state. - jqx-dropdownlist-state-hover - applied to the dropdownlist in hovered state. - jqx-fill-state-hover - applied to the dropdownlist in hovered state. - jqx-dropdownlist-state-selected - applied to the dropdownlist in selected state. - jqx-fill-state-pressed - applied to the dropdownlist in selected state. - jqx-dropdownlist-state-disabled - applied to the dropdownlist in disabled state. - jqx-fill-state-focus - applied to the dropdownlist when it is focused. - jqx-fill-state-disabled - applied to the dropdownlist when it is disabled. *jqxDropDownList internally use the jqxListBox widget. For additional information about styling jqxListBox, please take a look at the jqxListBox's Styling and Appearance help topic. When you create a custom style with colors and backgrounds for jqxDropDownList, you need to do the following: - Add the above CSS classes related to jqxDropDownList - After each CSS class, add your theme name. For example: jqx-dropdownlist-summer - To apply your custom style to jqxDropDownList, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue DropDownList API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxdropdownlist/vue-dropdownlist-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxdropdownlist.txt #### Properties - `autoOpen` (Type: Boolean, Default: false): Sets or gets whether the DropDown is automatically opened when the mouse cursor is moved over the widget. - `autoDropDownHeight` (Type: Boolean, Default: false): Sets or gets whether the height of the jqxDropDownList's ListBox displayed in the widget's DropDown is calculated as a sum of the items heights. - `animationType` (Type: String, Default: 'slide'): Sets or gets the type of the animation. - `checkboxes` (Type: Boolean, Default: false): Determines whether checkboxes will be displayed next to the list items. - `closeDelay` (Type: Number, Default: 400): Sets or gets the delay of the 'close' animation. - `disabled` (Type: Boolean, Default: false): Enables/disables the jqxDropDownList. - `displayMember` (Type: String, Default: ""): Sets or gets the displayMember of the Items. The displayMember specifies the name of an object property to display. The name is contained in the collection specified by the 'source' property. - `dropDownHorizontalAlignment` (Type: String, Default: 'left'): Sets or gets the DropDown's alignment. - `dropDownVerticalAlignment` (Type: String, Default: 'bottom'): Sets or gets the DropDown's alignment. - `dropDownHeight` (Type: Number, Default: 200): Sets or gets the height of the jqxDropDownList's ListBox displayed in the widget's DropDown. - `dropDownWidth` (Type: Number, Default: 200): Sets or gets the width of the jqxDropDownList's ListBox displayed in the widget's DropDown. - `enableSelection` (Type: Boolean, Default: true): Enables/disables the selection. - `enableBrowserBoundsDetection` (Type: Boolean, Default: false): Sets or gets whether the dropdown detects the browser window's bounds and automatically adjusts the dropdown's position. - `enableHover` (Type: Boolean, Default: true): Enables/disables the hover state. - `filterable` (Type: Boolean, Default: false): Determines whether the Filtering is enabled. - `filterHeight` (Type: Number, Default: 27): Determines the Filter's height. - `filterDelay` (Type: Number, Default: 100): Determines the Filter's delay. After 100 milliseconds, the widget automatically filters its data based on the filter input's value. To perform filter only on "Enter" key press, set this property to 0. - `filterPlaceHolder` (Type: String, Default: "Looking for"): Determines the Filter input's place holder. - `height` (Type: Number | String, Default: null): Sets or gets the jqxDropDownList's height. - `incrementalSearch` (Type: Boolean, Default: true): Sets or gets the incrementalSearch property. An incremental search begins searching as soon as you type the first character of the search string. - `incrementalSearchDelay` (Type: Number, Default: 700): Sets or gets the incrementalSearchDelay property. The incrementalSearchDelay specifies the time-interval in milliseconds after which the previous search string is deleted. The timer starts when you stop typing. - `itemHeight` (Type: Number, Default: -1): Sets or gets the height of the jqxDropDownList Items. When the itemHeight == - 1, each item's height is equal to its desired height. - `openDelay` (Type: Number, Default: 350): Sets or gets the delay of the 'open' animation. - `placeHolder` (Type: String, Default: "Please Choose:"): Text displayed when the selection is empty. - `popupZIndex` (Type: Number, Default: 20000): Sets or gets the popup's z-index. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `renderer` (Type: Function, Default: null): Callback function which is called when an item is rendered. By using the renderer function, you can customize the look of the list items. - `selectionRenderer` (Type: Function, Default: null): Callback function which is called when the selected item is rendered in the jqxDropDownList's content area. By using the selectionRenderer function, you can customize the look of the selected item. - `searchMode` (Type: String, Default: startswith): Sets or gets the item incremental search mode. When the user types some text in a focused DropDownList, the jqxListBox widget tries to find the searched item using the entered text and the selected search mode. - `source` (Type: Array | Object, Default: null): Sets or gets the items source. - `selectedIndex` (Type: Number, Default: -1): Sets or gets the selected index. - `scrollBarSize` (Type: Number, Default: 15): Sets or gets the scrollbar size. - `theme` (Type: String, Default: ''): Sets the widget's theme. Include the desired theme CSS file after 'jqx.base.css' file. - `template` (Type: String, Default: '') - `valueMember` (Type: String, Default: ""): Sets or gets the valueMember of the Items. The valueMember specifies the name of an object property to set as a 'value' of the list items. The name is contained in the collection specified by the 'source' property. - `width` (Type: Number | String, Default: null): Sets or gets the jqxDropDownList's width. #### Events - `bindingComplete` (Type: Event): This event is triggered when the data binding operation is completed. - `close` (Type: Event): This event is triggered when the popup ListBox is closed. - `checkChange` (Type: Event): This event is triggered when an item is checked/unchecked. - `change` (Type: Event): This event is triggered when the user selects an item. - `open` (Type: Event): This event is triggered when the popup ListBox is opened. - `select` (Type: Event): This event is triggered when the user selects an item. - `unselect` (Type: Event): This event is triggered when the user unselects an item. #### Methods - `addItem` (Arguments: item, Return Type: None): Adds a new item to the jqxDropDownList. Returns 'true', if the new item is added or 'false' if the item is not added. - `clearSelection` (Arguments: None, Return Type: None): Clears all selected items. - `clear` (Arguments: None, Return Type: None): Clears all items. - `close` (Arguments: None, Return Type: None): Hides the popup listbox. - `checkIndex` (Arguments: index, Return Type: None): Checks a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to check the first item, the 'checkIndex' method should be called with parameter 0. - `checkItem` (Arguments: item, Return Type: None): Checks an item. - `checkAll` (Arguments: None, Return Type: None): Checks all list items when the 'checkboxes' property value is true. - `clearFilter` (Arguments: None, Return Type: None): Clears the widget's filter when filtering is applied. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `disableItem` (Arguments: item, Return Type: None): Disables an item. Item is an object. - `disableAt` (Arguments: index, Return Type: None): Disables an item by index. Index is a number. - `enableItem` (Arguments: item, Return Type: None): Enables an item. Item is an object. - `enableAt` (Arguments: index, Return Type: None): Enables a disabled item by index. Index is a number. - `ensureVisible` (Arguments: index, Return Type: None): Ensures that an item is visible. index is number. When necessary, the jqxDropDownList scrolls to the item to make it visible. - `focus` (Arguments: None, Return Type: None): Sets the focus to the widget. - `getItem` (Arguments: index, Return Type: Object): Gets item by index. The returned value is an object with the following fields: - `getItemByValue` (Arguments: itemValue, Return Type: Object): Gets an item by its value. The returned value is an object with the following fields: - `getItems` (Arguments: None, Return Type: Array): Gets all items. The returned value is an array of Items. - `getCheckedItems` (Arguments: None, Return Type: Array): Gets the checked items. The returned value is an array of Items. - `getSelectedItem` (Arguments: None, Return Type: Object): Gets the selected item. The returned value is an object or null(if there is no selected item). - `getSelectedIndex` (Arguments: None, Return Type: Number): Gets the index of the selected item. The returned value is the index of the selected item. If there's no selected item, -1 is returned. - `insertAt` (Arguments: item, index, Return Type: None): Inserts a new item to the jqxDropDownList. Returns 'true', if the new item is inserted or false if the insertion fails. The first parameter is object or string - the new item. - `isOpened` (Arguments: None, Return Type: Boolean): Returns true, if the popup is opened. Otherwise returns false. - `indeterminateIndex` (Arguments: index, Return Type: None): indeterminates a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to indeterminate the first item, the 'indeterminateIndex' method should be called with parameter 0. - `indeterminateItem` (Arguments: item, Return Type: None): Indeterminates an item. - `loadFromSelect` (Arguments: arg, Return Type: None): Loads list items from a 'select' tag. - `open` (Arguments: None, Return Type: None): Shows the popup listbox. - `removeItem` (Arguments: item, Return Type: None): Removes an item from the listbox. Parameter type: object returned by the "getItem" method or string - the value of an item. Returns 'true', if the item is removed or 'false', if the item is not removed. - `removeAt` (Arguments: index, Return Type: None): Removes an item from the listbox. Parameter type: number - the index of the item. The method returns 'true', if the item is removed or 'false', if the item is not removed. - `selectIndex` (Arguments: index, Return Type: None): Selects an item by index. The index is zero-based, i.e to select the first item, the 'selectIndex' method should be called with parameter 0. - `selectItem` (Arguments: item, Return Type: None): Selects an item. - `setContent` (Arguments: content, Return Type: None): Sets the content of the DropDownList. - `updateItem` (Arguments: newItem, item, Return Type: None): Updates an item. The first parameter is the new item. The second parameter could be an existing item or the value of an existing item. - `updateAt` (Arguments: item, index, Return Type: None): Updates an item. The first parameter is the new item. The second parameter is the index of the item to be updated. - `unselectIndex` (Arguments: index, Return Type: None): Unselects item by index. The index is zero-based, i.e to unselect the first item, the 'unselectIndex' method should be called with parameter 0. - `unselectItem` (Arguments: item, Return Type: None): Unselects an item. - `uncheckIndex` (Arguments: index, Return Type: None): Unchecks a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to uncheck the first item, the 'uncheckIndex' method should be called with parameter 0. - `uncheckItem` (Arguments: item, Return Type: None): Unchecks an item. - `uncheckAll` (Arguments: None, Return Type: None): Unchecks all list items when the 'checkboxes' property value is true. - `val` (Arguments: value, Return Type: String): Gets the selected value. --- ### Getting started with the Vue Editor Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxeditor/vue-editor-getting-started.htm > Vue Editor getting started: install jQWidgets, add jqxEditor to your app, see a complete example, handle its events and call its methods. The Vue Editor represents a ready-for-use HTML text editor which can simplify web content creation or be a replacement of your HTML Text Areas. This guide adds the Vue Editor (`jqxEditor`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxeditor.vue` - **Demos:** [Vue Editor demos](https://www.jqwidgets.com/vue/vue-editor/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxeditor/vue-editor-api.htm) jqxEditor in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxeditor/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxEditor from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxeditor.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This is triggered when the jqxEditor's value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Editor API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxeditor/vue-editor-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxeditor/vue-editor-styling-and-appearance.htm): themes and CSS classes. - [Vue Editor demos](https://www.jqwidgets.com/vue/vue-editor/): live examples with their source code. --- ### Vue Editor Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxeditor/vue-editor-styling-and-appearance.htm > Style the Vue Editor: the jqxEditor CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxEditor. - jqx-editor - applied to the editor. - jqx-editor-inline - applied to the editor when it is in inline mode. - jqx-editor-inline-focus - applied to the editor when it is focused and in inline mode. - jqx-widget - applied to the editor. - jqx-widget-content - applied to the editor's content area. - jqx-editor-content - applied to the editor's content area. - jqx-rc-all - applied to the editor. Adds rounded corners to the widget. - jqx-widget-header - applied to the editor and its toolbar. - jqx-fill-state-disabled - applied to the editor when it is disabled. - jqx-editor-window - applied to the editor's dialog windows. - jqx-editor-toolbar - applied to the editor's toolbar. - jqx-editor-toolbar-inline - applied to the editor's toolbar when the editor is in inline mode. - jqx-editor-toolbar-icon - applied to the tool icons. - jqx-editor-toolbar-item - applied to the tools. - jqx-editor-toolbar-group - applied to the tool groups. - jqx-editor-toolbar-button - applied to the tool buttons. - jqx-editor-color-bar - applied to the color bar of a color picker tool. - jqx-editor-color-picker - applied to the color picker tool. - jqx-editor-color-picker-selected-cell - applied to the selected cell of a color picker. When you create a custom style with colors and backgrounds for jqxEditor, you need to do the following: - Add the above CSS classes related to jqxEditor - After each CSS class, add your theme name. For example: jqx-editor-arctic - To apply your custom style to jqxEditor, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Editor API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxeditor/vue-editor-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxeditor.txt #### Properties - `createCommand` (Type: Function, Default: null): Sets or gets the jqxEditor's createCommand property. The property allows you to add new commands or override existing commands. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the jqxEditor is disabled. - `editable` (Type: Boolean, Default: true): Sets or gets the jqxEditor's editable property. The property determines whether the jqxEditor is read only. - `height` (Type: String | Number, Default: null): Sets or gets the jqxEditor's height. - `lineBreak` (Type: String, Default: "default"): Sets or gets the jqxEditor's line break. The property determines whether the jqxEditor creates `BR`, `P` or `DIV` tag when the `Enter` key is pressed or uses the web browser's default mode. - `localization` (Type: Object, Default: { "bold": "Bold", "italic": "Italic", "underline": "Underline", "format": "Format Block", "font": "Font Name", "size": "Font Size", "color": "Text Color", "background": "Fill Color", "left": "Align Left", "center": "Align Center", "right": "Align Right", "outdent": "Indent Less", "indent": "Indent More", "ul": "Insert unordered list", "ol": "Insert ordered list", "image": "Insert image", "link": "Insert link", "html": "View source", "clean": "Remove Formatting" }): Sets or gets the jqxEditor's localization. The property determines the localization of the jqxEditor. - `pasteMode` (Type: String, Default: "html"): Sets or gets the jqxEditor's paste mode. The property determines whether the clipboard data is pasted as HTML or Plain Text. Possible values: "html" and "text". - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `stylesheets` (Type: Array, Default: []): Sets or gets the jqxEditor's stylesheets. The property allows you to include stylesheets into the jqxEditor's IFrame. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `toolbarPosition` (Type: String, Default: "top"): Sets or gets the jqxEditor's toolbar position. The property determines the position of the jqxEditor's toolbar. - `tools` (Type: String, Default: "bold italic underline | format font size | color background | left center right | outdent indent | ul ol | image | link | clean | html"): Sets or gets the jqxEditor's tools. The property determines the visibility and layout of the jqxEditor's tools. - `width` (Type: Number | String, Default: null): Sets or gets the jqxEditor's width. #### Events - `change` (Type: Event): This is triggered when the jqxEditor's value is changed. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `print` (Arguments: None, Return Type: None): Prints the jqxEditor's value. - `setMode` (Arguments: mode, Return Type: None): Sets the jqxEditor's mode. The method has one boolean parameter which determines whether the jqxEditor displays its value as formatted html or html code. - `val` (Arguments: value, Return Type: String): Sets or gets the value. --- ### Getting started with the Vue Expander Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxexpander/vue-expander-getting-started.htm > Vue Expander getting started: install jQWidgets, add jqxExpander to your app, see a complete example, handle its events and call its methods. The Vue Expander is a collapsible panel with a header and content. This guide adds the Vue Expander (`jqxExpander`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxexpander.vue` - **Demos:** [Vue Expander demos](https://www.jqwidgets.com/vue/vue-expander/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxexpander/vue-expander-api.htm) jqxExpander in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxexpander/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxExpander from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxexpander.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `collapsing`: This event is triggered when the jqxExpander is going to be collapsed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `expand`: Method used for expanding the expander's content. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Expander API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxexpander/vue-expander-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxexpander/vue-expander-styling-and-appearance.htm): themes and CSS classes. - [Vue Expander demos](https://www.jqwidgets.com/vue/vue-expander/): live examples with their source code. --- ### Vue Expander Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxexpander/vue-expander-styling-and-appearance.htm > Style the Vue Expander: the jqxExpander CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxExpander. - jqx-widget - applied to the jqxExpander widget. - jqx-expander - applied to the jqxExpander. - jqx-expander-header - applied to the expander's header. - jqx-widget-header - applied to the header elements. - jqx-fill-state-normal - applied to the header element. - jqx-expander-content - applied to the content element. - jqx-widget-content - applied to the content element. - jqx-expander-arrow - applied to the header's expand/collapse button. - jqx-expander-arrow-top - applied to the expander's expand/collapse button and displays arrow icon. - jqx-expander-arrow-bottom - applied to the expander's expand/collapse button and displays arrow icon. - jqx-expander-header-hover - applied to a hovered header element. - jqx-fill-state-hover - applied to a hovered header element. - jqx-fill-state-pressed - applied to an expanded header element. - jqx-fill-state-focus - applied to focused Content or Header element. - jqx-fill-state-disabled - applied to the jqxExpander when it is disabled. When you create a custom style with colors and backgrounds for jqxExpander, you need to do the following: - Add the above CSS classes related to jqxExpander - After each CSS class, add your theme name. For example: jqx-expander-summer - To apply your custom style to jqxExpander, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Expander API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxexpander/vue-expander-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxexpander.txt #### Properties - `animationType` (Type: String, Default: 'slide'): Sets or gets the animation type. - `arrowPosition` (Type: String, Default: 'right'): Sets or gets header's arrow position. - `collapseAnimationDuration` (Type: Number, Default: 400): Sets or gets the collapsing animation duration. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the expander is disabled. - `expanded` (Type: Boolean, Default: true): Sets or gets expander's state (collapsed or expanded). - `expandAnimationDuration` (Type: Number, Default: 400): Sets or gets the expanding animation duration. - `height` (Type: Number | String, Default: 'auto'): Sets or gets expander's height. Possible values - 'auto' or string like this 'Npx' where N is any number or a numeric value in pixels. - `headerPosition` (Type: String, Default: 'top'): Sets or gets header's position. - `initContent` (Type: Function, Default: null): Callback function called when the item's content needs to be initialized. Useful for initializing other widgets within the content of jqxExpander. - `rtl` (Type: Boolean, Default: false): Determines whether the right-to-left support is enabled. - `showArrow` (Type: Boolean, Default: true): Sets or gets whether header's arrow is going to be shown. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `toggleMode` (Type: String, Default: 'click'): Sets or gets user interaction used for expanding or collapsing the content. - `width` (Type: Number | String, Default: 'auto'): Sets or gets expander's width.Possible values - 'auto' or string like this 'Npx' where N is any number or a numeric value in pixels. #### Events - `collapsing` (Type: Event): This event is triggered when the jqxExpander is going to be collapsed. - `collapsed` (Type: Event): This event is triggered when the jqxExpander is collapsed. - `expanding` (Type: Event): This event is triggered when the jqxExpander is going to be expanded. - `expanded` (Type: Event): This event is triggered when the jqxExpander is expanded. #### Methods - `collapse` (Arguments: None, Return Type: None): Method which is collapsing the expander. - `disable` (Arguments: None, Return Type: None): This method is disabling the expander. - `destroy` (Arguments: None, Return Type: None): This method destroys the expander. - `enable` (Arguments: None, Return Type: None): This method is enabling the expander. - `expand` (Arguments: None, Return Type: None): Method used for expanding the expander's content. - `focus` (Arguments: None, Return Type: None): This method focuses on the expander. When the widget is focused, keyboard navigation can be used. Here is a list of the keys, supported by jqxExpander and their function: - `getContent` (Arguments: None, Return Type: String): Getting expander's content. Returns a string with the content's HTML. - `getHeaderContent` (Arguments: None, Return Type: String): Getting expander's header content. Returns a string with the header's HTML. - `invalidate` (Arguments: None, Return Type: None): This method refreshes the expander. - `refresh` (Arguments: None, Return Type: None): This method refreshes the expander. - `render` (Arguments: None, Return Type: None): This method renders the expander. - `setHeaderContent` (Arguments: headerContent, Return Type: None): This method is setting specific content to the expander's header. - `setContent` (Arguments: content, Return Type: None): This method is setting specific content to the expander. --- ### Getting started with the Vue FileUpload Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxfileupload/vue-fileupload-getting-started.htm > Vue FileUpload getting started: install jQWidgets, add jqxFileUpload to your app, see a complete example, handle its events and call its methods. The Vue FileUpload enables users to select files and upload them to a server. This guide adds the Vue FileUpload (`jqxFileUpload`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxfileupload.vue` - **Demos:** [Vue FileUpload demos](https://www.jqwidgets.com/vue/vue-fileupload/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxfileupload/vue-fileupload-api.htm) jqxFileUpload in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxfileupload/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxFileUpload from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxfileupload.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `select`: This event is triggered when a file has been selected. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Refreshes the widget. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [FileUpload API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxfileupload/vue-fileupload-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxfileupload/vue-fileupload-styling-and-appearance.htm): themes and CSS classes. - [Vue FileUpload demos](https://www.jqwidgets.com/vue/vue-fileupload/): live examples with their source code. --- ### Vue FileUpload Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxfileupload/vue-fileupload-styling-and-appearance.htm > Style the Vue FileUpload: the jqxFileUpload CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxFileUpload. - jqx-file-upload - applied to the file upload. - jqx-widget - applied to the file upload. - jqx-widget-content - applied to the file upload. - jqx-rc-all - applied to the file upload. Adds rounded corners to the widget. - jqx-fill-state-disabled - applied to the file upload when it is disabled. - jqx-file-upload-button-browse - applied to the "Browse" button. - jqx-file-upload-button-upload - applied to the "Upload All" button. - jqx-file-upload-button-cancel - applied to the "Cancel All" button. - jqx-file-upload-file-row - applied to the "row" containing the selected file's name and the "Upload File" and "Cancel" buttons. - jqx-file-upload-file-name - applied to the file name container. - jqx-file-upload-file-upload - applied to the "Upload File" button. - jqx-icon-arrow-up - applied to the icon of the "Upload File" button. - jqx-file-upload-file-cancel - applied to the "Cancel" button. - jqx-icon-close - applied to the icon of the "Cancel" button. - jqx-file-upload-loading-element - applied to each file row's loading element (animated image). When you create a custom style with colors and backgrounds for jqxFileUpload, you need to do the following: - Add the above CSS classes related to jqxFileUpload. - After each CSS class, add your theme name. For example: jqx-file-upload-summer - To apply your custom style to jqxFileUpload, you need to set its 'theme' property (option) to point to your theme name string. You can also apply templates to the buttons "Browse", "Upload All" and "Cancel All" by setting the properties 'browseTemplate', 'uploadTemplate' and 'cancelTemplate' respectively. The available templates are 'primary', 'info', 'success', 'warning', 'danger', 'inverse', 'link' and 'default' (no template). --- ### Vue FileUpload API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxfileupload/vue-fileupload-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxfileupload.txt #### Properties - `autoUpload` (Type: Boolean, Default: false): Sets or gets whether files will be automatically uploaded when selected. - `accept` (Type: String, Default: null): Sets or gets the file types that can be submitted to the server through jqxFileUpload. - `browseTemplate` (Type: String, Default: ''): Sets or gets the template applied to the 'Browse' button. - `cancelTemplate` (Type: String, Default: ''): Sets or gets the template applied to the 'Cancel All' button. - `disabled` (Type: Boolean, Default: false): Enables or disables the jqxFileUpload. - `fileInputName` (Type: String, Default: ''): Sets or gets the `name` attribute of the hidden file input which is submitted to the URL specified by the `uploadUrl` property. - `height` (Type: Number | String, Default: 'auto'): Sets or gets the jqxFileUpload's height. - `localization` (Type: Object, Default: null): Sets the various text values used in the widget. Useful for localization. - `multipleFilesUpload` (Type: Boolean, Default: true): Sets or gets whether multiple files selection and upload are allowed. - `renderFiles` (Type: Function, Default: null): A callback function used for rendering the file selection rows. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `uploadUrl` (Type: String, Default: ''): Sets or gets the upload URL. This property corresponds to the upload form's `action` attribute. For example, the uploadUrl property can point to a PHP file, which to handle the upload operation server-side. - `uploadTemplate` (Type: String, Default: ''): Sets or gets the template applied to the 'Upload All' button. - `width` (Type: Number | String, Default: null): Sets or gets the jqxFileUpload's width. #### Events - `remove` (Type: Event): This event is triggered when a file row has been removed. - `select` (Type: Event): This event is triggered when a file has been selected. - `uploadStart` (Type: Event): This event is triggered when a file upload operation has started. - `uploadEnd` (Type: Event): This event is triggered when a file upload operation has ended. #### Methods - `browse` (Arguments: None, Return Type: None): Browses for a file. - `cancelFile` (Arguments: fileIndex, Return Type: None): Cancels a selected file. - `cancelAll` (Arguments: None, Return Type: None): Cancels all selected files. - `destroy` (Arguments: None, Return Type: None): Destroys the jqxFileUpload. - `render` (Arguments: None, Return Type: None): Renders the widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. - `uploadFile` (Arguments: fileIndex, Return Type: None): Uploads a selected file. - `uploadAll` (Arguments: None, Return Type: None): Uploads all selected files. --- ### Getting started with the Vue FormattedInput Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxformattedinput/vue-formattedinput-getting-started.htm > Vue FormattedInput getting started: install jQWidgets, add jqxFormattedInput to your app, see a complete example, handle its events and call its methods. The Vue FormattedInput enables users to format numbers in various numeric formats. This guide adds the Vue FormattedInput (`jqxFormattedInput`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue` - **Demos:** [Vue FormattedInput demos](https://www.jqwidgets.com/vue/vue-formattedinput/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxformattedinput/vue-formattedinput-api.htm) jqxFormattedInput in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxformattedinput/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [FormattedInput API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxformattedinput/vue-formattedinput-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxformattedinput/vue-formattedinput-styling-and-appearance.htm): themes and CSS classes. - [Vue FormattedInput demos](https://www.jqwidgets.com/vue/vue-formattedinput/): live examples with their source code. --- ### Vue FormattedInput Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxformattedinput/vue-formattedinput-styling-and-appearance.htm > Style the Vue FormattedInput: the jqxFormattedInput CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxFormattedInput. - jqx-formatted-input - applied to the formatted input. - jqx-input - applied to the formatted input. - jqx-widget - applied to the formatted input and its pop-up. - jqx-widget-content - applied to the formatted input and its pop-up. - jqx-rc-all - applied to the formatted input (if the spin buttons and pop-up are disabled) or to the pop-up items. Adds rounded corners to the widget. - jqx-input-disabled - applied to the formatted input when it is disabled. - jqx-fill-state-disabled - applied to the formatted input when it is disabled. - jqx-formatted-input-spin-buttons-container - applied to the spin buttons container div. - jqx-formatted-input-spin-button - applied to the spin buttons. - jqx-formatted-input-addon - applied to the pop-up menu button div. - jqx-fill-state-normal - applied to the spin buttons container, spin buttons and pop-up menu button. - jqx-popup - applied to the formatted input's pop-up. - jqx-input-popup - applied to the formatted input's pop-up. - jqx-menu - applied to the formatted input's popup. - jqx-menu-vertical - applied to the formatted input's pop-up. - jqx-menu-dropdown - applied to the formatted input's pop-up. - jqx-menu-item - applied to the formatted input's pop-up items. - jqx-item - applied to the formatted input's pop-up items. - jqx-formatted-input-item - applied to the formatted input's pop-up items. - jqx-fill-state-pressed - applied to the selected item in the formatted input's pop-up. When you create a custom style with colors and backgrounds for jqxFormattedInput, you need to do the following: - Add the above CSS classes related to jqxFormattedInput - After each CSS class, add your theme name. For example: jqx-formatted-input-summer - To apply your custom style to jqxFormattedInput, you need to set its 'theme' property (option) to point to your theme name string: --- ### Vue FormattedInput API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxformattedinput/vue-formattedinput-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxformattedinput.txt #### Properties - `disabled` (Type: Boolean, Default: false): Enables or disables the jqxFormattedInput. - `decimalNotation` (Type: String, Default: "default"): Sets or gets the notation in which to display decimal numbers. - `dropDown` (Type: Boolean, Default: false): Sets or gets whether the jqxFormattedInput's dropdown (pop-up) will be enabled. The dropdown allows the user to choose the radix (numeral system) of the displayed number. - `dropDownWidth` (Type: Number, Default: null): Sets or gets the width of the jqxFormattedInput's dropdown (pop-up). - `height` (Type: Number | String, Default: null): Sets or gets the jqxFormattedInput's height. - `min` (Type: Number | String, Default: '-9223372036854775808'): Sets or gets the minimum value of the widget. The value of min should be in the same numeral system as `value`. The min property can be set to no less than '-9223372036854775808' (-2 63) in decimal. - `max` (Type: Number | String, Default: '9223372036854775807'): Sets or gets the maximum value of the widget. The value of max should be in the same numeral system as `value`. The max property can be set to no more than '9223372036854775807' (2 63 - 1) in decimal. - `placeHolder` (Type: String, Default: ''): Sets or gets the jqxFormattedInput's placeholder. - `popupZIndex` (Type: Number, Default: 20000): Sets or gets the pop-up's z-index. - `roundedCorners` (Type: Boolean, Default: true): Enables or disables the rounded corners functionality. This property setting has effect in browsers which support CSS border-radius. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `radix` (Type: Number | String, Default: 10): Sets or gets the radix of the jqxFormattedInput. The radix specifies the numeral system in which to display the widget's value. - `spinButtons` (Type: Boolean, Default: true): Shows or hides the spin buttons. - `spinButtonsStep` (Type: Number, Default: 1): Sets or gets the increase/decrease step. The value of `spinButtonsStep` is a decimal number. - `template` (Type: String, Default: 'default'): Determines the template as an alternative of the default styles. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `upperCase` (Type: Boolean, Default: false): Sets or gets whether to use upper case when the `radix` property is set to 16 or 'hexadecimal'. - `value` (Type: Number | String, Default: '0'): Sets or gets the value of the jqxFormattedInput widget. The value is in the numeral system specified by the `radix` property. - `width` (Type: Number | String, Default: null): Sets or gets the jqxFormattedInput's width. #### Events - `change` (Type: Event): This event is triggered when the value is changed. - `close` (Type: Event): This event is triggered when the pop-up is closed. - `open` (Type: Event): This event is triggered when the pop-up is opened. - `radixChange` (Type: Event): This event is triggered when the radix is changed. #### Methods - `close` (Arguments: None, Return Type: None): Closes the jqxFormattedInput pop-up. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `open` (Arguments: None, Return Type: None): Opens the jqxFormattedInput pop-up. - `render` (Arguments: None, Return Type: None): Renders the widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. - `selectAll` (Arguments: None, Return Type: None): Selects the text in the input field. - `selectFirst` (Arguments: None, Return Type: None): Positions the caret in the beginning of the number in the input. - `selectLast` (Arguments: None, Return Type: None): Positions the caret at the end of the number in the input. - `val` (Arguments: value, Return Type: String): Sets or gets the value. --- ### Getting started with the Vue Gauge Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgauge/vue-gauge-getting-started.htm > Vue Gauge getting started: install jQWidgets, add jqxGauge to your app, see a complete example, handle its events and call its methods. The Vue Gauge displays an indicator within a range of values. This guide adds the Vue Gauge (`jqxGauge`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxgauge.vue` - **Demos:** [Vue Gauge demos](https://www.jqwidgets.com/vue/vue-gauge/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgauge/vue-gauge-api.htm) jqxGauge in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgauge/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxgauge.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `valueChanged`: The event is is triggered when the gauge's value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Gauge API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgauge/vue-gauge-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgauge/vue-gauge-styling-and-appearance.htm): themes and CSS classes. - [Vue Gauge demos](https://www.jqwidgets.com/vue/vue-gauge/): live examples with their source code. --- ### jqxGauge Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgauge/vue-gauge-styling-and-appearance.htm > Style the Vue Gauge: the jqxGauge CSS classes, the theme stylesheets it uses and how to change its appearance. To set the jqxGauge's size, you need to use the 'width', 'height' and 'radius' properties. These properties accept percentage, number or pixel values. ```javascript { width: '20%', height: '30%', radius: '50%'}} ``` The 'colorScheme' property allows you to change the jqxGauge's appearance. The possible values are from "scheme01", "scheme02" to "scheme11". #### Ticks and labels To put the jqxGauge's labels at the inner side of the tick marks, you need to set the 'position' property of the labels object. ```javascript { labels: { position: 'inside' }} ``` ```javascript { labels: { position: 'outside' }} ``` To change the position of the start and end scales, use the startAngle and endAngle properties. The default values are 30 and 270. If the labels 'position' property is set to 'none', you can manually position the labels by setting a value to the 'distance' property. First set labels position property to 'none': ```javascript { labels: { position: 'none' }} ``` The code example below sets the labels distance to be 5px from the gauge's bounds use the following code: ```javascript { labels: { distance: '5px' }} ``` The ticksDistance property specifies the distance of the tick marks from the gauge's bounds. ```javascript { ticksDistance: '15px' } ``` The labels CSS style is defined in the.jqx-gauge-label class which is part of the jqx.base.css. #### Ranges and Caption In order to display ranges in the jqxGauge, you need to set the 'ranges' property to an Array of ranges. Each range has startValue, endValue and specific style. ```javascript var ranges = [{ startValue: 0, endValue: 55, style: { fill: '#C9C9C9', stroke: '#C9C9C9' }, endWidth: 5, startWidth: 1, startDistance: 10, endDistance: 10 }, { startValue: 55, endValue: 110, style: { fill: '#FCF06A', stroke: '#FCF06A' }, endWidth: 10, startWidth: 5, startDistance: 10, endDistance: 10 }, { startValue: 110, endValue: 165, style: { fill: '#FCA76A', stroke: '#FCA76A' }, endWidth: 15, startWidth: 10, startDistance: 10, endDistance: 10 }, { startValue: 165, endValue: 220, style: { fill: '#FC6A6A', stroke: '#FC6A6A' }, endWidth: 20, startWidth: 15, startDistance: 10, endDistance: 10 }]; ``` The 'startWidth' and 'endWidth' properties of the ranges specify its size when the range begins and ends. To hide the ranges, set the showRanges property to false. To display a caption in the jqxGauge, you need to set the 'caption' property. ```javascript { caption: { value: 'jQWidgets', position: 'bottom', offset: [0, 10], visible: true }} ``` You can set value (text of the caption), position ('top', 'bottom', 'left' or 'right'), offset from the base position (array, the first element is the left offset the second one is the top offset) and the caption's visibility. The '.jqx-gauge-caption' CSS class is applied to the jqxGauge's caption. #### Cap and pointer The cap is the small circle displayed over the base of the pointer. ```javascript { cap: { size: '5%', style: { fill: '#ff0000', stroke: '#00ff00' } , visible: true }} ``` You can set its size, style and visibility. ```javascript { pointer: { pointerType: 'default', style: { fill: '#ff0000', stroke: '#ff0000' }, length: '80%', width: '3%', visible: true }}} ``` #### jqxGauge's body, border and animation To change the jqxGauge's border, you need to set its 'border' property. The 'border' property is an object with several members - 'style', 'visible', 'showGradient' and 'size'. The code example below defines a border with size equal to 11% of the Gauge's size. The stroke color is: "#898989". ```javascript { border: { showGradient: true, size: '11%', style: { stroke: '#898989'}, visible: true }}> ``` When the border's 'showGradient' property is true, the background will be with gradient. If you want to use solid color for the border set the 'showGradient' to false. To change the background color or the stroke of your jqxGauge, use its 'style' property. ```javascript { style: { fill: '#cccccc', stroke: '#cccccc' } } ``` The duration of the value changing animation is specified by the 'animationDuration' property. The 'easing' property specifies the easing of the value changing animation. Possible values are: 'linear', 'easeOutBack', 'easeInQuad', 'easeInOutCirc', 'easeInOutSine'. #### Working with jqxLinearGauge To create a Linear Gauge with size set in percentages, use can use the following: ```javascript { width: '20%', height: '30%' }; ``` To change jqxLinearGauge's color scheme, use the 'colorScheme' property which accepts values from "scheme01", "scheme02" to "scheme11" ##### Ticks and labels To customize the ticks displayed in the Linear Gauge, you can use the 'ticksMajor' and 'ticksMinor' properties. ```javascript var ticksMajor = { size: '10%', interval: 5, style: { stroke: '#A1A1A1', 'stroke-width': 1 }, visible: true } ``` In the code above, we set the tick's size, frequency, style and visibility. Tick's size can be set in percentage or pixels. If you want to change ticks appearance, you can use the 'style' property and set its 'stroke' and ''stroke-width' members. For example: ```javascript { ticksMajor: { style: { stroke: '#000000', 'stroke-width': 2 } } } ``` Ticks position is specified by the 'ticksPosition' property. The possible values are: 'far', 'near', 'both'. For example, If you set the 'ticksPosition' to 'far', ticks will be displayed on the right side of the value indicator. ```javascript { ticksPosition: 'near' } ``` To manually specify the ticks offset, use the 'ticksOffset' property. It is number and it sets the offset from the center of the gauge. Customization of the labels could be achieved using the labels property. Here is it's default value: ```javascript var labels = { position: 'both', interval: 20, offset: 0, visible: true, formatValue: function (value, position) { return value; }}; ``` The position property accepts the following values: 'far', 'near', 'both'. If it's 'near' labels will be visible in the left side of the scale. If it's value is 'far' labels will be visible in the right side of the scale. If the position property is with value 'both' labels will be visible in both sides of the scale. Similar to this property is ticksPosition used for the ticks. Let's consider the formatValue property. The formatValue is a callback function used for formatting the value of a single label. This function accepts two arguments - value and position. Value is the current label value. Position could be 'both', 'far' or 'near' depending on the value of the position property and the current iteration in the labels rendering. ##### Use jqxLinearGauge ranges A single range is a colored area with specific size. To set jqxLinearGauge's ranges you can use the 'ranges' property. Here is a sample value for the ranges property: ```javascript var ranges = [{ startValue: 20, endValue: 45, style: { fill: '#FFA200', stroke: '#FFA200' } }, { startValue: 45, endValue: 70, style: { fill: '#FF4800', stroke: '#FF4800' } }]; ``` The style of a single range can be change by changing the value of it's style property. You can set jqxLinearGauge's ranges by the following code: ```javascript { ranges: [{ startValue: 20, endValue: 45, style: { fill: '#FFA200', stroke: '#FFA200'} }, { startValue: 45, endValue: 70, style: { fill: '#FF4800', stroke: '#FF4800' } }] }); ``` The startValue and endValue are indicating the end and the start of the range. ##### Pointer The default value of the pointer of jqxLinearGauge is: ```javascript var pointer = { pointerType: 'default', style: { fill: 'theme-specific-color', stroke: 'theme-specific-color' }, size: '7%', visible: true, offset: 0 }; ``` The pointer of the gauge have two different shapes. The first one is a column and the second one is an arrow. They could be switched using the pointerType property. For column pointer set the pointerType to 'default' for arrow set it to 'arrow'. The code bellow will set the pointer type to arrow: ```javascript { pointer: { pointerType: 'arrow' } ``` The size of the pointer is setting through the size property which could be in percentage or in pixels. Pointer's style (fill and stroke color for example) could be set via the style property. It's default value is based on the colorScheme. ##### Background and Animation The 'background' property specifies the Linear Gauge's background fill, stroke and shape. It's default value is: ```javascript { showGradient: true, borderRadius: 15, style: { stroke: '#cccccc', fill: 'default-gradient'}, visible: true, backgroundType: 'roundedRectangle'} ``` Let's take a look at the different properties. Background's fill and stroke could be set using the style property. It's default style is gradient colored in '#cccccc'. The gradient could be disabled using the showGradient property. By setting it to false a solid color will be used. There are two built-in shapes for the background - rectangle and roundedRectangle. These different backgrounds could be switched using the backgroundType property. Let's see it's value for 'rectangle': ```javascript { style: { stroke: '#cccccc', fill: '#cccccc' }, backgroundType: 'rectangle' }); ``` The upper code will change the background style to rectangle with stroke and background color '#cccccc'. If you set the backgroundType property to 'roundedRectangle' you could set it's border radius using the borderRadius property. You can hide jqxLinearGauge's background setting the visible property to false: ```javascript { visible: false }; ``` The duration of the value changing animation is specified by the 'animationDuration' property. The 'easing' property specifies the easing of the value changing animation. Possible values are: 'linear', 'easeOutBack', 'easeInQuad', 'easeInOutCirc', 'easeInOutSine'. --- ### Vue Gauge API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgauge/vue-gauge-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxgauge.txt #### Properties - `animationDuration` (Type: Number, Default: 400): Sets or gets jqxGauge's animation duration [ms]. - `border` (Type: Object, Default: { size: '10%', style: { stroke: '#cccccc'}, visible: true, showGradient: true }): Sets or gets the gauge's properties for it's border. - `caption` (Type: Object, Default: { value: '', position: 'bottom', offset: [0, 0], visible: true }): Sets or gets the gauge's properties for it's caption. - `cap` (Type: String | Object, Default: { size: '4%', style: { fill: 'theme-specific-color', stroke: 'theme-specific-color' } , visible: true }): Sets or gets the gauge's properties for it's cap. - `colorScheme` (Type: String, Default: 'scheme01'): Sets the gauge's color palette. jqxGauge supports 11 color schemes from 'scheme01' to 'scheme11'. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the jqxGauge is disabled. - `easing` (Type: String, Default: linear): Sets or gets jqxGauge's animation easing. - `endAngle` (Type: Number, Default: 270): Sets or gets gauge's endAngle. This property specifies the end of the gauge's scale and is measured in degrees. - `height` (Type: Number | String, Default: 350): Sets or gets the gauge's height. This property accepts size in pixels and percentage. - `int64` (Type: Boolean, Default: false): Enables the jqxGauge 64-bit number support. - `labels` (Type: Object, Default: { distance: '38%', position: 'none', interval: 20, offset: [0, -10], visible: true, formatValue: function (value) { return value; }}): Sets or gets the gauge's properties for it's labels. - `min` (Type: Number, Default: 0): Sets or gets gauge's minimum value. - `max` (Type: Number, Default: 220): Sets or gets jqxGauge's max value. - `pointer` (Type: Object, Default: { pointerType: 'default', style: { fill: 'theme-specific-color', stroke: 'theme-specific-color' }, length: '70%', width: '2%', visible: true }): Sets or gets the gauge's properties for it's pointer. - `radius` (Type: Number, Default: '50%'): Sets or gets gauge's radius. This property accepts size in pixels and percentage. - `ranges` (Type: Array, Default: []): This property is array of objects. Each object is different range. The range is colored area with specified size. - `startAngle` (Type: Number, Default: 30): Sets or gets gauge's startAngle. This property specifies the beginning of the gauge's scale and is measured in degrees. - `showRanges` (Type: Boolean, Default: true): This property indicates whether the gauge's ranges will be visible. - `styles` (Type: Object, Default: { fill: '#ffffff', stroke: '#ffffff' }): Sets or gets the gauge's style. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `ticksMajor` (Type: Object, Default: { size: '10%', interval: 5, style: { stroke: '#898989'}, visible: true }): Sets or gets the gauge's properties for it's major ticks. - `ticksMinor` (Type: Object, Default: { size: '10%', interval: 5, style: { stroke: '#898989'}, visible: true }): Sets or gets the gauge's properties for it's minor ticks. - `ticksDistance` (Type: String, Default: '20%"): Sets and gets the ticks position. This property can be specified using percents (between '0%' and '100%') or using pixels. - `value` (Type: Number, Default: 0): Sets or gets gauge's value. - `width` (Type: Number | String, Default: 350): Sets or gets the gauge's width. This property accepts size in pixels and percentage. #### Events - `valueChanging` (Type: Event): The event is is triggered when the gauge's value is changing. - `valueChanged` (Type: Event): The event is is triggered when the gauge's value is changed. #### Methods - `disable` (Arguments: None, Return Type: None): This method disables the gauge. - `enable` (Arguments: None, Return Type: None): This method enables the gauge. - `val` (Arguments: value, Return Type: Number): Sets or gets the value. --- ### Getting started with the Vue Grid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-getting-started.htm > Vue Grid getting started: install jQWidgets, add jqxGrid to your app, see a complete example, handle its events and call its methods. The Vue Grid enables users to display tabular data. This guide adds the Vue Grid (`jqxGrid`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxgrid.vue` - **Demos:** [Vue Grid demos](https://www.jqwidgets.com/vue/vue-grid/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm) jqxGrid in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxGrid from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxgrid.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `rowselect`: This event is triggered when a row is selected. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `getselectedrowindex`: Gets the bound index of the selected row. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Grid API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-styling-and-appearance.htm): themes and CSS classes. - [Vue Grid demos](https://www.jqwidgets.com/vue/vue-grid/): live examples with their source code. --- ### Grid Data Sources Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-datasources.htm > JqxGrid can be bound to multiple types of data collections including arrays, xml, json, tsv, csv or remote data. JqxGrid can be bound to multiple types of data collections including arrays, xml, json, tsv, csv or remote data. To data bind the Grid to a data source you need to set its source property to point to an instance of jqxDataAdapter. The source object represents a set of key/value pairs. - url: A string containing the URL to which the request is sent. - data: Data to be sent to the server. - localdata: data array or data string pointing to a local data source. - datatype: the data's type. Possible values: 'xml', 'json', 'jsonp', 'tsv', 'csv', 'local', 'array', 'observablearray'. - type: The type of request to make ("POST" or "GET"), default is "GET". - id: A string containing the Id data field. - root: A string describing where the data begins and all other loops begin from this element. - record: A string describing the information for a particular record. - datafields: An array describing the fields in a particular record. Each datafield must define the following members: - name - A string containing the data field's name. - type - A string containing the data field's type. Possible values: 'string', 'date', 'number', 'float', 'int', 'bool'. - format(optional) - Sets the data formatting. By setting the format, the jqxDataAdapter plug-in will try to format the data before loading it. Example: { name: 'SubmitDate', type: 'date', format: "yyyy-MM-ddTHH:mm:ss-HH:mm" } - map(optional) - A mapping to the data field. - values - determines the foreign collection associated to the data field. - pagenum - determines the initial page number when paging is enabled. - pagesize - determines the page size when paging is enabled. - pager - callback function called when the current page or page size is changed. ```javascript pager: function (pagenum, pagesize, oldpagenum) { } ``` - sortcolumn - determines the initial sort column. The expected value is a data field name. - sortdirection - determines the sort order. The expected value is 'asc' for (A to Z) sorting or 'desc' for (Z to A) sorting. - sort - callback function called when the sort column or sort order is changed. ```javascript sort: function (column, direction) { } ``` - filter - callback function called when a filter is applied or removed. ```javascript filter: function (filters, recordsArray) { } ``` - addrow - callback function, called when a new row is/are added. If multiple rows are added, the rowid and rowdata parameters are arrays of row ids and rows. ```javascript addrow: function (rowid, rowdata, position, commit) { // synchronize with the server - send insert command // call commit with parameter true if the synchronization with the server is successful //and with parameter false if the synchronization failed. commit(true); } ``` - deleterow - callback function, called when a row is deleted. If multiple rows are deleted, the rowid parameter is an array of row ids. ```javascript deleterow: function (rowid, commit) { // synchronize with the server - send delete command // call commit with parameter true if the synchronization with the server is successful //and with parameter false if the synchronization failed. commit(true); } ``` - updaterow - callback function, called when a row is updated. If multiple rows are added, the rowid and rowdata parameters are arrays of row ids and rows. ```javascript updaterow: function (rowid, newdata, commit) { // synchronize with the server - send update command // call commit with parameter true if the synchronization with the server is successful // and with parameter false if the synchronization failed. commit(true); } ``` - processdata - extend the default data object sent to the server. ```javascript let source = { datatype: "jsonp", datafields: [ { name: 'countryName' }, { name: 'name' }, { name: 'population', type: 'float' }, { name: 'continentCode' } ], url: "http://ws.geonames.org/searchJSON", processdata: function (data) { data.featureClass = "P"; data.style = "full"; data.maxRows = 50; } }; ``` - formatdata - Before the data is sent to the server, you can fully override it by using the 'formatdata' function of the source object. The result that the 'formatdata' function returns is actually what will be sent to the server. ```javascript let source = { datatype: "jsonp", datafields: [ { name: 'countryName' }, { name: 'name' }, { name: 'population', type: 'float' }, { name: 'continentCode' } ], url: "http://ws.geonames.org/searchJSON", data: { featureClass: "P", style: "full", maxRows: 50 }, formatdata: function (data) { return "my data"; } }; ``` - contenttype: Use this option, If you want to explicitly pass in a content-type. Default is "application/x-www-form-urlencoded". The example code below illustrates how to create jqxDataAdapter from a source object: ```javascript dataAdapter: new jqx.dataAdapter(this.source, { loadComplete: function (data) { // data is loaded. }, loadError: function (xhr, status, error) { // data is not loaded. } }) ``` If you bind the Grid to remote data source using asynchronous requests(that is by default when you specify url in the source object and you didn't set the async field to false), then make sure that you call any method or set a property once the data is loaded. To ensure that you call your code when the Grid is loaded with data, use the Grid's ready callback function or bind to the 'bindingcomplete' event before the Grid's initialization and call your code inside the event handler. #### Bind the Grid to an array. The data member is array. The datatype member is set to "array". ```vue ``` #### Bind the Grid to XML data. In the source initialization, you need to set the following: - url of a xml file - id field - root data record - record - this is the data record which will be displayed as a row in the Grid. - datatype - 'xml' - datafields - the record's member names. You can also specify the mapping to the member's data ```vue ``` #### Bind the Grid to JSON data. When you bind the Grid to JSON data, you need to set the source object's datatype to 'json'. If you want to bind the Grid to JSONP data, then you need to set the source object's datatype to 'jsonp'. ```vue ``` #### Bind the Grid to tab-separated values (TSV). When you bind the Grid to TSV data, you need to set the source object's datatype to 'tab'. ```vue ``` #### Bind the Grid to comma-separated values (CSV). When you bind the Grid to CSV data, you need to set the source object's datatype to 'csv'. ```vue ``` #### What happens when the data source is changed? How to refresh the Grid? To refresh the Grid, you need to simply set its 'source' property again. ```vue ``` --- ### Grid Filtering Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-filtering.htm > To enable the filtering feature, you need to set the 'filterable' property to true. To enable the filtering feature, you need to set the 'filterable' property to true. When the value of the filterable property is true, the Grid displays a filtering panel in the columns popup menus. jqxGrid has several methods that allow you to handle the data filtering – addfilter, removefilter, applyfilters and clearfilters. The first method adds a filter to a grid column. The 'removefilter' method removes a filter from a grid column. The 'applyfilters' method applies all filters to the grid and refreshes its contents. The last method clears the filtering. Let's see how to add a filter: ```javascript let filtergroup = new jqx.filter(); ``` 2. The next step is to create the filters. Each filter must have a filter value – this is the value we compare each cell value with. The filter condition specifies how the filter will compare each cell value with the filter value. The filter condition value depends on the filter's type (jqxGrid supports string, numeric and date filters). If you want to get the list of the supported grid filtering conditions, you can use the 'getoperatorsbyfiltertype' method of filter group.The createfilter method is used to create the filter. ```javascript let filtervalue = 'Beate'; let filtercondition = 'contains'; // possible conditions for string filter: 'EMPTY', 'NOT_EMPTY', 'CONTAINS', 'CONTAINS_CASE_SENSITIVE', // 'DOES_NOT_CONTAIN', 'DOES_NOT_CONTAIN_CASE_SENSITIVE', 'STARTS_WITH', 'STARTS_WITH_CASE_SENSITIVE', // 'ENDS_WITH', 'ENDS_WITH_CASE_SENSITIVE', 'EQUAL', 'EQUAL_CASE_SENSITIVE', 'NULL', 'NOT_NULL' // possible conditions for numeric filter: 'EQUAL', 'NOT_EQUAL', 'LESS_THAN', 'LESS_THAN_OR_EQUAL', 'GREATER_THAN', 'GREATER_THAN_OR_EQUAL', 'NULL', 'NOT_NULL' // possible conditions for date filter: 'EQUAL', 'NOT_EQUAL', 'LESS_THAN', 'LESS_THAN_OR_EQUAL', 'GREATER_THAN', 'GREATER_THAN_OR_EQUAL', 'NULL', 'NOT_NULL' let filter1 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition); filtervalue = 'Andrew'; filtercondition = 'starts_with'; let filter2 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition); ``` 3. The third step is to add the filters to the filter group. In the code example below, we added two filters in the filter group with operator 'or'. This means that each cell value will be evaluated by filter1 and filter2 and the evaluation result will be true, if the filter1's returned value is true or filter2's returned value is true. ```javascript let filter_or_operator = 1; filtergroup.addfilter(filter_or_operator, filter1); filtergroup.addfilter(filter_or_operator, filter2); ``` 4. In the final step, we add the filter group to the first column and apply the filters by calling the 'applyfilters' method. ```javascript // add the filters myGrid.value.addfilter('firstname', filtergroup, true); // apply the filters myGrid.value.applyfilters(); ``` If you want to remove the filter, call the 'removefilter' method and then the 'applyfilters' method. ```javascript myGrid.value.removefilter('firstname'); myGrid.value.applyfilters(); ``` If you want to clear all filters, use the 'clearfilters' method. ```javascript myGrid.value.clearfilters(); ``` **Custom Filter Conditions** To customize the filter conditions, you need to do the following: 1. Update the Localization Strings. The filter conditions displayed in the filter dropdowns are loaded from the jqxGrid's localization object. *Use the Grid's "ready" callback or bind to the "bindingcomplete" event before the Grid's initialization. ```javascript ready: function () { let localizationObject = { filterstringcomparisonoperators: ['contains', 'does not contain'], // filter numeric comparison operators. filternumericcomparisonoperators: ['less than', 'greater than'], // filter date comparison operators. filterdatecomparisonoperators: ['less than', 'greater than'], // filter bool comparison operators. filterbooleancomparisonoperators: ['equal', 'not equal'] } //apply filters myGrid.value.localizestrings(localizationObject); } ``` 2. The second step is to update the conditions within the Filter object. In order to achieve that, you need to add a function called "updatefilterconditions". That function is invoked by jqxGrid with 2 parameters - the type of the filter and the default filter conditions. As a result, the function should return an array of strings depending on the filter's type. That array will be used by the filter object. ```html ``` ```javascript updatefilterconditions: function (type, defaultconditions) { let stringcomparisonoperators = ['CONTAINS', 'DOES_NOT_CONTAIN']; let numericcomparisonoperators = ['LESS_THAN', 'GREATER_THAN']; let datecomparisonoperators = ['LESS_THAN', 'GREATER_THAN']; let booleancomparisonoperators = ['EQUAL', 'NOT_EQUAL']; switch (type) { case 'stringfilter': return stringcomparisonoperators; case 'numericfilter': return numericcomparisonoperators; case 'datefilter': return datecomparisonoperators; case 'booleanfilter': return booleancomparisonoperators; } } ``` **Add filters to multiple columns through the API** ```vue ``` *generatedata function is implemented in the generatedata.js. The file is included in the download package and can be found in the installation_folder/demos/jqxgrid folder. By default the filter groups are combined with 'AND' operator. That means that the Grid will display records if they meet the criteria of the filter group applied to column 1 and the filter group applied to column 2, etc. You can create any combination of filter groups using 'AND' and 'OR'. The example below illustrates how: ```vue ``` Using the above code, jqxGrid will display any record which meets at least one of the filtering criteria i.e a record is displayed, if it meets the condition of the 'FirstName' column's filter group or the one of the 'Quantity' column's filter group. --- ### Grid Sorting Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-sorting.htm > The sortable property enables or disables the data sorting.In the code example below, the Grid data sorting is enabled: To enable or disable the sorting of a… The sortable property enables or disables the data sorting. In the code example below, the Grid data sorting is enabled: ```html ``` To enable or disable the sorting of a Grid column, you can set its sortable property to false. In the code example below, the sorting of the "ShipName" column is disabled. ```javascript columns: [ { text: 'Ship Name', datafield: 'ShipName', width: 250, sortable: false }, { text: 'Shipped Date', datafield: 'ShippedDate', width: 230, cellsformat: 'D' }, { text: 'Freight', datafield: 'Freight', width: 130, cellsformat: 'F2', cellsalign: 'right' }, { text: 'Ship Address', datafield: 'ShipAddress', width: 350 }, { text: 'Ship City', datafield: 'ShipCity', width: 100 }, { text: 'Ship Country', datafield: 'ShipCountry', width: 100 } ] ``` When the sorting data type is Date, Number or Boolean, the 'type' property in the 'datafields' array should be set. In this code example, the data type of the ShippedDate column is Date and the "type" property is set to "date". The Freight column displays floating-point numbers and the 'type' property is set to 'float'. ```javascript this.source = { datatype: "xml", datafields: [ { name: 'ShippedDate', type: 'date' }, { name: 'Freight', type: 'float' }, { name: 'ShipName' }, { name: 'ShipAddress'}, { name: 'ShipCity'}, { name: 'ShipCountry' } ], root: "entry", record: "content", id: 'OrderID', url: url, sortcolumn: 'ShipName', sortdirection: 'asc' }; ``` The 'sortcolumn' property specifies the default Grid sort column, i.e. when the grid is displayed, the data will be sorted. The 'sortdirection' property specifies the sort order of the sort column. **Sorting with the Grid API.** The sortby function can be used to sort the Grid through the API. This function should be called when the grid data is fully loaded. The first parameter is the Column's DataField. The second parameter is the sort order - 'asc' or 'desc'. ```javascript import { onMounted, ref } from 'vue'; const myGrid = ref(null); onMounted(() => { myGrid.value.sortby('ShipName', 'asc'); }); ``` To remove the sorting, call the "removesort" function. When the data is sorted, the Grid raises the 'sort' event. ```html ``` By default, when the sorting is enabled and the user clicks a column's header, the sort order is changed. The jqxGrid 'sorttogglestates' property can be used to modify this behavior. The possible values of this property are: 0 - disables toggling. The Grid is sortable only through the API. 1 - enables togging. Click on a column header toggles the sort direction. In this mode, there are 2 possible sort direction values - 'asc', and 'desc'. 2 - default toggle mode. Click on a column header toggles the sort direction. In this mode, there are 3 possible sort direction values - 'asc', 'desc' and null. When the sort direction is null, the sorting is cleared. To override the default sorting logic, you need to set the 'sort' member of the Grid's source object to a custom sorting function. The Grid will pass two parameters to this function - the sort column's datafield and the sort direction. ```javascript const myGrid = ref(null); const compare = (value1, value2) => { value1 = String(value1).toLowerCase(); value2 = String(value2).toLowerCase(); const number1 = parseFloat(value1); if (isNaN(number1)) { if (value1 < value2) return -1; if (value1 > value2) return 1; } else { const number2 = parseFloat(value2); if (number1 < number2) return -1; if (number1 > number2) return 1; } return 0; }; const customsortfunc = (column, direction) => { let sortdata = []; if (direction == 'ascending') direction = true; if (direction == 'descending') direction = false; if (direction != null) { for (let i = 0; i < data.length; i++) { sortdata.push(data[i]); } } else sortdata = data; // sort() compares the rows as strings: each row reads as its value in the sorted column const tmpToString = Object.prototype.toString; Object.prototype.toString = typeof column == 'function' ? column : function () { return this[column]; }; if (direction != null) { sortdata.sort(compare); if (!direction) { sortdata.reverse(); } } source.localdata = sortdata; myGrid.value.updatebounddata('sort'); Object.prototype.toString = tmpToString; }; const source = { localdata: data, sort: customsortfunc, datafields: [ { name: 'firstname', type: 'string' }, { name: 'lastname', type: 'string' }, { name: 'productname', type: 'string' }, { name: 'quantity', type: 'number' }, { name: 'price', type: 'number' }, { name: 'total', type: 'number' } ], datatype: 'array' }; ``` --- ### Grid Cells Editing Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-cells-editing.htm > jqxGrid Cell Editing feature much resembles the data entering experience in an Excel Spreadsheet – once you select a grid cell, you can enter data when you… jqxGrid Cell Editing feature much resembles the data entering experience in an Excel Spreadsheet – once you select a grid cell, you can enter data when you start typing text. The Grid's 'editable' property specifies whether the editing is enabled or not. - Single mouse click: Marks the clicked cell as selected and shows the editor. The editor's value is equal to the cell's value. - Single mouse click on a selected cell: Marks the cell as selected and shows the editor. - Double mouse click on a cell: Marks the cell as selected and shows the editor. The editor's value is equal to the cell's value. **Keyboard Edit Actions and Navigation** If the user starts typing text, the cell's content is replaced with the text entered from the user. - Left Arrow key is pressed - Selects the left cell, when the Grid is not in edit mode. Otherwise, the key stroke is handled by the editor. - Right Arrow key is pressed - Selects the right cell, when the Grid is not in edit mode. Otherwise, the key stroke is handled by the editor. - Up Arrow key is pressed - Selects the cell above, when the Grid is not in edit mode. Otherwise, the key stroke is handled by the editor. - Down Arrow key is pressed - Selects the cell below, when the Grid is not in edit mode. Otherwise, the key stroke is handled by the editor. - Page Up/Down is pressed - Navigate Up or Down with one page, when the Grid is not in edit mode. Otherwise, the key stroke is handled by the editor. - Home/End is pressed - Navigate to the first or last row, when the Grid is not in edit mode. Otherwise, the key stroke is handled by the editor. - Enter key is pressed - Shows the selected cell's editor. If the cell is in edit mode, hides the cell's editor and saves the new value. The editor's value is equal to the cell's value. - Esc key is pressed - Hides the cell's editor and cancels the changes. - Tab key is pressed - Selects the right cell. If the Grid is in edit mode, saves the edit cell's value, closes its editor, selects the right cell and opens its editor. - Shift+Tab keys are pressed - Selects the left cell. If the Grid is in edit mode, saves the edit cell's value, closes its editor, selects the left cell and opens its editor. - F2 key is pressed - shows the selected cell's editor. - Space key is pressed - Toggles the checkbox editor's check state when the selected cell's column is a checkbox column. **Programmatic Editing** The Grid have APIs for showing and hiding the cell editors. The 'begincelledit' method allows you to put a specific cell into edit mode. ```javascript myGrid.value.begincelledit(0, 'firstname'); ``` The 'endcelledit' method ends the edit operation and confirms or cancels the changes. The following code cancels the changes: ```javascript myGrid.value.endcelledit(0, 'firstname', true); ``` The following code cancels the changes: ```javascript myGrid.value.endcelledit(0, 'firstname', false); ``` To set a new value to a Grid cell, you can use the 'setcellvalue' method: ```javascript // the first parameter is the row's index. // the second parameter is the column's datafield. // the third parameter is the new cell's value. myGrid.value.setcellvalue(0, 'lastname', 'My Value'); ``` To get the value of a Grid cell, you can use the 'getcellvalue' method: ```javascript // the first parameter is the row's index. // the second parameter is the column's datafield. let value = myGrid.value.getcellvalue(0, 'lastname'); ``` The 'cellbeginedit' and 'cellendedit' events are raised when the edit operation begins or ends. ```html ``` ```javascript function onCellBeginEdit(event) { let args = event.args; let columnDataField = args.datafield; let rowIndex = args.rowindex; let cellValue = args.value; } function onCellEndEdit(event) { let args = event.args; let columnDataField = args.datafield; let rowIndex = args.rowindex; let cellValue = args.value; let oldValue = args.oldvalue; } ``` jqxGrid supports the following types of editors: - TextBox - CheckBox(uses the jqxCheckBox widget) - NumberInput(uses the jqxNumberInput widget and edits currency, percentage and any type of numeric information) - DateTimeInput(uses the jqxDateTimeInput widget and edits date and time values) - DropDownList(uses the jqxDropDownList widget and selects a single value from a list of values) To specify the column's editor, you should set the column's 'columntype' property to 'textbox', 'dropdownlist', 'numberinput', 'checkbox' or 'datetimeinput'. To disable the editing of a specific grid column, you can set the column's editable property to false. The 'initeditor' function is called when the editor's widget is initialized. It allows you to use the properties of the widget and make it best fit your application's scenario. ```javascript columns: [ { text: 'First Name', columntype: 'textbox', datafield: 'firstname', width: 90 }, { text: 'Last Name', datafield: 'lastname', columntype: 'textbox', width: 90 }, { text: 'Product', columntype: 'dropdownlist', datafield: 'productname', width: 180 }, { text: 'Available', datafield: 'available', columntype: 'checkbox', width: 65 }, { text: 'Ship Date', datafield: 'date', columntype: 'datetimeinput', width: 90, cellsalign: 'right', cellsformat: 'd'}, { text: 'Quantity', datafield: 'quantity', width: 70, cellsalign: 'right', columntype: 'numberinput', initeditor: function (row, cellvalue, editor) { editor.jqxNumberInput({ decimalDigits: 0 }); } }, { text: 'Price', datafield: 'price', width: 65, cellsalign: 'right', cellsformat: 'c2', columntype: 'numberinput', initeditor: function (row, cellvalue, editor) { editor.jqxNumberInput({ digits: 3 }); } } ] ``` The Grid will display a validation popup message when the new cell's value is not valid. The developers are able to set a custom validation logic and error messages for each grid column. The Grid will stay in edit mode until a correct value is entered or the user presses the "Esc" key. In following code, the "Ship Date", "Quantity" and "Price" columns define custom validation functions. Each function has 2 parameters - the edit cell and its value. Depending on your logic, you can validate the value and return true if the value is correct or false, if the value is not correct. You can also return an object with 2 members - result and message. The message member represents the message that your users will see, if the validation fails. ```javascript columns: [ { text: 'First Name', columntype: 'textbox', datafield: 'firstname', width: 90 }, { text: 'Last Name', datafield: 'lastname', columntype: 'textbox', width: 90 }, { text: 'Product', columntype: 'dropdownlist', datafield: 'productname', width: 180 }, { text: 'Available', datafield: 'available', columntype: 'checkbox', width: 65 }, { text: 'Ship Date', datafield: 'date', columntype: 'datetimeinput', width: 90, cellsalign: 'right', cellsformat: 'd', validation: function (cell, value) { var year = value.getFullYear(); if (year >= 2013) { return { result: false, message: "Ship Date should be before 12/30/2025" }; } return true; } }, { text: 'Quantity', datafield: 'quantity', width: 70, cellsalign: 'right', columntype: 'numberinput', validation: function (cell, value) { if (value < 0 || value > 100) { return { result: false, message: "Quantity should be in the 0-100 interval" }; } return true; }, initeditor: function (row, cellvalue, editor) { editor.jqxNumberInput({ decimalDigits: 0 }); } }, { text: 'Price', datafield: 'price', width: 65, cellsalign: 'right', cellsformat: 'c2', columntype: 'numberinput', validation: function (cell, value) { if (value < 0 || value > 15) { return { result: false, message: "Price should be in the 0-15 interval" }; } return true; }, initeditor: function (row, cellvalue, editor) { editor.jqxNumberInput({ digits: 3 }); } } ] ``` --- ### Grid Grouping Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-grouping.htm > The jqxGrid component supports data grouping against one or more columns.Grouping is allowed if the 'groupable' property is set to true. The jqxGrid component supports data grouping against one or more columns. Grouping is allowed if the 'groupable' property is set to true. End-users can group data by dragging column headers to the Group Panel. This panel's visibility is controlled by the showgroupsheader property. The code example below shows a Grid template with one grouping column: ```html ``` **Basic Grid with Grouping** ```vue ``` To hide the grouping panel, set the 'showgroupsheader' property to **false**. ```vue ``` The 'addgroup', 'insertgroup', 'removegroup' and 'removegroupat' functions enable groups manipulation with the Grid API. ```javascript myGrid.value.addgroup('City'); ``` *The functions should be called after the Grid data is loaded. When the data is loaded and the Grid is ready, the 'bindingcomplete' event is raised. The 'closeablegroups' property enables or disables the close buttons displayed in each group header. ```vue ``` The 'expandgroup' and 'collapsegroup' functions expand or collapse a group at a specific index. The code below expands the second group: ```javascript myGrid.value.expandgroup(1); ``` The 'expandallgroups' and 'collapseallgroups' functions expand or collapse all groups in the Grid. ```javascript myGrid.value.expandallgroups(); ``` When a group is expanded or collapsed, the 'groupexpand' or 'groupcollapse' event is raised. ```html ``` ```javascript function onExpandGroup(event) { let args = event.args; let group = args.group; let level = args.level; } ``` The 'groupsexpandedbydefault' boolean property specifies the default state of the groups when displayed in the Grid. By default all groups are collapsed. --- ### Grid Paging Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-paging.htm > jqxGrid component has a built-in paging capability that supports paging functionality. jqxGrid component has a built-in paging capability that supports paging functionality. The paging functionality is enabled when the 'pageable' property is set to true. The code example below illustrates how to enable the paging functionality. ```html ``` When a page is changed or the page size is changed, the Grid raises the pagechanged or pagesizechanged events. ```javascript function onPageChanged(event) { let args = event.args; let pagenumber = args.pagenum; let pagesize = args.pagesize; } function onPageSizeChanged(event) { let args = event.args; let pagenumber = args.pagenum; let pagesize = args.pagesize; } ``` **Grid with Basic Paging** ```vue ``` The Grid Page Size options are displayed in a DropDownList component in the pager area. By default, the size options are 5, 10 and 20. The "pagesizeoptions" property enables you to set new size options. ```html ``` The 'pagesize' property sets the default page size when the paging functionality is enabled. By default the Grid displays 10 rows in a page. The 'pagerrenderer' property allows you to customize the UI of the Grid pager. In the sample below, we create a pagerrenderer function and inside the function, we build a DIV element with anchor tags. Each anchor tag has a page number as text. When the user clicks an anchor tag, the Grid calls the 'gotopage' function to navigate to a page. The 'pagerrenderer' function returns the DIV element as a result. This element is then internally appended to the Grid's pager area. **Grid with Custom Paging** ```vue ``` To navigate to a page with the Grid API, use the 'gotopage' function. ```javascript myGrid.value.gotopage(1); ``` The 'gotoprevpage' function navigates with 1 page before the current page. The 'gotonextpage' function navigates with 1 page after the current page. --- ### Vue Server-Side Filtering with jqxGrid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-filtering.htm > This tutorial builds a Vue Grid whose filters run in the database. When the user types in the filter row or picks values, the grid requests the data again… This tutorial builds a Vue Grid whose filters run in the database. When the user types in the filter row or picks values, the grid requests the data again with the filter conditions, and a Node.js API turns them into a parameterised `WHERE` clause. The stack is Node 22 with Express 5 and `mysql2/promise` on the server, and Vue 3.5 with ` ``` Checking two countries in the list sends two `EQUAL` filters on `ShipCountry` joined with OR, which the server turns into `(ship_country =? OR ship_country =?)`. #### 6. Run it Keep the API running in one terminal and start Vite in a second one: ```bash npm run dev ``` Open `http://localhost:5173` and type `rio` in the City filter. The Network tab shows a request with `filterscount=1`, `filterdatafield0=ShipCity` and `filtercondition0=CONTAINS`, and the grid shows the two Rio de Janeiro orders. #### For production Run `npm run build` and serve the `dist` folder from the same Express app, for example with `app.use(express.static('dist'))`. Then `/api` and the page share one origin, and neither the proxy nor CORS headers are needed. Related: [server-side paging](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-paging.htm), [server-side sorting](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-sorting.htm), [Grid filtering](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-filtering.htm). See the Grid demos at [jqwidgets.com/vue](https://www.jqwidgets.com/vue/). --- ### Vue Server-Side Sorting with jqxGrid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-sorting.htm > This tutorial builds a Vue Grid whose sorting is done by the database. Each time the user sorts a column, the grid requests the rows again with the sort… This tutorial builds a Vue Grid whose sorting is done by the database. Each time the user sorts a column, the grid requests the rows again with the sort column and direction, and a Node.js API returns them in that order. Sort on the server when the data is large or when the database collation must decide the order. The stack is Node 22 with Express 5 and `mysql2/promise` on the server, and Vue 3.5 with ` ``` #### 6. Run it Keep the API running in one terminal and start Vite in a second one: ```bash npm run dev ``` Open `http://localhost:5173` and click a column header. The Network tab shows a request such as `/api/orders?sortdatafield=ShipCity&sortorder=asc`. When the sort is removed, `sortorder` is empty and the server falls back to the original order. #### For production Run `npm run build` and serve the `dist` folder from the same Express app, for example with `app.use(express.static('dist'))`. Then `/api` and the page share one origin, and neither the proxy nor CORS headers are needed. Related: [server-side paging](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-paging.htm), [server-side filtering](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-filtering.htm), [Grid sorting](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-sorting.htm). See the Grid demos at [jqwidgets.com/vue](https://www.jqwidgets.com/vue/). --- ### Vue Server-Side Paging with jqxGrid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-paging.htm > This tutorial builds a Vue Grid that loads one page of rows at a time from a Node.js API. This tutorial builds a Vue Grid that loads one page of rows at a time from a Node.js API. Use server-side paging when a table is too large to send to the browser at once: the grid asks for the current page, and the server returns only those rows plus the total count. The stack is Node 22 with Express 5 and `mysql2/promise` on the server, and Vue 3.5 with ` ``` The `map` setting of each data field reads a column from the JSON rows, so the grid keeps its own field names while the database uses snake_case. #### 6. Run it Keep the API running in one terminal and start Vite in a second one: ```bash npm run dev ``` Open `http://localhost:5173`. Each click in the pager, or a change of the page size, sends a request such as `/api/customers?pagenum=3&pagesize=10`; you can watch them in the browser's Network tab. #### For production Run `npm run build` and serve the `dist` folder from the same Express app, for example with `app.use(express.static('dist'))`. Then `/api` and the page share one origin, and neither the proxy nor CORS headers are needed. Related: [server-side sorting](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-sorting.htm), [server-side filtering](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-filtering.htm), [Grid paging](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-paging.htm). See the Grid demos at [jqwidgets.com/vue](https://www.jqwidgets.com/vue/). --- ### Vue Grid Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-styling-and-appearance.htm > Style the Vue Grid: the jqxGrid CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxGrid. - jqxGrid Style - jqx-widget - applied to the Grid widget. - jqx-grid - applied to Grid container DIV element. - jqx-grid-pager - applied to the Grid Pager. - jqx-grid-header- applied to Grid Columns container element. - jqx-grid-column-header - applied to a Grid column. - jqx-widget-header - applied to a Grid column, Toolbar, Statusbar and Groups Header. - jqx-widget-content - applied to the Grid's content area. - jqx-grid-content - applied to the Grid's content area. - jqx-grid-toolbar - applied to the toolbar. - jqx-grid-statusbar - applied to the statusbar. - jqx-grid-column-menubutton - applied to a column's menu button. - jqx-grid-column-sortascbutton - applied to a column's sort button when the sort order is ascending. - jqx-grid-column-sortdescbutton - applied to a column's sort button when the sort order is descending. - jqx-grid-column-filterbutton - applied to a column's filter button. - jqx-grid-sortasc-icon - applied to the sort ascending menu item in the Grid's Context Menu. - jqx-grid-sortdesc-icon - applied to the sort descending menu item in the Grid's Context Menu. - jqx-grid-sortremove-icon - applied to the sort remove menu item in the Grid's Context Menu. - jqx-grid-groupby-icon - applied to the 'group by' menu item in the Grid's Context Menu. - jqx-grid-groups-header - applied to the Grouping Panel area. - jqx-grid-group-column - applied to the grouping columns in the Grouping Panel. - jqx-grid-cell - applied to the grid cells. - jqx-grid-cell-sort - applied to the grid cells in the sort column. - jqx-grid-cell-filter - applied to the grid cells in the filter column. - jqx-grid-group-cell - applied to the cells in a grouping row. - jqx-grid-details-cell - applied to the cells in a details row. - jqx-grid-cell-alt - alternating cells style. This is applied to the cells in the alternating rows. - jqx-grid-cell-pinned - applied to the cells in a pinned column. - jqx-grid-cell-selected - applied to a selected cell.. - jqx-fill-state-pressed - applied to a selected cell. - jqx-grid-cell-hover - applied to a hovered. - jqx-fill-state-hover - applied to a hovered cell. - jqx-grid-group-collapse - applied to the collapse button of a grouping row. - jqx-grid-group-collapse-rtl - applied to the collapse button of a grouping row when "rtl" is enabled. - jqx-grid-group-expand - applied to the expand button of a grouping row. - jqx-grid-group-expand-rtl - applied to the expand button of a grouping row when "rtl" is enabled. - jqx-grid-column-resizeline - applied to the column's resize line. - jqx-grid-column-resizestartline - applied to the column's resize start line. - jqx-fill-state-disabled - applied to the widget when it is disabled. - jqx-grid-group-drag-line - applied to the drop line indicators displayed in the grouping header. - jqx-grid-group-column-line - applied to the lines between the group columns. When you create a custom style with colors and backgrounds for jqxGrid, you need to do the following: - Add the above CSS classes related to jqxButtons - After each CSS class, add your theme name. For example: jqx-grid-energyblue - To apply your custom style to the Grid, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Grid API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxgrid.txt #### Properties - `altrows` (Type: Boolean, Default: false): Enables or disables the alternating rows. - `altstart` (Type: Number, Default: 1): This property specifies the first alternating row. - `altstep` (Type: Number, Default: 1): Sets or gets the alternating step - `autoshowloadelement` (Type: Boolean, Default: true): Determines whether the loading image should be displayed until the Grid's data is loaded. - `autoshowfiltericon` (Type: Boolean, Default: true): Displays the filter icon only when the column is filtered. When the value of this property is set to false, all grid columns will display a filter icon when the filtering is enabled. - `autoshowcolumnsmenubutton` (Type: Boolean, Default: true): Sets or gets whether the columns menu button will be displayed only when the mouse cursor is over a columns header or will be always displayed. - `showcolumnlines` (Type: Boolean, Default: true): Sets or gets whether the columns lines are displayed. - `showrowlines` (Type: Boolean, Default: true): Sets or gets whether the row lines are displayed. - `showcolumnheaderlines` (Type: Boolean, Default: true): Sets or gets whether the column header lines are displayed. - `adaptive` (Type: Boolean, Default: false): Sets or gets whether adaptive mode is enabled. - `compact` (Type: Boolean, Default: false): Sets or gets whether compact mode is enabled. - `contextmenuitems` (Type: Array, Default: ['Item 1', 'Item 2', 'Item 3']): Sets or gets whether context menu items are set. - `contextmenuenabled` (Type: Boolean, Default: false): Sets or gets whether context menu is enabled. - `contextmenuwidth` (Type: Number | String, Default: 200): Sets or gets whether context menu width is set. - `contextmenuheight` (Type: Number | String, Default: 'auto'): Sets or gets whether context menu height is set. - `contextmenuitemclick` (Type: Function, Default: null): Sets or gets whether contextmenuitemclick is set. - `adaptivewidth` (Type: Number, Default: 600): Sets or gets the Grid's breakpoint width when adaptive mode is activated. - `commandcolumn` (Type: Boolean, Default: false): Sets or gets whether command column is enabled. - `commandcolumnrenderer` (Type: Function) - `clipboard` (Type: Boolean, Default: true): Enables or disables the clipboard operations - `closeablegroups` (Type: Boolean, Default: true): When the value of this property is true, a close button is displayed in each grouping column. - `columnsmenuwidth` (Type: Number, Default: 15): Sets or gets the columns menu width. - `columnmenuopening` (Type: Function, Default: null): Callback called when a column menu is opening. You can use it for changing the size of the menu or cancelling the opening. Three params are passed - menu, datafield and menu's height. - `columnmenuclosing` (Type: Function, Default: null): Callback called when a column menu is opening. You can use it for changing the size of the menu or cancelling the opening. Three params are passed - menu, datafield and menu's height. - `cellhover` (Type: Function, Default: null): Callback called when a cell is hovered. - `enablekeyboarddelete` (Type: Boolean, Default: true): Enables or disables the delete of a cell/row values by using the "delete" key. - `enableellipsis` (Type: Boolean, Default: true): Determines whether ellipsis will be displayed, if the cells or columns content overflows. - `enablemousewheel` (Type: Boolean, Default: true): Determines whether mousewheel scrolling is enabled. - `enableanimations` (Type: Boolean, Default: true): Enables or disables the grid animations. - `enabletooltips` (Type: Boolean, Default: false): Enables or disables the grid tooltips. - `enablehover` (Type: Boolean, Default: true): Enables or disables the grid rows hover state. - `enablebrowserselection` (Type: Boolean, Default: false): Enables the text selection of the browser. - `everpresentrowposition` (Type: String, Default: 'top'): Sets the position of the ever present row. Possible values: "top", "bottom", "topAboveFilterRow". - `everpresentrowheight` (Type: Number, Default: 30): Sets the height of the ever present row. - `everpresentrowactions` (Type: String, Default: "add reset"): Sets the actions of the ever present row. Possible values: "add", "reset", "update", "delete". Instead of "add", you can also use "addBottom" which is the same as "add", but adds the new row to the bottom of the Grid. - `everpresentrowactionsmode` (Type: String, Default: "popup"): Sets the actions display mode. By default they are displayed in a popup. - `filterrowheight` (Type: Number, Default: 36): Sets or gets the filter row's height. - `filtermode` (Type: String, Default: "default"): The property specifies the type of rendering of the Filter Menu. Possible values: "default" and "excel". In "excel" mode, the Filter Menu displays a ListBox with Checkboxes with all unique cell values. - `groupsrenderer` (Type: Function, Default: null): This function is called when a group is rendered. You can use it to customize the default group rendering. - `groupcolumnrenderer` (Type: Function, Default: null): Sets or gets a custom renderer for the grouping columns displayed in the grouping header when the grouping feature is enabled. - `groupsexpandedbydefault` (Type: Boolean, Default: false): Sets or gets the default state of the grouped rows. - `handlekeyboardnavigation` (Type: Function, Default: null): The function is called when a key is pressed. If the result of the function is true, the default keyboard navigation will be overridden for the pressed key. - `pagerrenderer` (Type: Function, Default: null): The function is called when the Grid Pager is rendered. This allows you to customize the default rendering of the pager. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `showdefaultloadelement` (Type: Boolean, Default: true): Determines whether the Grid should display the built-in loading element or should use a DIV tag with class 'jqx-grid-load' - `showfiltercolumnbackground` (Type: Boolean, Default: true): When this property is true, the Grid adds an additional visual style to the grid cells in the filter column(s). - `showfiltermenuitems` (Type: Boolean, Default: true): Determines whether to display the filtering items in the column's menu. - `showpinnedcolumnbackground` (Type: Boolean, Default: true): When this property is true, the Grid adds an additional visual style to the grid cells in the pinned column(s). - `showsortcolumnbackground` (Type: Boolean, Default: true): When this property is true, the Grid adds an additional visual style to the grid cells in the sort column. - `showsortmenuitems` (Type: Boolean, Default: true): Determines whether to display the sort menu items. - `showgroupmenuitems` (Type: Boolean, Default: true): Determines whether to display the group menu items. - `showrowdetailscolumn` (Type: Boolean, Default: true): Shows an additional column with expand/collapse toggle buttons when the Row details feature is enabled. - `showheader` (Type: Boolean, Default: true): Shows or hides the columns header. - `showgroupsheader` (Type: Boolean, Default: true): Shows or hides the groups header area. - `showaggregates` (Type: Boolean, Default: false): Shows or hides the aggregates in the grid's statusbar. - `showgroupaggregates` (Type: Boolean, Default: false): Shows or hides the aggregates in Grid groups. - `showeverpresentrow` (Type: Boolean, Default: false): Shows or hides an additional row in jqxGrid which allows you to easily add new rows. - `showfilterrow` (Type: Boolean, Default: false): Shows or hides the filter row. - `showemptyrow` (Type: Boolean, Default: true): Shows or hides the empty row label when the Grid has no records to display. - `showstatusbar` (Type: Boolean, Default: false): Shows or hides the grid's statusbar. - `statusbarheight` (Type: Number, Default: 34): Sets the statusbar's height. - `showtoolbar` (Type: Boolean, Default: false): Shows or hides the grid's toolbar. - `showfilterbar` (Type: Boolean, Default: false): Shows or hides the grid's filter bar. - `filterbarmode` (Type: String, Default: default) - `selectionmode` (Type: String, Default: 'singlerow'): Sets or gets the selection mode. - `updatefilterconditions` (Type: Function, Default: null) - `updatefilterpanel` (Type: Function, Default: null) - `theme` (Type: String, Default: ''): Sets the widget's theme. - `toolbarheight` (Type: Number, Default: 34): Sets or gets the toolbar's height. - `autoheight` (Type: Boolean, Default: false): Sets or gets the height of the grid to be equal to the summary height of the grid rows. This option should be set when the Grid is in paging mode. - `autorowheight` (Type: Boolean, Default: false): This property works along with the "autoheight" property. When it is set to true, the height of the Grid rows is dynamically changed depending on the cell values. - `columnsheight` (Type: Number, Default: 32): Sets or gets the columns height. - `deferreddatafields` (Type: Array, Default: []): Determines the cell values displayed in a tooltip next to the scrollbar when the "scrollmode" is set to "deferred". - `groupsheaderheight` (Type: Number, Default: 34): Sets or gets the height of the Grid Groups Header. - `groupindentwidth` (Type: Number, Default: 20): Sets or gets the group indent size. This size is used when the grid is grouped. This is the size of the columns with expand/collapse toggle buttons. - `height` (Type: String | Number, Default: 400): Sets or gets the Grid's height. - `pagerheight` (Type: Number, Default: 40): Sets or gets the height of the Grid Pager. - `rowsheight` (Type: Number, Default: 32): Sets or gets the height of the grid rows. - `scrollbarsize` (Type: Number, Default: 15): Sets or gets the scrollbars size. - `scrollmode` (Type: String, Default: "default"): Determines the scrolling mode. - `scrollfeedback` (Type: Function, Default: null) - `width` (Type: String | Number, Default: 600): Sets or gets the Grid's width. - `autosavestate` (Type: Boolean, Default: false): Determines whether the Grid automatically saves its current state. - `autoloadstate` (Type: Boolean, Default: false): Determines whether the Grid automatically loads its current state(if there's already saved one). The Grid's state is loaded when the page is refreshed. - `columns` (Type: Array, Default: []): Sets the Grid columns. - `enableSanitize` (Type: Boolean, Default: false) - `cardview` (Type: Boolean, Default: false) - `cardviewcolumns` (Type: [], Default: []) - `cardheight` (Type: Number, Default: 250) - `cardsize` (Type: Number, Default: 3) - `columngroups` (Type: Array, Default: []): - parentgroup - sets the column header's parent group name. - `columnsmenu` (Type: Boolean, Default: true): Enables or disables the columns dropdown menu. - `columnsresize` (Type: Boolean, Default: false): Enables or disables the columns resizing. - `columnsautoresize` (Type: Boolean, Default: true): Enables or disables the columns resizing when the column's border is double-clicked and `columnsresize` is set to true. - `columnsreorder` (Type: Boolean, Default: false): Enables or disables the columns reordering. - `charting` (Type: Object, Default: null): Data visualization of Grid Data in a Chart. - `disabled` (Type: Boolean, Default: false): Enables or disables the Grid's plugin. - `editable` (Type: Boolean, Default: false): The editable property enables or disables the Grid editing feature. - `batcheditable` (Type: Boolean, Default: false): The batcheditable property enables or disables the Grid batch editing feature. It works in combination with the editable property. - `editmode` (Type: String, Default: 'selectedcell'): The editmode property specifies the action that the end-user should make to open an editor. - `filter` (Type: Function, Default: null): Custom Filtering function. It overrides the built-in Filtering. When the user filters, the Grid calls this function, when it is implemented. The function is expected to return a boolean value or undefined. - `filterable` (Type: Boolean, Default: false): Enables or disables the Grid Filtering feature. When the value of this property is true, the Grid displays a filtering panel in the columns popup menus. - `filternlpinput` (Type: String) - `aiKey` (Type: String) - `aiUrl` (Type: String) - `aiProvider` (Type: String, Default: anthropic) - `aiModel` (Type: String, Default: null) - `aiProxyUrl` (Type: String, Default: null) - `aiHeaders` (Type: Object, Default: null) - `aiSendRequest` (Type: Any, Default: null) - `aiMaxRows` (Type: Number, Default: 40) - `groupable` (Type: Boolean, Default: false): This property enables or disables the grouping feature. - `groups` (Type: Array, Default: []): Sets or gets the Grid groups when the Grouping feature is enabled. - `horizontalscrollbarstep` (Type: Number, Default: 5): Sets or gets the scrollbar's step when the user clicks the scroll arrows. - `horizontalscrollbarlargestep` (Type: Number, Default: 50): Sets or gets the scrollbar's large step. This property specifies the step with which the horizontal scrollbar's value is changed when the user clicks the area above or below the thumb. - `initrowdetails` (Type: Function, Default: null): This function is called when the user expands the row details and the details are going to be rendered. - `disablerowdetails` (Type: Function, Default: null): This function is called when the user wants to disable the row details for particular rows - `keyboardnavigation` (Type: Boolean, Default: true): Enables or disables the keyboard navigation. - `localization` (Type: Object, Default: null): Localizes the Grid. - `pagesize` (Type: Number, Default: 10): Sets or gets the number of visible rows per page when the Grid paging is enabled. - `pagesizeoptions` (Type: Array, Default: ['5', '10', '20']): Sets or gets the available page size options. - `pagermode` (Type: String, Default: "default"): Sets or gets the rendering mode of the pager. Available values - "simple" and "default". - `pagerbuttonscount` (Type: Number, Default: 5): Sets or gets the buttons displayed in the pager when the "pagermode" is set to "simple". - `pageable` (Type: Boolean, Default: false): Enables or disables the Grid Paging feature. When the value of this property is true, the Grid displays a pager below the rows. - `autofill` (Type: Boolean, Default: false): Enables or disables the Grid Auto Fill feature. This feature can be used with 'multiplecellsadvanced' cell selection mode. It allows you to dynamically copy cell values. - `rowdetails` (Type: Boolean, Default: false): Enables or disables the row details. When this option is enabled, the Grid can show additional information below each grid row. - `rowdetailstemplate` (Type: Object, Default: null): Determines the template of the row details. The rowdetails field specifies the HTML used for details. The rowdetailsheight specifies the height of the details. - `ready` (Type: Function, Default: null): This function is called when the grid is initialized and the binding is complete. - `rendered` (Type: Function, Default: null): Callback function which is called when the jqxGrid's render function is called either internally or not. - `renderstatusbar` (Type: Function, Default: null): Callback function which allows you to customize the rendering of the Grid's statusbar. - `rendertoolbar` (Type: Function, Default: null): Callback function which allows you to customize the rendering of the Grid's toolbar. - `rendergridrows` (Type: Function, Default: null): This is a function called when the grid is used in virtual mode. The function should return an array of rows which will be rendered by the Grid. - `sortable` (Type: Boolean, Default: false): The sortable property enables or disables the sorting feature. - `sortmode` (Type: String, Default: 'one'): The sortmode property determines the Grid can sort by single or multiple columns. - `sortmodekey` (Type: String, Default: ''): The sortmodekey property determines the Grid can sort by multiple columns only when the property is set to Control and the control key is pressed. - `selectedrowindex` (Type: Number, Default: -1): Selects a row at a specified index. - `selectedrowindexes` (Type: Array, Default: []): Selects single or multiple rows. - `source` (Type: Object, Default: {}): Sets and gets the source. - `sorttogglestates` (Type: Number, Default: 2) - `updatedelay` (Type: Number, Default: 0): Sets or gets the rendering update delay. This could be used for deferred scrolling scenarios. - `virtualmode` (Type: Boolean, Default: false): Enables or disables the virtual data mode. - `verticalscrollbarstep` (Type: Number, Default: 5): Sets or gets the scrollbar's step when the user clicks the scroll arrows. - `verticalscrollbarlargestep` (Type: Number, Default: 400): Sets or gets the scrollbar's large step. This property specifies the step with which the vertical scrollbar's value is changed when the user clicks the area above or below the thumb. #### Events - `gridaiResult` (Type: Event): Triggered when an AI action (aiCommand, aiAsk, aiSummarize, aiExplainRow or aiClassifyColumn) completes successfully. Part of the jqxgrid.ai.js module. - `gridaiError` (Type: Event): Triggered when an AI request fails. Part of the jqxgrid.ai.js module. - `bindingcomplete` (Type: Event): This event is triggered when the binding is completed. - `columnresized` (Type: Event): This event is triggered when a Grid Column is resized. - `columnreordered` (Type: Event): This event is triggered when a Grid Column is moved to a new position. - `columnclick` (Type: Event): This event is triggered when a column is clicked. - `cellclick` (Type: Event): This event is triggered when a cell is clicked. - `celldoubleclick` (Type: Event): This event is triggered when a cell is double-clicked. - `cellselect` (Type: Event): This event is triggered when a cell is selected. - `cellunselect` (Type: Event): This event is triggered when a cell is unselected. - `cellvaluechanged` (Type: Event): This event is triggered when a cell's value is changed. - `cellbeginedit` (Type: Event): This event is triggered when a cell's editor is displayed. - `cellendedit` (Type: Event): This event is triggered when a cell's edit operation has ended. - `filter` (Type: Event): This event is triggered when the Grid is filtered. - `groupschanged` (Type: Event): This event is triggered when a group is added, inserted or removed. - `groupexpand` (Type: Event): This event is triggered when a group is expanded. - `groupcollapse` (Type: Event): This event is triggered when a group is collapsed. - `pagechanged` (Type: Event): This event is triggered when the current page is changed. - `pagesizechanged` (Type: Event): This event is triggered when the page size is changed. - `rowclick` (Type: Event): This event is triggered when a row is clicked. - `rowdoubleclick` (Type: Event): This event is triggered when a row is double clicked. - `rowselect` (Type: Event): This event is triggered when a row is selected. - `rowunselect` (Type: Event): This event is triggered when a row is unselected. - `rowexpand` (Type: Event): This event is triggered when a row with details is expanded. - `rowcollapse` (Type: Event): This event is triggered when a row with details is collapsed. - `sort` (Type: Event): This event is triggered when the Grid is sorted. #### Methods - `aiConfig` (Arguments: config, Return Type: Object): Configures the AI transport for the Grid (provider, key, model, proxy URL, headers, custom sendRequest and maxRows). Part of the jqxgrid.ai.js module. - `aiCommand` (Arguments: text, callback, Return Type: Object): Turns a plain-language request into validated filter, sort and group actions and applies them to the Grid - it never runs model output. Returns a Promise. Part of the jqxgrid.ai.js module. - `aiAsk` (Arguments: text, callback, Return Type: Object): Answers a natural-language question about the Grid data using column aggregates and a row sample; the result may include a chart spec. Returns a Promise. Part of the jqxgrid.ai.js module. - `aiSummarize` (Arguments: rows, callback, Return Type: Object): Returns a plain-language summary of the selected rows, or of the visible rows when none are selected. Returns a Promise. Part of the jqxgrid.ai.js module. - `aiExplainRow` (Arguments: rowindex, callback, Return Type: Object): Explains a single row of the Grid in plain language. Returns a Promise. Part of the jqxgrid.ai.js module. - `aiClassifyColumn` (Arguments: options, callback, Return Type: Object): Asks the model to classify every visible row and writes a label into a Grid column. Returns a Promise. Part of the jqxgrid.ai.js module. - `autoresizecolumns` (Arguments: type, Return Type: None): Auto-resizes all columns. - `autoresizecolumn` (Arguments: dataField, type, Return Type: None): Auto-resizes a column. - `beginupdate` (Arguments: None, Return Type: None): Starts an update operation. This is appropriate when calling multiple methods or set multiple properties at once. Optional boolean parameter: suspendAllActions. - `clear` (Arguments: None, Return Type: None): Clears the Grid contents. - `createChart` (Arguments: type, dataSource, Return Type: None): Creates a Chart from the Grid data. - `destroy` (Arguments: None, Return Type: None): Removes the Grid from the document and releases its resources. - `endupdate` (Arguments: None, Return Type: None): Ends the update operation. - `ensurerowvisible` (Arguments: rowBoundIndex, Return Type: None): Scrolls to a row. The parameter is a bound index. - `focus` (Arguments: None, Return Type: None): Sets the keyboard Focus to the jqxGrid widget. - `getcolumnindex` (Arguments: dataField, Return Type: Number): Gets the index of a column in the columns collection. - `getcolumn` (Arguments: dataField, Return Type: Object): Gets a column by datafield value.Column's fields: - `getcolumnproperty` (Arguments: dataField, propertyName, Return Type: Object): Gets a property of a column. - `getrowid` (Arguments: rowBoundIndex, Return Type: String): Gets the id of a row. The returned value is a 'string' or 'number' depending on the id's type. The parameter is the row's bound index. - `getrowdata` (Arguments: rowBoundIndex, Return Type: Object): Gets the data of a row. The returned value is a JSON object. The parameter is the row's bound index. Note: If you pass a bound index of a row which is not visible in the Grid, the method returns null. - `getrowdatabyid` (Arguments: rowID, Return Type: Object): Gets the data of a row. The returned value is a JSON object. The parameter is the row's id. - `getrowboundindexbyid` (Arguments: rowID, Return Type: Number): Gets the index of a row in the array returned by the `getboundrows` method. - `getrowboundindex` (Arguments: rowDisplayIndex, Return Type: Number): Gets the index of a row in the array returned by the `getboundrows` method. - `getrows` (Arguments: None, Return Type: Array): Gets all rows. Returns an array of all rows loaded in the Grid. If the Grid is filtered, the returned value is an array of the filtered records. - `getboundrows` (Arguments: None, Return Type: Array): Gets all rows loaded from the data source. The method returns an Array of all rows. The Grid's sorting, filtering, grouping and paging will not affect the result of this method. - `getdisplayrows` (Arguments: None, Return Type: Array): Gets all rows that are currently displayed in the Grid. The method returns an Array of the displayed rows. The Grid's sorting, filtering, grouping and paging will affect the result of this method. - `getdatainformation` (Arguments: None, Return Type: Object): Gets bound data information. - `getsortinformation` (Arguments: None, Return Type: Object): Gets the sort information. - `getpaginginformation` (Arguments: None, Return Type: Object): Gets the paging information. - `hidecolumn` (Arguments: dataField, Return Type: None): Hides a column. - `hideloadelement` (Arguments: None, Return Type: None): Hides the data loading image. - `hiderowdetails` (Arguments: rowBoundIndex, Return Type: None): Hides the details of a row. - `iscolumnvisible` (Arguments: dataField, Return Type: Boolean): Gets whether a column is visible. Returns a boolean value. - `iscolumnpinned` (Arguments: dataField, Return Type: Boolean): Gets whether a column is pinned. Returns a boolean value. - `localizestrings` (Arguments: localizationobject, Return Type: None): Localizes the grid strings. This method allows you to change the values of all Grid strings and also to change the cells formatting settings. - `pincolumn` (Arguments: dataField, Return Type: None): Pins the column. - `refreshdata` (Arguments: None, Return Type: None): Refreshes the data. - `refresh` (Arguments: None, Return Type: None): Repaints the Grid View. - `render` (Arguments: None, Return Type: None): Renders the Grid contents. This method completely refreshes the Grid cells, columns, layout and repaints the view. - `scrolloffset` (Arguments: top, left, Return Type: None): Scrolls the grid contents. - `scrollposition` (Arguments: None, Return Type: Object): Returns the scrollbars position. - `showloadelement` (Arguments: None, Return Type: None): Shows the data loading image. - `showrowdetails` (Arguments: rowBoundIndex, Return Type: None): Shows the details of a row. - `setcolumnindex` (Arguments: dataField, index, Return Type: None): Sets the index of a column in the columns collection. - `setcolumnproperty` (Arguments: dataField, propertyName, propertyValue, Return Type: None): Sets a property of a column.Possible property names: 'text', 'hidden', 'hideable', 'renderer', 'cellsrenderer', 'align', 'cellsalign', 'cellsformat', 'pinned', 'contenttype', 'resizable', 'filterable', 'editable', 'cellclassname', 'classname', 'width', 'minwidth', 'maxwidth' - `showcolumn` (Arguments: dataField, Return Type: None): Shows a column. - `unpincolumn` (Arguments: dataField, Return Type: None): Unpins the column. - `updatebounddata` (Arguments: type, Return Type: None): Updates the bound data and refreshes the grid. You can pass 'filter' or 'sort' as parameter, if the update reason is change in 'filtering' or 'sorting'. - `updating` (Arguments: None, Return Type: Boolean): Gets the updating operation state. Returns a boolean value. - `getsortcolumn` (Arguments: None, Return Type: String): Gets the sort column. Returns the column's datafield or null, if sorting is not applied. - `removesort` (Arguments: None, Return Type: None): Removes the sorting. - `sortby` (Arguments: dataField, sortOrder, Return Type: None): Sorts the Grid data. - `addgroup` (Arguments: dataField, Return Type: None): Groups by a column. - `cleargroups` (Arguments: None, Return Type: None): Clears all groups. - `collapsegroup` (Arguments: group, Return Type: None): Collapses a group. - `collapseallgroups` (Arguments: None, Return Type: None): Collapses all groups. - `expandallgroups` (Arguments: None, Return Type: None): Expands all groups. - `expandgroup` (Arguments: group, Return Type: None): Expands a group. - `getrootgroupscount` (Arguments: None, Return Type: Number): Gets the number of root groups. - `getgroup` (Arguments: groupIndex, Return Type: Object): Gets a group. The method returns an object with details about the Group. The object has the following fields: - `insertgroup` (Arguments: groupIndex, dataField, Return Type: None): Groups by a column. - `iscolumngroupable` (Arguments: None, Return Type: Boolean): Gets whether the user can group by a column. Returns a boolean value. - `removegroupat` (Arguments: groupIndex, Return Type: None): Removes a group at specific index. - `removegroup` (Arguments: dataField, Return Type: None): Removes a group. - `addfilter` (Arguments: dataField, filterGroup, refreshGrid, Return Type: None): Adds a filter to the Grid. - `applyfilters` (Arguments: None, Return Type: None): Applies all filters to the Grid. - `clearfilters` (Arguments: None, Return Type: None): Clears all filters from the Grid. You can call the method with optional boolean parameter. - `getfilterinformation` (Arguments: None, Return Type: Any): Gets the information about the Grid filters. The method returns an array of the applied filters. The returned information includes the filter objects and filter columns. Each filter in the Array has the following fields: - `getcolumnat` (Arguments: index, Return Type: Object): Method: getcolumnat - `removefilter` (Arguments: dataField, refreshGrid, Return Type: None): Removes a filter from the Grid. - `refreshfilterrow` (Arguments: None, Return Type: None): Refreshes the filter row and updates the filter widgets. The filter row's widgets are synchronized with the applied filters. - `gotopage` (Arguments: pagenumber, Return Type: None): Navigates to a page when the Grid paging is enabled i.e when the pageable property value is true. - `gotoprevpage` (Arguments: None, Return Type: None): Navigates to a previous page when the Grid paging is enabled i.e when the pageable property value is true. - `gotonextpage` (Arguments: None, Return Type: None): Navigates to a next page when the Grid paging is enabled i.e when the pageable property value is true. - `addrow` (Arguments: rowIds, data, rowPosition, Return Type: None): Adds a new row or multiple rows. - `begincelledit` (Arguments: rowBoundIndex, dataField, Return Type: None): Shows the cell's editor. - `beginrowedit` (Arguments: rowBoundIndex, Return Type: None): Shows the cell editors for an entire row. - `closemenu` (Arguments: None, Return Type: None): Closes a column's menu. - `deleterow` (Arguments: rowIds, Return Type: None): Deletes a row or multiple rows. Returns a boolean value. - `endcelledit` (Arguments: rowBoundIndex, dataField, confirmChanges, Return Type: None): Hides the edit cell's editor and saves or cancels the changes. - `endrowedit` (Arguments: rowBoundIndex, confirmChanges, Return Type: None): Hides the edited row's editors and saves or cancels the changes. - `getcell` (Arguments: rowBoundIndex, datafield, Return Type: Object): Gets a cell. Returns an object with the following fields: - `getcellatposition` (Arguments: left, top, Return Type: Object): Gets a cell at specific position. Returns an object with the following fields: - `getcelltext` (Arguments: rowBoundIndex, dataField, Return Type: String): Gets the text of a cell. - `getcelltextbyid` (Arguments: rowID, dataField, Return Type: String): Gets the text of a cell. - `getcellvaluebyid` (Arguments: rowID, dataField, Return Type: Object): Gets the value of a cell. - `getcellvalue` (Arguments: rowBoundIndex, dataField, Return Type: Object): Gets the value of a cell. - `isBindingCompleted` (Arguments: None, Return Type: Boolean): Returns whether the binding is completed and if the result is true, this means that you can invoke methods and set properties. - `openmenu` (Arguments: dataField, Return Type: None): Displays a column's menu. - `setcellvalue` (Arguments: rowBoundIndex, dataField, value, Return Type: None): Sets a new value to a cell. - `setcellvaluebyid` (Arguments: rowID, dataField, value, Return Type: None): Sets a new value to a cell. - `showvalidationpopup` (Arguments: rowBoundIndex, dataField, validationMessage, Return Type: None): Displays a validation popup below a Grid cell. - `updaterow` (Arguments: rowIds, data, Return Type: None): Updates a row or multiple rows. - `clearselection` (Arguments: None, Return Type: None): Clears the selection. - `getselectedrowindex` (Arguments: None, Return Type: Number): The expected selection mode is 'singlerow', 'multiplerows' or 'multiplerowsextended' - `getselectedrowindexes` (Arguments: None, Return Type: Array): The expected selection mode is 'singlerow', 'multiplerows' or 'multiplerowsextended' - `getselectedcell` (Arguments: None, Return Type: Object): The expected selection mode is 'singlecell', 'multiplecells' or 'multiplecellsextended' - `getselectedcells` (Arguments: None, Return Type: Array): The expected selection mode is 'singlecell', 'multiplecells' or 'multiplecellsextended' - `showSidePanel` (Arguments: selector, width, callbackFn, Return Type: None) - `closeSidePanel` (Arguments: None, Return Type: None): Closes the Grid's side panel. - `selectcell` (Arguments: rowBoundIndex, dataField, Return Type: None): The expected selection mode is 'singlecell', 'multiplecells' or 'multiplecellsextended' - `selectallrows` (Arguments: None, Return Type: None): The selection mode should be set to: 'multiplerows' or 'multiplerowsextended' - `selectrow` (Arguments: rowBoundIndex, Return Type: None): The expected selection mode is 'singlerow', 'multiplerows' or 'multiplerowsextended' - `unselectrow` (Arguments: rowBoundIndex, Return Type: None): The expected selection mode is 'singlerow', 'multiplerows' or 'multiplerowsextended' - `unselectcell` (Arguments: rowBoundIndex, dataField, Return Type: None): The expected selection mode is 'singlecell', 'multiplecells' or 'multiplecellsextended' - `getcolumnaggregateddata` (Arguments: dataField, aggregates, Return Type: String): Gets the aggregated data of a Grid column. Returns a JSON object. Each field name is the aggregate's type('min', 'max', 'sum', etc.). - `refreshaggregates` (Arguments: None, Return Type: None): Refreshes the Aggregates in the Grid's status bar. - `renderaggregates` (Arguments: None, Return Type: None): Renders the aggregates in the Grid's status bar. - `exportdata` (Arguments: dataType, fileName, exportHeader, rows, exportHiddenColumns, serverURL, charSet, Return Type: Any): Exports all rows loaded within the Grid to Excel, XML, CSV, TSV, HTML or JSON. - `exportview` (Arguments: dataType, fileName, Return Type: Any): Exports the view Grid to Excel, PDF, XML, CSV, TSV, HTML or JSON. - `openColumnChooser` (Arguments: columns, header, Return Type: None): Opens the Grid's column chooser - `getstate` (Arguments: None, Return Type: Object): Gets the Grid's state. the getstate method gets the following information: 'sort column, sort order, page number, page size, applied filters and filter row values, column widths and visibility, cells and rows selection and groups. - `loadstate` (Arguments: stateobject, Return Type: None): Loads the Grid's state. the loadstate method loads the following information: 'sort column, sort order, page number, page size, applied filters and filter row values, column widths and visibility, cells and rows selection and groups. - `savestate` (Arguments: None, Return Type: Object): Saves the Grid's current state. the savestate method saves the following information: 'sort column, sort order, page number, page size, applied filters and filter row values, column widths and visibility, cells and rows selection and groups. --- ### Bind the Vue Grid to data Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-data-binding.htm > This tutorial shows the two ways to give jqxGrid its rows in a Vue 3 app: let the grid's data adapter load a URL, or load the data yourself, keep it in a ref… This tutorial shows the two ways to give jqxGrid its rows in a Vue 3 app: let the grid's data adapter load a URL, or load the data yourself, keep it in a `ref`, and hand it to the grid. You will also add and remove rows by changing that ref. It is the first of a series of jqxGrid tutorials for Vue. Each one is a complete `src/App.vue`, written with ` ``` The `datafields` types matter: a `number` field sorts and formats as a number (`cellsformat: 'c2'` writes it as currency), and a `bool` field fills the checkbox column. `id: 'id'` names the field that identifies a row, which methods such as `updaterow` and `getrowdatabyid` use. #### 2. Load the data yourself and keep it in a ref When the app needs the rows too (to count them, show them elsewhere, or change them), load them with `fetch` and keep them in a ref. A `shallowRef` suits a list that is replaced rather than changed in place: Vue tracks the array, and does not wrap every row in a reactive proxy before the grid reads it. ```typescript const grid = ref(null); // The rows. A shallowRef: the array is replaced, never changed in place, so Vue tracks the // array itself and does not wrap every row in a proxy. const products = shallowRef([]); const error = ref(null); // Load the rows once. The AbortController stops the request if the component is unmounted. const controller = new AbortController(); onMounted(() => { fetch('/products.json', { signal: controller.signal }) .then((response) => { if (!response.ok) { throw new Error(`HTTP ${response.status}`); } return response.json() as Promise; }) .then((rows) => { products.value = rows; }) .catch((e: Error) => { if (e.name !== 'AbortError') { error.value = e.message; } }); }); onUnmounted(() => controller.abort()); ``` The request starts in `onMounted`, and the `AbortController` cancels it if the component is unmounted before it answers. A failed request ends in the `catch`, and the template shows the message. #### 3. Give the grid new rows The grid keeps one data adapter for its whole life. The adapter keeps the settings object it was made from, so when the rows change, a watcher puts them in its `localdata` and calls the grid's `updatebounddata`, which binds the grid to them: ```typescript // One data adapter for the grid's life. It keeps this settings object: when the rows change, // they go into its localdata, and updatebounddata binds the grid to them. 'sort' sorts them as // the user sorted the grid (without it, 27.1.0 drops the sort, and earlier versions show them // unsorted under the sort arrow). const settings = { localdata: products.value, datatype: 'array', id: 'id', datafields }; const source = new jqx.dataAdapter(settings); watch(products, (rows) => { settings.localdata = rows; grid.value?.updatebounddata('sort'); }); ``` Why not a `computed` that makes a new adapter for `:source`, as one might in other frameworks? That works in jqwidgets-scripts 27.1.0, but not before it. Earlier versions apply all the Grid component's props to the grid again whenever it re-renders, and the props a template does not set (with their default values) come after the ones it does. A new `source` is therefore followed by defaults such as `showdefaultloadelement` and `commandcolumn`, and the grid stays on *Loading...*: the new rows are bound, but not drawn. Keeping `source` the same adapter and changing the rows inside it works with every version. `'sort'` tells the grid to sort the new rows the way the user sorted it. Without it, 27.1.0 drops the user's sort and shows the rows in their own order; earlier versions show them in their own order while the column header still shows the sort arrow. To add or remove rows, the buttons replace the array; the watcher and the grid follow: ```typescript function addProduct() { const current = products.value; const id = Math.max(0, ...current.map((p) => p.id)) + 1; products.value = [...current, { id, name: `New product ${id}`, category: 'Beverages', price: 9.5, inStock: true }]; } function removeOutOfStock() { products.value = products.value.filter((p) => p.inStock); } ``` Rebinding is the right tool when the data set itself changes. To change a few values in rows the grid already shows, call the grid's own methods instead (`setcellvalue`, `updaterow`); [Large data sets and live updates](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-large-data.htm) shows why that is much faster. #### The complete example Replace `src/App.vue`: ```vue ``` Run `npm run dev` and open the address it prints. The grid shows the eight products; the buttons add a row and remove the products that are not in stock, and the count next to them follows. #### Next - [Sorting, filtering and paging from Vue](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-sorting-filtering-paging.htm) - [Server-side paging, sorting and filtering](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-server-side.htm), for tables too large to load at once - Rows from a backend: [Supabase](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-supabase.htm), [Cloud Firestore](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-firebase.htm) or [a GraphQL API](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-graphql.htm) - [Vue Grid API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm) --- ### Sorting, filtering and paging from Vue Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-sorting-filtering-paging.htm > jqxGrid sorts, filters and pages on its own once you turn those features on. jqxGrid sorts, filters and pages on its own once you turn those features on. This tutorial goes a step further: the component reads the grid's state to show a summary line, and controls the grid from its own search box and buttons. It also explains the rule that keeps a grid working inside a Vue component: give `JqxGrid` props that never change. The finished example: 500 orders with sorting, a filter row and paging, and a status line the component keeps up to date. #### Before you start Use a Vite and Vue 3 app set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm). [Bind the Vue Grid to data](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-data-binding.htm) explains the data adapter used here. #### 1. Turn the features on `sortable` lets users sort by clicking a column header. `filterable` with `showfilterrow` adds a row of filter inputs under the headers, and each column's `filtertype` picks the input: text by default, `checkedlist` for a list of values, `number` for numbers, `range` for a date range. `pageable` adds a pager, and `pagesizeoptions` lists the page sizes a user can pick. ```typescript const columns = [ { text: 'Customer', datafield: 'customer', width: 200 }, { text: 'Product', datafield: 'product', width: 140, filtertype: 'checkedlist' }, { text: 'Quantity', datafield: 'quantity', width: 100, cellsalign: 'right', align: 'right', filtertype: 'number' }, { text: 'Price', datafield: 'price', width: 100, cellsalign: 'right', align: 'right', cellsformat: 'c2', filtertype: 'number' }, { text: 'Date', datafield: 'date', cellsformat: 'yyyy-MM-dd', filtertype: 'range' } ]; ``` #### 2. Give the grid props that never change Each time the Grid component re-renders, it applies its props to the grid again: in jqwidgets-scripts 27.1.0 the props whose value changed, in earlier versions all of them, `source` included. A new `source` makes the grid bind its data again and drop its sort, filters and page, and in 27.1.0 an array made during the render, such as `:pagesizeoptions="sizes.slice()"`, still sends it back to its first page. Vue re-renders a child component only when one of its props has a new value. So make every prop of `JqxGrid` a constant: the adapter, the columns and the page sizes are plain constants of the script, and the event handlers are functions declared in it. A new status line, or a key typed in the search box, then re-renders this component but not the grid, which keeps its sort, filters and page. ```vue ``` Vue's compiler treats an inline literal such as `:pagesizeoptions="['10', '25', '50']"` as a constant, and caches an inline handler such as `@sort="() => describe()"`, so those are safe too. What re-renders the grid is a prop whose value changes: a ref or computed passed to it, or an expression that builds a new object each time, such as `:columns="makeColumns()"`. #### 3. Read the grid's state The grid raises `sort`, `filter`, `pagechanged` and `pagesizechanged`; the component listens with `@sort`, `@filter` and so on. All four call the same function, which asks the grid for its current state through the template ref and stores a summary in a ref: ```typescript // What the grid shows now: read from the grid after it sorts, filters or pages. function describe() { const g = grid.value; if (!g) { return; } const paging = g.getpaginginformation(); const sort = g.getsortinformation(); const rows = g.getdatainformation().rowscount; const sorted = sort.sortcolumn ? `sorted by ${sort.sortcolumn} ${sort.sortdirection.ascending ? 'ascending' : 'descending'}` : 'not sorted'; status.value = `${rows} orders, page ${Number(paging.pagenum) + 1} of ${paging.pagescount}, ${sorted}`; } ``` ```typescript // The grid binds its data while it is created, before the component's onMounted runs: // describe it once then. onMounted(describe); ``` A grid with local data binds while it is created, before the Grid component listens for its events, so a `@bindingcomplete` handler would not run. The component describes the grid once in `onMounted` instead: a child is mounted before its parent, so the grid exists by then. #### 4. Control the grid from the component Any grid method can be called through the template ref. A search box of the component's own, bound with `v-model`, becomes a filter on the Customer column through a watcher: `removefilter` drops the previous one without redrawing, `addfilter` adds a filter group, and `applyfilters` runs them. ```typescript // A customer search box of the app's own, applied as a grid filter on one column. watch(search, (text) => { const g = grid.value; if (!g) { return; } g.removefilter('customer', false); if (text) { const group = new jqx.filter(); group.addfilter(0, group.createfilter('stringfilter', text, 'contains')); g.addfilter('customer', group); } g.applyfilters(); }); ``` Sorting and paging work the same way: `sortby('quantity', 'desc')`, `gotopage(0)`, and to undo everything `clearfilters()` and `removesort()`. ```typescript function showLargestOrders() { grid.value?.sortby('quantity', 'desc'); grid.value?.gotopage(0); } function reset() { search.value = ''; grid.value?.clearfilters(); grid.value?.removesort(); grid.value?.gotopage(0); } ``` #### The complete example ```vue ``` Type part of a customer's name, for example *ernst*: the grid shows 62 of the 500 orders and the summary line follows. *Largest orders first* sorts by quantity, and *Reset* clears the filters and the sort. #### Next - [Editing and validation](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-editing.htm) - [Server-side paging, sorting and filtering](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-server-side.htm) - [Export and saving the layout](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-export-state.htm): keep the sort and filters between visits --- ### Editing and validation in the Vue Grid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-editing.htm > This tutorial makes jqxGrid editable: text, a drop-down list, a number input with validation, a date picker and a checkbox. This tutorial makes jqxGrid editable: text, a drop-down list, a number input with validation, a date picker and a checkbox. The grid keeps the edited data; Vue keeps a list of what changed, shows it, and hands it to a save function. The finished example: double-click a cell to edit it; the changes are counted and saved together. #### Before you start Use a Vite and Vue 3 app set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm), and read the section on constant props in [Sorting, filtering and paging from Vue](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-sorting-filtering-paging.htm): recording a change updates a ref of the component, and the grid must not re-render when it does. #### 1. Make the grid editable `editable` turns editing on. `editmode="dblclick"` starts an edit with a double click (the default is a click on a selected cell), and `selectionmode="singlecell"` selects cells rather than rows, which suits editing. Enter or a click elsewhere ends the edit; Esc cancels it. ```vue ``` #### 2. Choose an editor per column, and validate A column's `columntype` picks its editor: `dropdownlist`, `numberinput`, `datetimeinput`, `checkbox`, or a text box by default. `createeditor` runs when the editor is created and receives the jQWidgets editor, so it can set the editor's own options, such as the list of departments. `editable: false` keeps a column read only. Two hooks check values: - `validation` receives the new value. Returning `true` accepts it; returning `{ result: false, message }` keeps the editor open with the message under it, until the value is valid or the user cancels. The salary column uses it. - `cellvaluechanging` runs after an edit and can change the value that is stored. The name column trims the text, and returns the old value when the new one is empty, which cancels the change. ```typescript const columns = [ { text: 'Name', datafield: 'name', width: 190, // A rule that needs the value as text: checked when the edit ends. cellvaluechanging: (_row: number, _datafield: string, _columntype: string, oldvalue: unknown, newvalue: unknown) => { // Returning the old value cancels the change. return String(newvalue).trim() === '' ? oldvalue : String(newvalue).trim(); } }, { text: 'Department', datafield: 'department', width: 150, columntype: 'dropdownlist', createeditor: (_row: number, _value: unknown, editor: any) => { editor.jqxDropDownList({ source: departments, autoDropDownHeight: true }); } }, { text: 'Salary', datafield: 'salary', width: 130, columntype: 'numberinput', cellsformat: 'c0', cellsalign: 'right', align: 'right', // The value stays in the editor and the message shows until it is valid. validation: (_cell: unknown, value: number | undefined) => { if (value === undefined || value < 20000 || value > 300000) { return { result: false, message: 'Enter a salary between 20,000 and 300,000.' }; } return true; }, createeditor: (_row: number, _value: unknown, editor: any) => { editor.jqxNumberInput({ decimalDigits: 0, digits: 6, spinButtons: true }); } }, { text: 'Start date', datafield: 'startDate', width: 130, columntype: 'datetimeinput', cellsformat: 'yyyy-MM-dd' }, { text: 'Remote', datafield: 'remote', columntype: 'checkbox', width: 80 }, // Read only: the id is not editable. { text: 'Id', datafield: 'id', width: 60, editable: false } ]; ``` #### 3. Track the changes in Vue The grid raises `cellvaluechanged` after each accepted edit, and the component listens with `@cellvaluechanged`. The details are in `event.args`: the row index, the field, and the old and new values. The handler adds them to a list in a ref. It does not put the edited rows back into the grid's source: the grid already shows them, and binding again would only redraw what is there. ```typescript // The grid keeps the edited data; Vue keeps the list of what changed, for saving. function onCellValueChanged({ args }: CellValueChangedEvent) { const id = Number(grid.value?.getrowid(args.rowindex)); changes.value.push({ id, field: args.datafield, oldValue: args.oldvalue, newValue: args.newvalue }); } ``` The list re-renders the component after every edit. `JqxGrid`'s props are all constants, so the grid itself is not re-rendered and keeps the edited values. With a prop that changed, the Grid component of versions before jqwidgets-scripts 27.1.0 would apply all its props again: the grid would bind `source` again, lose the edits and stay on *Loading...*, as [Bind the Vue Grid to data](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-data-binding.htm) explains. 27.1.0 applies only the props whose value changed. To save, `getrows()` returns the grid's current rows, edits included. The example sends only the rows that changed, and clears the list once they are saved. ```typescript function save() { const rows = grid.value?.getrows() ?? []; const changedIds = new Set(changes.value.map((c) => c.id)); const payload = rows.filter((row) => changedIds.has(row.id)); // Send payload to your server here, for example with fetch('/api/employees', { method: 'PUT', ... }). console.log('Saving', payload); changes.value = []; } ``` #### The complete example ```vue ``` Double-click Nancy Davolio's salary and type 5: the message *Enter a salary between 20,000 and 300,000* appears and the editor stays open. Type 61000 and press Enter: the cell shows $61,000 and the change appears in the list. *Save changes* logs the changed rows and empties the list. #### Next - [Selection and master-detail](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-master-details.htm) - [Custom cell rendering](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-cell-rendering.htm) - [Cells editing](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-cells-editing.htm), and the column options in the [Vue Grid API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm) (`columns`) --- ### Selection and master-detail with the Vue Grid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-master-details.htm > This tutorial connects two grids through Vue state: selecting a customer in the first grid shows that customer's orders in the second, with a summary computed… This tutorial connects two grids through Vue state: selecting a customer in the first grid shows that customer's orders in the second, with a summary computed by Vue. It is the usual shape of a master-detail screen. The finished example: selecting a customer shows their orders in a second grid. #### Before you start Use a Vite and Vue 3 app set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm). The section on constant props in [Sorting, filtering and paging from Vue](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-sorting-filtering-paging.htm) explains why both grids here get props that never change. #### 1. Report the selection to Vue With `selectionmode="singlerow"`, the grid raises `rowselect` when a row is selected. Its `event.args.row` holds the row's data. The `@rowselect` handler puts it in a `shallowRef`: ```typescript const ordersGrid = ref(null); // The selected customer, from the master grid's rowselect event. const customer = shallowRef(null); function onRowSelect({ args }: RowSelectEvent) { customer.value = args.row; } ``` A new selection re-renders the component. The master grid's props are all constants, so the master grid is not re-rendered and keeps its selection. If one of them changed, versions before jqwidgets-scripts 27.1.0 would apply all of them again and the grid would bind its data again; 27.1.0 applies only the changed one. #### 2. Give the detail grid the selected rows The selected customer's orders are a `computed` of the customer's id. A computed passes a change on only when its value is a new one, and the id is a string: selecting the same customer again, even as a new object, changes nothing. The detail grid keeps one adapter, and a watcher puts each new list of orders in its `localdata` and calls `updatebounddata`, so the detail grid binds again only when another customer is selected: ```typescript // The selected customer's orders. A computed passes a change on only when its value is a new // one: the id is a string, so the orders change only when another customer is selected. const customerId = computed(() => customer.value?.id); const customerOrders = computed(() => orders.filter((o) => o.customerId === customerId.value)); // One adapter for the detail grid. When the orders change, they go into its localdata and the // detail grid binds to them. (The first time, the grid does not exist yet: it is created with // them, when the v-if below shows it.) const orderSettings = { localdata: [] as Order[], datatype: 'array', id: 'id', datafields: [ { name: 'id', type: 'number' }, { name: 'date', type: 'date' }, { name: 'product', type: 'string' }, { name: 'quantity', type: 'number' }, { name: 'total', type: 'number' } ] }; const orderSource = new jqx.dataAdapter(orderSettings); watch(customerOrders, (rows) => { orderSettings.localdata = rows; ordersGrid.value?.updatebounddata(); }); ``` The detail grid is inside a `v-if`, so the first selection creates it. The watcher runs before Vue updates the page, so the orders are in the adapter by then, and `ordersGrid.value` is still `null`. A new adapter through `:source` works in 27.1.0, but not before it: earlier versions apply the new source before the defaults of the props the template does not set, and the grid stays on *Loading...* (see [Bind the Vue Grid to data](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-data-binding.htm)). Here the orders are already in memory. With a server, give the adapter a `url` instead, change it when the customer changes (for example to `` `/api/customers/${id}/orders` ``), and call `updatebounddata`: the detail grid loads them. #### 3. Show the rest with Vue Everything around the grids is ordinary Vue: the heading, the `v-if` and `v-else`, and totals computed from the same orders. ```typescript const totals = computed(() => ({ count: customerOrders.value.length, sum: customerOrders.value.reduce((s, o) => s + o.total, 0) })); ``` ```vue ``` #### The complete example ```vue ``` Select *Ernst Handel*: the heading reads *Orders of Ernst Handel, Graz*, the detail grid lists ten orders and the summary gives their total. Select another customer and the detail follows, while the first grid keeps the row you selected highlighted. #### Next - [Custom cell rendering](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-cell-rendering.htm) - [Grouping and aggregates](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-grouping-aggregates.htm) - The selection events and methods in the [Vue Grid API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-api.htm) --- ### Custom cell rendering in the Vue Grid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-cell-rendering.htm > Vue Grid: this tutorial changes how cells look: a coloured badge for a task's status, a progress bar, a red due date when a task is late, and a button in each… This tutorial changes how cells look: a coloured badge for a task's status, a progress bar, a red due date when a task is late, and a button in each row that tells Vue which task to open. It also shows how to keep text that users typed from being read as HTML. The finished example: badges, progress bars, red dates and buttons, all drawn by the cells. #### Before you start Use a Vite and Vue 3 app set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm). #### 1. Return HTML from a cell renderer A column's `cellsrenderer` returns the HTML of the cell. It returns a string, not a Vue component or template: the grid draws its cells itself, for speed. Anything that comes from users, such as a task title, goes through an escaping function first. That applies to columns without a renderer as well. In jqwidgets-scripts 27.1.0 and earlier the grid writes a cell's value into the page as HTML, so a value such as `bold` in a plain text column shows in bold, and an `` with an `onerror` attribute runs its script. The grid's `enableSanitize` option stops the script but shows such a value escaped twice. The example therefore gives every column of user text, the task and its owner, a renderer that escapes it. The third task has ` ``` The grid shows a badge for each status, a progress bar, and the due dates of late tasks in red. *Open* on a row writes that task under the grid, from the ref. #### Next - [Grouping and aggregates](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-grouping-aggregates.htm) - [Vue Grid styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-styling-and-appearance.htm): themes and the grid's CSS classes - [Large data sets and live updates](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-large-data.htm) --- ### Grouping and aggregates in the Vue Grid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-grouping-aggregates.htm > Vue Grid: this tutorial groups sales by category, region or product, writes a custom header for each group, and shows totals: built-in aggregates such as sum… This tutorial groups sales by category, region or product, writes a custom header for each group, and shows totals: built-in aggregates such as sum and average, a custom one, for each group and for the whole table. The finished example: sales grouped by category, with totals for each group and for the whole table. #### Before you start Use a Vite and Vue 3 app set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm). #### 1. Group `groupable` turns grouping on and `groups` lists the columns to group by when the grid starts. `showgroupsheader` adds a bar above the headers: drag a column header there to group by it, or click the × on a group to remove it. `groupsrenderer` writes each group's header. It receives the group's value and an object with its rows (`subItems`) and, when grouped by more than one column, its subgroups. When the grid also shows totals for each group, those totals rows are in `subItems` and `subGroups` too, marked `totalsrow`, so the counts leave them out: ```typescript // A group's header: its value and how many rows it holds. data holds the group's rows // (subItems) and, when grouped by more than one column, its subgroups (subGroups). With // showgroupaggregates on, both also hold the group's totals rows, marked totalsrow, which the // counts leave out. function groupsrenderer(_text: string, group: unknown, _expanded: boolean, data: { subItems?: { totalsrow?: boolean }[]; subGroups?: { totalsrow?: boolean }[] }) { const { subItems = [], subGroups = [] } = data; const rows = subItems.filter((row) => !row.totalsrow).length; const groups = subGroups.filter((sub) => !sub.totalsrow).length; return `
${group} (${groups ? `${groups} groups` : `${rows} sales`})
`; } ``` #### 2. Add aggregates A column's `aggregates` lists what to compute: `sum`, `avg`, `min`, `max` and `count`, or a custom aggregate, an object whose key is its label and whose function is called for each row with the running result and the row's value. `showaggregates` with `showstatusbar` shows them for the whole table, and `showgroupaggregates` for each group. `aggregatesrenderer` decides how the totals in the status bar are written. The values it receives are already formatted with the column's `cellsformat`, so the revenue total arrives as *$57,320*. A group's totals row does not use it: it shows the column's aggregates in the grid's own format, such as *Sum:$18,140*. ```typescript const columns = [ { text: 'Region', datafield: 'region', width: 110 }, { text: 'Category', datafield: 'category', width: 140 }, { text: 'Product', datafield: 'product', width: 160 }, { text: 'Units', datafield: 'units', width: 150, cellsalign: 'right', align: 'right', // A custom aggregate next to the built-in ones: how many sales were of 30 units or more. aggregates: [ 'sum', 'avg', { 'Large sales': (count: number, value: number) => (value >= 30 ? count + 1 : count) } ] }, { text: 'Revenue', datafield: 'revenue', cellsalign: 'right', align: 'right', cellsformat: 'c0', aggregates: ['sum', 'max'], // How the totals are written. The grid passes them already formatted with the column's // cellsformat ("$73,560"). aggregatesrenderer: (aggregates: Record) => `
Total ${aggregates.sum}
Largest sale ${aggregates.max}
` } ]; ``` #### 3. Change the grouping from Vue A select of the component's own, bound with `v-model`, groups by another column: a watcher calls `cleargroups`, which removes the grouping, and `addgroup`, which adds a column to it. The buttons call `expandallgroups` and `collapseallgroups` through the template ref. ```typescript // Grouping from the app's own control (the grid's header also takes drag and drop). watch(groupedBy, (field) => { const g = grid.value; if (!g) { return; } g.cleargroups(); if (field) { g.addgroup(field); } }); ``` The new value of `groupedBy` re-renders the component, and `JqxGrid`'s props are all constants, so the grid is not re-rendered and keeps the new grouping. Re-rendered, the Grid component would apply all its props again, among them `source` and the starting `groups`, *category*. ```vue ``` #### The complete example ```vue ``` The grid opens grouped by category, with the groups closed: *Beverages (40 sales)*, *Condiments (20 sales)* and so on. Open one with its arrow, or with *Expand all*, to see its sales followed by its totals row. The status bar shows *Sum:2940*, *Avg:24.5* and *Large sales:45* under Units, and *Total $57,320* and *Largest sale $1,408* under Revenue. Pick *Region* to group by region instead. #### Next - [Export and saving the layout](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-export-state.htm) - [Server-side paging, sorting and filtering](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-server-side.htm) - [Grouping](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-grouping.htm): more grouping options of the Vue Grid --- ### Server-side paging, sorting and filtering with the Vue Grid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-server-side.htm > With server-side processing the grid asks the server for one page at a time, and the server sorts and filters before it pages. With server-side processing the grid asks the server for one page at a time, and the server sorts and filters before it pages. The browser never holds the whole table, so it works the same with ten thousand rows or ten million. This tutorial builds both halves: a Vue grid in virtual mode, and a small Node.js API with Express. The finished example: 10,000 orders paged, sorted and filtered by an Express server. #### Before you start Use a Vite and Vue 3 app set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm), and install Express for the API: ```bash npm install express ``` #### 1. What the grid sends In virtual mode, every page change, sort and filter becomes a request to the source's `url`, with the grid's state in the query string: | Parameter | Meaning | | --- | --- | | `pagenum`, `pagesize` | The page (from 0) and the rows per page. | | `sortdatafield`, `sortorder` | The column to sort by, and `asc` or `desc`. | | `filterscount` | How many filters there are. | | `filterdatafield0`, `filtercondition0`, `filtervalue0`, `filteroperator0`, … | For each filter: the column, the condition (`CONTAINS`, `EQUAL`, `GREATER_THAN` and so on), the value, and how it joins the previous filter on the same column (0 = and, 1 = or). Dates arrive in the format of their data field, here `yyyy-MM-dd`. | The server answers with the matching rows of the requested page and the number of matching rows, so the pager knows how many pages there are. #### 2. The API Save this as `server/server.js`. The data is generated in memory to keep the example self-contained; a real API runs the same filtering, sorting and paging in its database query. Column names and conditions are checked against lists before they are used (with `Object.hasOwn`, so a name such as `constructor` is not taken from the object's prototype), and the page size is kept in a range: nothing in a request reaches other data. ```javascript import express from 'express'; const app = express(); // Sample data: 10,000 orders kept in memory. A real API runs the same paging, sorting and // filtering in its database query. const customers = ['Alfreds Futterkiste', 'Bon app', 'Ernst Handel', 'Frankenversand', 'Königlich Essen', 'Que Delícia', 'Wartian Herkku', 'Wilman Kala']; const products = ['Chai', 'Chang', 'Ikura', 'Konbu', 'Tofu', 'Pavlova', 'Gnocchi', 'Mascarpone']; const day = 24 * 60 * 60 * 1000; const orders = Array.from({ length: 10000 }, (_, i) => ({ id: i + 1, customer: customers[(i * 7) % customers.length], product: products[(i * 5) % products.length], quantity: 1 + ((i * 13) % 50), price: Math.round((2 + ((i * 37) % 45) + ((i * 11) % 100) / 100) * 100) / 100, date: new Date(Date.UTC(2026, 0, 1) + ((i * 3) % 270) * day).toISOString().slice(0, 10) })); // The columns the grid may sort and filter by. Any other field name in a request is ignored, // so a request cannot reach other data. const COLUMNS = { customer: 'string', product: 'string', quantity: 'number', price: 'number', date: 'date' }; // The conditions the grid's filters send, for each type of column. const TEST = { CONTAINS: (a, b) => String(a).toLowerCase().includes(String(b).toLowerCase()), DOES_NOT_CONTAIN: (a, b) => !String(a).toLowerCase().includes(String(b).toLowerCase()), STARTS_WITH: (a, b) => String(a).toLowerCase().startsWith(String(b).toLowerCase()), ENDS_WITH: (a, b) => String(a).toLowerCase().endsWith(String(b).toLowerCase()), EQUAL: (a, b) => (typeof a === 'string' ? a.toLowerCase() === String(b).toLowerCase() : a === b), NOT_EQUAL: (a, b) => (typeof a === 'string' ? a.toLowerCase() !== String(b).toLowerCase() : a !== b), LESS_THAN: (a, b) => a < b, LESS_THAN_OR_EQUAL: (a, b) => a <= b, GREATER_THAN: (a, b) => a > b, GREATER_THAN_OR_EQUAL: (a, b) => a >= b }; // A filter value of the column's type. Dates arrive as yyyy-MM-dd, the format the grid's // date field declares, and compare as text. function typed(type, value) { if (type === 'number') return Number(value); if (type === 'date') return String(value).slice(0, 10); return String(value); } // The grid sends filterscount and, for each filter i: filterdatafield, filtercondition, // filtervalue and filteroperator (how it joins the previous filter on the same column: // 0 = and, 1 = or). Filters on different columns all have to match. function filterRows(rows, query) { const count = Math.min(Number(query.filterscount) || 0, 20); const byColumn = new Map(); for (let i = 0; i < count; i++) { const field = query[`filterdatafield${i}`]; const test = TEST[query[`filtercondition${i}`]]; if (!Object.hasOwn(COLUMNS, field) || !Object.hasOwn(TEST, query[`filtercondition${i}`])) continue; const value = typed(COLUMNS[field], query[`filtervalue${i}`]); if (!byColumn.has(field)) byColumn.set(field, []); byColumn.get(field).push({ test, value, or: query[`filteroperator${i}`] === '1' }); } if (!byColumn.size) return rows; return rows.filter((row) => [...byColumn].every(([field, filters]) => filters.reduce((ok, f, i) => { const hit = f.test(row[field], f.value); return i === 0 ? hit : f.or ? ok || hit : ok && hit; }, true) ) ); } app.get('/api/orders', (req, res) => { const query = req.query; let rows = filterRows(orders, query); // Sorting: sortdatafield and sortorder (asc or desc). const field = query.sortdatafield; if (Object.hasOwn(COLUMNS, field)) { const dir = query.sortorder === 'desc' ? -1 : 1; rows = [...rows].sort((a, b) => (a[field] < b[field] ? -dir : a[field] > b[field] ? dir : 0)); } // Paging: pagenum (from 0) and pagesize, kept in a sensible range. const pagesize = Math.min(Math.max(Number(query.pagesize) || 10, 1), 100); const pagenum = Math.max(Number(query.pagenum) || 0, 0); res.json({ total: rows.length, rows: rows.slice(pagenum * pagesize, (pagenum + 1) * pagesize) }); }); app.listen(3005, () => console.log('API on http://localhost:3005')); ``` Start it in its own terminal with `node server/server.js`. The create-vue template's `package.json` has `"type": "module"`, which lets the file use `import`. #### 3. Send /api to the API during development The page and the API run on different ports. Vite's proxy forwards requests to `/api`, so the grid can use a relative URL. Add the `server` section to `vite.config.ts`, next to the two jqwidgets-scripts settings: ```typescript import vue from '@vitejs/plugin-vue'; import { defineConfig, type Plugin } from 'vite'; // Before jqwidgets-scripts 27.1.0: globalize.js, which the Grid component imports, hands its code // `this` as the window. In an ES module `this` is undefined, and the dev server serves the file // as one, so `npm run dev` stops with "Cannot set properties of undefined (setting 'Globalize')". // (The production build is not affected.) This passes the window instead; with 27.1.0 it changes nothing. const globalizeWindow: Plugin = { name: 'jqwidgets-globalize-window', transform(code, id) { if (id.includes('jqwidgets-scripts/jqwidgets/globalization/globalize.js')) { return code.replace(/\}\(this\)\);/, '}(window));'); } } }; export default defineConfig({ plugins: [vue(), globalizeWindow], server: { // Requests to /api go to the Express server during development. proxy: { '/api': 'http://localhost:3005' } }, // Some jqWidgets themes still carry Internet Explorer CSS hacks (*zoom: 1; in 27.1.0 only light-ie // and dark-ie), which Vite's CSS minifier rejects; errorRecovery drops those lines instead of // failing the build. css: { lightningcss: { errorRecovery: true } } }); ``` In production, serve the built app and the API from the same site, or point the URL at the API's address. #### 4. The grid `virtualmode` tells the grid that the data comes a page at a time, and `rendergridrows` returns the rows the server sent. The source's `beforeprocessing` reads the total from each answer. Its `sort` and `filter` functions run when the user sorts or filters; they ask the server again with `updatebounddata`, through the template ref `grid`. A failed request calls the adapter's `loadError`, which puts the message in a ref, above the grid. The adapter is made once, when the component is set up, and is a plain constant, not a ref. Every prop of `JqxGrid` is a constant too, so the error message re-renders the component but not the grid: the grid sends no new request and keeps its page, sort and filters. ```vue ``` The adapter makes the requests itself, with `XMLHttpRequest`. To load the pages with `fetch` or a client library instead, give the adapter a `loadServerData` function, as the [Supabase](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-supabase.htm) and [GraphQL](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-graphql.htm) tutorials do. #### Try it With the API and `npm run dev` running, the pager reads *1-20 of 10000*. Click the Quantity header twice to sort from the largest order. Type *ernst* in the Customer filter and press Enter: the pager reads *1-20 of 1250*, still sorted by quantity, and the next page continues the same orders. Each of these is one request to `/api/orders`; open the browser's network panel to watch them. #### Next - The same grid on a backend service: [Supabase](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-supabase.htm), [Cloud Firestore](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-firebase.htm) or [a GraphQL API](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-graphql.htm) - The same API in other languages: [PHP](https://www.jqwidgets.com/jquery-widgets-documentation/documentation/phpintegration/php-server-side-grid-paging-and-sorting.htm), [ASP.NET Core](https://www.jqwidgets.com/jquery-widgets-documentation/documentation/asp.net-integration/asp.net-grid-paging-sorting-filtering.htm) and [Java](https://www.jqwidgets.com/jquery-widgets-documentation/documentation/java-integration/grid-server-side-sorting-paging-filtering-using-jsp.htm); the grid's requests are the same - [Large data sets and live updates](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-large-data.htm), when the rows fit in the browser --- ### Export and saving the layout of the Vue Grid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-export-state.htm > This tutorial exports the grid's rows to Excel, CSV, PDF and JSON files, and remembers the grid's layout (sort, filters, page, column widths and order) in the… This tutorial exports the grid's rows to Excel, CSV, PDF and JSON files, and remembers the grid's layout (sort, filters, page, column widths and order) in the browser, so it is back the next time the page opens. The finished example: export buttons, and a grid whose sort, filters and columns are kept between visits. #### Before you start Use a Vite and Vue 3 app set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm). Excel export needs JSZip: ```bash npm install jszip ``` #### 1. Export `exportdata(type, fileName)` builds the file in the browser and downloads it. The types include `xlsx`, `csv`, `tsv`, `pdf`, `json`, `xml` and `html`. The file holds every row as the grid sorts and filters it, not only the current page, with the values formatted as the cells show them. A number column without `cellsformat` is written with two decimals (*79.00*), so the *In stock* column sets `cellsformat: 'n0'`. Excel files need two imports that the Grid component does not make itself: the library's exporter, and JSZip, which the exporter looks for as a global. Without the first, the Excel button throws *DataExporter is not a constructor*; without JSZip, *Missing reference to 'jszip.min.js'*. The other file types need neither. ```typescript // Excel (xlsx) export: the Grid component does not load this part of the library, and it // builds the file with JSZip, which it looks for as a global. import 'jqwidgets-scripts/jqwidgets/jqxexport'; import JSZip from 'jszip'; (window as unknown as { JSZip: typeof JSZip }).JSZip = JSZip; ``` ```typescript // The rows as the grid shows them now (sorted and filtered), in a file. function exportAs(type: 'xlsx' | 'csv' | 'pdf' | 'json') { grid.value?.exportdata(type, 'products'); } ``` For a printout, `window.print()` prints the page; `exportdata('html', …)` gives a file with the grid's rows as an HTML table, if you prefer to print only those. #### 2. Save the layout `getstate()` returns the grid's layout as an object, and `loadstate(state)` puts it back. The component saves it to `localStorage` each time the user sorts, filters, pages, or resizes or moves a column (`@sort`, `@filter`, `@pagechanged`, `@pagesizechanged`, `@columnresized`, `@columnreordered`), and puts it back in `onMounted`, once the grid exists. It also keeps the layout the grid starts with, which *Reset the layout* loads again. The grid also has `savestate()`, which returns the same object but also writes it to `localStorage` under its own key, and throws when storage is blocked. `getstate()` leaves storage to your code. ```typescript const STORAGE_KEY = 'products-grid-state'; const grid = ref(null); const saved = ref(null); // The layout the grid starts with, for "Reset the layout". let initialState: unknown = null; // loadstate raises sort, filter and page events while it puts a layout back, before it is // done. Those must not be saved. let loading = false; function load(state: unknown) { loading = true; try { grid.value?.loadstate(state); } finally { loading = false; } } // Put back the state of the last visit once the grid exists. onMounted(() => { initialState = grid.value?.getstate() ?? null; let state: unknown = null; try { state = JSON.parse(localStorage.getItem(STORAGE_KEY) ?? 'null'); } catch { // ignore a damaged or unreadable entry } if (state) { load(state); } }); // Sorting, filtering, paging, a resized or moved column: the grid's state is saved each time. function saveState() { if (loading) { return; } try { localStorage.setItem(STORAGE_KEY, JSON.stringify(grid.value?.getstate())); saved.value = new Date().toLocaleTimeString(); } catch { // storage full or blocked (private window): the grid works without it } } function resetLayout() { if (initialState) { load(initialState); } try { localStorage.removeItem(STORAGE_KEY); } catch { // nothing saved } saved.value = null; } ``` The `loading` flag matters. `loadstate` raises the same `sort`, `filter` and `pagechanged` events while it puts the layout back. Without the flag, every visit saved the layout again before the user did anything, and the page opened with *Layout saved at …*. `initialState` and `loading` are plain variables, not refs: nothing on the page is drawn from them. Storage can fail (a private window, a full quota, a blocked site), so every access is in a `try` block: the grid works without it. To keep a user's layout across devices, send the same object to your server instead. The message next to *Reset the layout* re-renders the component each time the layout is saved. `JqxGrid`'s props are all constants, so the grid is not re-rendered and keeps the sort or filter that was just saved. #### The complete example ```vue ``` Sort by price and click *Excel*: `products.xlsx` holds all 60 products, the most expensive first. Reload the page: the grid is still sorted by price. *Reset the layout* puts back the starting sort, filters, page, column widths and order, and forgets the saved layout. #### Next - [Large data sets and live updates](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-large-data.htm) - [Grouping and aggregates](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-grouping-aggregates.htm) --- ### Large data sets and live updates in the Vue Grid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-large-data.htm > This tutorial puts 100,000 rows in a Vue grid and moves twenty of their prices every second, while the rest of the component keeps re-rendering. This tutorial puts 100,000 rows in a Vue grid and moves twenty of their prices every second, while the rest of the component keeps re-rendering. It covers the three things that keep such a grid fast: let it virtualize, keep Vue from re-rendering it, and change cells instead of replacing the data. The finished example: 100,000 rows, with twenty prices updated every second in a few milliseconds. #### Before you start Use a Vite and Vue 3 app set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm). #### 1. Let the grid virtualize With a fixed `height`, the grid creates elements only for the rows in view (16 here) and reuses them as you scroll, whatever the number of rows. `autoheight` makes the grid as tall as its rows, so it has to create every row of the page: keep it for small tables or with paging. The rows are made once, in a plain ` ``` #### 2. Keep Vue from re-rendering the grid The component has a clock that updates a ref every second, and each tick re-renders the component. Each re-render of the Grid component applies its props again (jqwidgets-scripts 27.1.0 the ones whose value changed, earlier versions all of them), and applying `source` binds all 100,000 rows again. Vue re-renders a child only when one of its props has a new value, so every prop of `JqxGrid` is a constant: ```vue ``` ```typescript // The clock re-renders the component every second. The grid's props never change, so the // grid itself is not touched. let clock = 0; onMounted(() => { clock = window.setInterval(() => { now.value = new Date(); }, 1000); }); onUnmounted(() => window.clearInterval(clock)); ``` Check the same in your own components: `source`, `columns` and every other object or array prop is a constant of the script, and every event handler a function declared in it. A ref, a computed, or an expression such as `:columns="makeColumns()"` is a new value whenever it changes, and the grid binds again. #### 3. Change cells, not the data To change a few values, set the cells: `setcellvalue` for each changed cell, between `beginupdate()` and `endupdate()` so that the grid draws once. `getrowboundindexbyid` finds a row's index from its id. Measured in this example, twenty rows take about 10 to 20 milliseconds. Twenty `updaterow` calls, one per row, took seconds, and a new source would bind all the rows again. ```typescript // Twenty of the watched rows change each second. Only the changed cells are set, inside one // beginupdate/endupdate pair, so the grid draws once for all of them. (Measured with // 100,000 rows: about 20 ms. updaterow for each row took over a second; a new source // would bind all 100,000 rows again.) function tick() { const g = grid.value; if (!g) { return; } const started = performance.now(); g.beginupdate(); for (let n = 0; n < 20; n++) { const id = String(1 + Math.floor(Math.random() * WATCHED)); const index = g.getrowboundindexbyid(id); const change = Math.round((Math.random() - 0.5) * 200) / 100; g.setcellvalue(index, 'price', Math.max(1, g.getcellvalue(index, 'price') + change)); g.setcellvalue(index, 'change', change); } g.endupdate(); lastUpdate.value = `20 rows updated in ${(performance.now() - started).toFixed(1)} ms`; } ``` A watcher on `live` starts the feed. Its `onCleanup` stops it when `live` goes off, and also when the component is unmounted, since a watcher made in ` ``` The grid opens at once with 100,000 rows, and scrolling, sorting and filtering work on all of them. *Start live updates* moves twenty of the first two hundred prices each second, and the line next to the button gives the time each update took. #### Next - [Server-side paging, sorting and filtering](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-server-side.htm), for data that does not fit in the browser - [Sorting, filtering and paging from Vue](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-sorting-filtering-paging.htm) --- ### Bind the Vue Grid to Supabase Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-supabase.htm > Supabase gives every project a PostgreSQL database with a REST API, Row Level Security and live change events. [Supabase](https://supabase.com/) gives every project a PostgreSQL database with a REST API, Row Level Security and live change events. This tutorial connects a jqxGrid in a Vue 3 app to a Supabase table with the official JavaScript client, supabase-js: the database pages, sorts and filters 10,000 orders, edits are saved as the user makes them, and changes made anywhere else appear in the grid while it is open. The finished example: a Supabase table paged, sorted and filtered by the database. #### Before you start You need a Supabase project: a free one at [supabase.com/dashboard](https://supabase.com/dashboard), or a local one with the [Supabase CLI](https://supabase.com/docs/guides/local-development) (`supabase start`). The app is a Vite, Vue 3.5 and TypeScript app with jqwidgets-scripts, set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm): the theme imported in `src/main.ts` and the components declared in `src/jqwidgets-vue3.d.ts`. Add supabase-js: ```bash npm install @supabase/supabase-js ``` Before jqwidgets-scripts 27.1.0 the Grid needs two settings in `vite.config.ts`; they do no harm in 27.1.0: ```typescript import vue from '@vitejs/plugin-vue'; import { defineConfig, type Plugin } from 'vite'; // Before jqwidgets-scripts 27.1.0: globalize.js, which the Grid component imports, hands its code // `this` as the window. In an ES module `this` is undefined, and the dev server serves the file // as one, so `npm run dev` stops with "Cannot set properties of undefined (setting 'Globalize')". // (The production build is not affected.) This passes the window instead; with 27.1.0 it changes nothing. const globalizeWindow: Plugin = { name: 'jqwidgets-globalize-window', transform(code, id) { if (id.includes('jqwidgets-scripts/jqwidgets/globalization/globalize.js')) { return code.replace(/\}\(this\)\);/, '}(window));'); } } }; export default defineConfig({ plugins: [vue(), globalizeWindow], // Some jqWidgets themes still carry Internet Explorer CSS hacks (*zoom: 1; in 27.1.0 only light-ie // and dark-ie), which Vite's CSS minifier rejects; errorRecovery drops those lines instead of // failing the build. css: { lightningcss: { errorRecovery: true } } }); ``` The plugin is for `npm run dev`: the Grid component imports `globalize.js`, which before 27.1.0 passes `this` to its code as the window. The dev server serves the file as an ES module, where `this` is undefined, and the app stops with *Cannot set properties of undefined (setting 'Globalize')*. With 27.1.0 the plugin changes nothing. `errorRecovery` is for `npm run build`, which otherwise fails on the old browser hacks (`*zoom: 1`) of some theme files (in 27.1.0 only `light-ie` and `dark-ie` have them). #### 1. The table Run this SQL in the dashboard's SQL editor (or as a migration). It creates an `orders` table with 10,000 sample rows, and says what the browser may do with it: ```sql -- The orders table: 10,000 sample orders, and what the browser may do with them. create table public.orders ( id bigint generated always as identity primary key, customer text not null, product text not null, quantity integer not null check (quantity > 0), price numeric(10, 2) not null check (price >= 0), order_date date not null, status text not null default 'New' check (status in ('New', 'Shipped', 'Delivered', 'Cancelled')) ); -- 10,000 sample orders insert into public.orders (customer, product, quantity, price, order_date, status) select (array['Alfreds Futterkiste', 'Ana Trujillo', 'Antonio Moreno', 'Around the Horn', 'Berglunds snabbköp', 'Blauer See Delikatessen', 'Bólido Comidas', 'Ernst Handel'])[1 + i % 8], (array['Chai', 'Chang', 'Aniseed Syrup', 'Tofu', 'Konbu', 'Pavlova', 'Ikura', 'Queso Cabrales', 'Gnocchi', 'Mozzarella'])[1 + (i * 7) % 10], 1 + (i * 13) % 50, round((5 + (i * 37) % 9500 / 100.0)::numeric, 2), current_date - (i % 365), (array['New', 'Shipped', 'Delivered', 'Cancelled'])[1 + (i * 3) % 4] from generate_series(1, 10000) as i; -- Row Level Security: the browser uses the anon key, so the table says what that key may do. -- Here anyone may read orders and change their quantity and status; a real app checks the -- signed-in user (auth.uid()) in these policies. alter table public.orders enable row level security; create policy "Orders are readable" on public.orders for select to anon, authenticated using (true); create policy "Orders can be updated" on public.orders for update to anon, authenticated using (true) with check (true); grant select on public.orders to anon, authenticated; grant update (quantity, status) on public.orders to anon, authenticated; -- Realtime: changes to the table are sent to subscribed browsers (the same as switching on -- Realtime for the table in the dashboard). alter publication supabase_realtime add table public.orders; ``` The browser connects with the project's anon key, which anyone can read in the app's code. What it may do is decided in the database: **Row Level Security** is switched on and two policies allow reading and updating, and the column grants allow changing only `quantity` and `status`. An update of the price is refused by the database, whatever the app sends. In a real app the policies check the signed-in user, for example `using (auth.uid() = owner_id)`. The last line adds the table to Realtime, for step 5. #### 2. Connect The client goes in a module of its own, `src/supabase.ts`. A module runs once, when it is first imported, so every component that imports `supabase` shares one client; code in ` ``` #### Try it Run `npm run dev` and open the address it prints. The pager reads *1-20 of 10000*. Click the Quantity header twice to sort from the largest order, and type *ernst* in the Customer filter: the pager reads *1-20 of 1250*, still sorted. Type a name that no order has: the grid is empty and the pager reads *0-0 of 0*. Double-click a status, pick *Delivered*, and see the row change in the Table Editor of the dashboard. Open the app in a second tab and change a quantity in the first: the second tab shows it a moment later. #### Next - [Bind the Vue Grid to Cloud Firestore](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-firebase.htm) and [to a GraphQL API](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-graphql.htm) - [Cells editing](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-cells-editing.htm): the grid's editors and validation in detail - [Row Level Security](https://supabase.com/docs/guides/database/postgres/row-level-security) in the Supabase documentation --- ### Bind the Vue Grid to Cloud Firestore Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-firebase.htm > Vue Grid: cloud Firestore, the database of Firebase, keeps documents in collections and tells a listening app about every change. [Cloud Firestore](https://firebase.google.com/docs/firestore), the database of Firebase, keeps documents in collections and tells a listening app about every change. This tutorial shows the two ways to put a collection in a jqxGrid in a Vue 3 app: a live grid that holds the latest orders and changes with the database, and a grid that reads a large collection a page at a time with query cursors. Edits are written back to the documents, and the database's security rules decide what is accepted. The live grid: the latest 500 orders of a Firestore collection. #### Before you start You need a Firebase project with Cloud Firestore ([console.firebase.google.com](https://console.firebase.google.com/)), or the [Firestore emulator](https://firebase.google.com/docs/emulator-suite) on your computer: `npx firebase-tools emulators:start --only firestore --project demo-jqwidgets` (it needs Java 21). The examples use the emulator and a collection `orders` with fields `customer`, `product`, `quantity`, `price`, `orderDate` (a timestamp) and `status`. The app is a Vite, Vue 3.5 and TypeScript app with jqwidgets-scripts, set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm). Add the Firebase SDK: ```bash npm install firebase ``` Before jqwidgets-scripts 27.1.0 the Grid needs two settings in `vite.config.ts`; they do no harm in 27.1.0: ```typescript import vue from '@vitejs/plugin-vue'; import { defineConfig, type Plugin } from 'vite'; // Before jqwidgets-scripts 27.1.0: globalize.js, which the Grid component imports, hands its code // `this` as the window. In an ES module `this` is undefined, and the dev server serves the file // as one, so `npm run dev` stops with "Cannot set properties of undefined (setting 'Globalize')". // (The production build is not affected.) This passes the window instead; with 27.1.0 it changes nothing. const globalizeWindow: Plugin = { name: 'jqwidgets-globalize-window', transform(code, id) { if (id.includes('jqwidgets-scripts/jqwidgets/globalization/globalize.js')) { return code.replace(/\}\(this\)\);/, '}(window));'); } } }; export default defineConfig({ plugins: [vue(), globalizeWindow], // Some jqWidgets themes still carry Internet Explorer CSS hacks (*zoom: 1; in 27.1.0 only light-ie // and dark-ie), which Vite's CSS minifier rejects; errorRecovery drops those lines instead of // failing the build. css: { lightningcss: { errorRecovery: true } } }); ``` The plugin is for `npm run dev`: the Grid component imports `globalize.js`, which before 27.1.0 passes `this` to its code as the window. The dev server serves the file as an ES module, where `this` is undefined, and the app stops with *Cannot set properties of undefined (setting 'Globalize')*. With 27.1.0 the plugin changes nothing. `errorRecovery` is for `npm run build`, which otherwise fails on the old browser hacks (`*zoom: 1`) of some theme files (in 27.1.0 only `light-ie` and `dark-ie` have them). #### 1. Connect The app and the database go in a module of their own, `src/firebase.ts`. A module runs once, when it is first imported, so every component that imports `db` shares one database; code in ` ``` The paged grid: ```vue ``` #### Try it Start the emulator and add some orders (the emulator's UI, or a short script with `addDoc`), then run `npm run dev` and open the address it prints. Change a document in the Firebase console or the emulator UI: its row changes in the grid. Add an order dated today: it appears at the top. In the paged grid, go to page 3, then click the Quantity header: Firestore sorts and the grid shows page 3 of the new order. #### Next - [Bind the Vue Grid to Supabase](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-supabase.htm) and [to a GraphQL API](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-graphql.htm) - [Paging](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-paging.htm) and [filtering](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-datagrid-filtering.htm) in the Vue Grid - [Security rules](https://firebase.google.com/docs/firestore/security/get-started) in the Firebase documentation --- ### Bind the Vue Grid to a GraphQL API Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-graphql.htm > With GraphQL, the client says exactly which fields it wants and sends its arguments as typed variables. With GraphQL, the client says exactly which fields it wants and sends its arguments as typed variables. This tutorial connects a jqxGrid in a Vue 3 app to a GraphQL API with nothing but `fetch`: a query brings one page of orders, sorted and filtered on the server, and a mutation saves each edit. It builds the API too, with [GraphQL Yoga](https://the-guild.dev/graphql/yoga-server) on Node.js; the grid's side works the same with any GraphQL server, such as Apollo Server, Hasura or a.NET or Java one. The finished example: 10,000 orders from a GraphQL API, a page at a time. #### Before you start You need Node.js 22 or later for the API. Create a project for it and install GraphQL Yoga: ```bash npm init -y npm install graphql graphql-yoga npm pkg set type=module ``` The app is a Vite, Vue 3.5 and TypeScript app with jqwidgets-scripts, set up as in [Add a Grid to a Vue 3 app](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm). It needs no GraphQL client library. Before jqwidgets-scripts 27.1.0 the Grid needs two settings in `vite.config.ts`; they do no harm in 27.1.0: ```typescript import vue from '@vitejs/plugin-vue'; import { defineConfig, type Plugin } from 'vite'; // Before jqwidgets-scripts 27.1.0: globalize.js, which the Grid component imports, hands its code // `this` as the window. In an ES module `this` is undefined, and the dev server serves the file // as one, so `npm run dev` stops with "Cannot set properties of undefined (setting 'Globalize')". // (The production build is not affected.) This passes the window instead; with 27.1.0 it changes nothing. const globalizeWindow: Plugin = { name: 'jqwidgets-globalize-window', transform(code, id) { if (id.includes('jqwidgets-scripts/jqwidgets/globalization/globalize.js')) { return code.replace(/\}\(this\)\);/, '}(window));'); } } }; export default defineConfig({ plugins: [vue(), globalizeWindow], // Some jqWidgets themes still carry Internet Explorer CSS hacks (*zoom: 1; in 27.1.0 only light-ie // and dark-ie), which Vite's CSS minifier rejects; errorRecovery drops those lines instead of // failing the build. css: { lightningcss: { errorRecovery: true } } }); ``` The plugin is for `npm run dev`: the Grid component imports `globalize.js`, which before 27.1.0 passes `this` to its code as the window. The dev server serves the file as an ES module, where `this` is undefined, and the app stops with *Cannot set properties of undefined (setting 'Globalize')*. With 27.1.0 the plugin changes nothing. `errorRecovery` is for `npm run build`, which otherwise fails on the old browser hacks (`*zoom: 1`) of some theme files (in 27.1.0 only `light-ie` and `dark-ie` have them). #### 1. The API Save this as `server.js` and start it with `node server.js`. The schema is the contract between the grid and the server: an `orders` query with an offset, a page size, a sort and a list of filters, which returns the rows of the page and the number of matching orders, and an `updateOrder` mutation. ```javascript // A GraphQL API for the grid: orders a page at a time, sorted and filtered on the // server, and a mutation that changes an order. GraphQL Yoga, on Node.js. // node server.js (http://localhost:4000/graphql, or the port in PORT) import { createServer } from 'node:http'; import { createSchema, createYoga } from 'graphql-yoga'; import { GraphQLError } from 'graphql'; const typeDefs = /* GraphQL */ ` enum OrderField { id customer product quantity price orderDate status } enum Condition { CONTAINS EQUAL NOT_EQUAL GREATER_THAN LESS_THAN GREATER_THAN_OR_EQUAL LESS_THAN_OR_EQUAL } enum Status { New Shipped Delivered Cancelled } type Order { id: ID! customer: String! product: String! quantity: Int! price: Float! orderDate: String! status: Status! } type OrderPage { rows: [Order!]! total: Int! } input OrderFilter { field: OrderField! condition: Condition! value: String! } input OrderSort { field: OrderField! descending: Boolean = false } type Query { orders(offset: Int = 0, limit: Int = 20, sort: OrderSort, filters: [OrderFilter!] = []): OrderPage! } type Mutation { updateOrder(id: ID!, quantity: Int, status: Status): Order! } `; // 10,000 orders in memory, to keep the example self-contained; a real API asks its database. const customers = ['Alfreds Futterkiste', 'Ana Trujillo', 'Antonio Moreno', 'Around the Horn', 'Berglunds snabbköp', 'Blauer See Delikatessen', 'Bólido Comidas', 'Ernst Handel']; const products = ['Chai', 'Chang', 'Aniseed Syrup', 'Tofu', 'Konbu', 'Pavlova', 'Ikura', 'Queso Cabrales', 'Gnocchi', 'Mozzarella']; const statuses = ['New', 'Shipped', 'Delivered', 'Cancelled']; const today = new Date(); const orders = Array.from({ length: 10000 }, (_, k) => { const i = k + 1; const date = new Date(today.getFullYear(), today.getMonth(), today.getDate() - (i % 365)); return { id: String(i), customer: customers[i % 8], product: products[(i * 7) % 10], quantity: 1 + (i * 13) % 50, price: Math.round(500 + (i * 37) % 9500) / 100, orderDate: `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`, status: statuses[(i * 3) % 4] }; }); const numeric = new Set(['quantity', 'price']); const value = (order, field) => (field === 'id' ? Number(order.id) : order[field]); function matches(order, { field, condition, value: text }) { const v = value(order, field); const want = numeric.has(field) || field === 'id' ? Number(text) : text; if (typeof want === 'number' && Number.isNaN(want)) return false; switch (condition) { case 'CONTAINS': return String(v).toLowerCase().includes(String(want).toLowerCase()); case 'EQUAL': return typeof v === 'string' ? v.toLowerCase() === String(want).toLowerCase() : v === want; case 'NOT_EQUAL': return typeof v === 'string' ? v.toLowerCase() !== String(want).toLowerCase() : v !== want; case 'GREATER_THAN': return v > want; case 'LESS_THAN': return v < want; case 'GREATER_THAN_OR_EQUAL': return v >= want; case 'LESS_THAN_OR_EQUAL': return v <= want; } return false; } // (GraphQLError: Yoga shows its message to the client; other errors become "Unexpected error.") const resolvers = { Query: { orders(_, { offset, limit, sort, filters }) { let rows = orders.filter((o) => filters.every((f) => matches(o, f))); if (sort) { const dir = sort.descending ? -1 : 1; rows = [...rows].sort((a, b) => { const x = value(a, sort.field), y = value(b, sort.field); return (x < y ? -1 : x > y ? 1 : 0) * dir; }); } const size = Math.min(Math.max(limit, 1), 200); return { rows: rows.slice(Math.max(offset, 0), Math.max(offset, 0) + size), total: rows.length }; } }, Mutation: { updateOrder(_, { id, quantity, status }) { const order = orders.find((o) => o.id === id); if (!order) throw new GraphQLError(`No order ${id}`); if (quantity != null) { if (!Number.isInteger(quantity) || quantity < 1) throw new GraphQLError('The quantity must be a whole number above 0'); order.quantity = quantity; } if (status != null) order.status = status; return order; } } }; const yoga = createYoga({ schema: createSchema({ typeDefs, resolvers }) }); const port = Number(process.env.PORT) || 4000; createServer(yoga).listen(port, () => console.log(`GraphQL API on http://localhost:${port}/graphql`)); ``` The enums do the checking: a sort or filter on a field the schema does not name, or a condition it does not have, is refused before a resolver runs. The data is generated in memory to keep the example self-contained; a real API asks its database in the resolvers. Errors meant for the user are thrown as `GraphQLError`, which Yoga passes on; any other error reaches the client as *Unexpected error.*, so a server's internals do not leak. Yoga answers the browser's cross-origin requests, so the app on Vite's port can call the API on port 4000. (To call it by a relative URL instead, forward `/graphql` with Vite's proxy, as [Vue Server-Side Paging](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-paging.htm) does for `/api`.) #### 2. Requests A GraphQL request is a POST with the query and its variables as JSON. The answer has `data`, and `errors` when something failed, with the same HTTP status in both cases. This function returns the data, typed by the caller, or throws the first error: ```typescript // A GraphQL request: the query and its variables in, the data or the first error out. async function graphql(query: string, variables: object): Promise { const response = await fetch(GRAPHQL_URL, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ query, variables }) }); const { data, errors } = await response.json(); if (errors?.length) throw new Error(errors[0].message); return data; } ``` The query asks for the fields the grid shows, and the mutation for the fields it changes: ```typescript const ORDERS = /* GraphQL */ ` query Orders($offset: Int!, $limit: Int!, $sort: OrderSort, $filters: [OrderFilter!]) { orders(offset: $offset, limit: $limit, sort: $sort, filters: $filters) { total rows { id customer product quantity price orderDate status } } }`; const UPDATE_ORDER = /* GraphQL */ ` mutation UpdateOrder($id: ID!, $quantity: Int, $status: Status) { updateOrder(id: $id, quantity: $quantity, status: $status) { id quantity status } }`; ``` #### 3. The grid's state as variables The grid runs in virtual mode, as in [Vue Server-Side Paging](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-paging.htm), and the data adapter gets a `loadServerData` function instead of a URL. It receives the grid's page, sort and filters; `variables` turns them into the query's arguments, keeping only the fields and conditions the schema has: ```typescript // The grid's state as the query's variables function variables(params: GridState) { const filters = []; for (let i = 0; i < Number(params.filterscount || 0); i++) { const field = String(params['filterdatafield' + i]), condition = String(params['filtercondition' + i]); if (fieldNames.has(field) && conditions.has(condition)) { filters.push({ field, condition, value: String(params['filtervalue' + i]) }); } } const sort = params.sortdatafield && fieldNames.has(params.sortdatafield) && params.sortorder ? { field: params.sortdatafield, descending: params.sortorder === 'desc' } : null; return { offset: params.pagenum * params.pagesize, limit: params.pagesize, sort, filters }; } ``` ```typescript // One page of orders for the grid's state async function loadOrders(params: GridState): Promise { const { orders } = await graphql<{ orders: { total: number; rows: Order[] } }>(ORDERS, variables(params)); return { records: orders.rows, totalrecords: orders.total }; } ``` The adapter is a plain constant of the component, not a `ref`: Vue need not track it, and it reaches the grid through the template ref `grid`. A failed request leaves the grid empty and shows the API's message in `status`, above the grid: ```typescript const grid = ref(null); // The message above the grid const status = ref(''); // set while the page itself changes a cell (a rollback): not an edit to save let applying = false; // One source for the grid's life. The adapter calls loadServerData instead of requesting // the url (it needs one, but nothing is fetched from it). const adapter: { totalrecords: number } = new jqx.dataAdapter({ datatype: 'json', id: 'id', datafields, url: GRAPHQL_URL, totalrecords: 0, // Sorting and filtering happen on the server: ask again. sort: () => grid.value?.updatebounddata('sort'), filter: () => grid.value?.updatebounddata('filter') }, { // (A plain function: versions before 27.1.0 ignore an async one.) loadServerData: (params: GridState, _settings: unknown, callback: (page: OrdersPage) => void) => { loadOrders(params).then((page) => { status.value = ''; return page; }, (error: Error): OrdersPage => { status.value = `Could not load the orders: ${error.message}`; return { records: [], totalrecords: 0 }; }).then((page) => { // (the grid is gone if it was unmounted while the page was loading) if (!grid.value) return; // (versions before 27.1.0 keep the previous total when the new one is 0: set it here) adapter.totalrecords = page.totalrecords; callback(page); }); } }); ``` `loadServerData` is a plain function that calls the async `loadOrders`, and it sets `adapter.totalrecords` itself. Both are for versions before 27.1.0, which ignore an async function there and keep the previous total when a filter matches nothing; they do no harm in 27.1.0. The check of `grid.value` drops an answer that comes after the component was unmounted, when Vue has set the template ref to `null`. Every prop of `JqxGrid` is a constant of the script. This matters because the Grid component applies its props to the grid again when it re-renders (jqwidgets-scripts 27.1.0 the ones whose value changed, earlier versions all of them), and applying `source` again binds it again: with constant props, a new message re-renders this component but not the grid, which keeps its page, sort and filters. ```vue ``` #### 4. Save edits with a mutation A changed cell becomes an `updateOrder` mutation with the order's id and the one changed field. If the API refuses it, the cell gets its old value back and the app shows the API's message. The `applying` flag keeps that rollback from being sent as an edit of its own: ```typescript // An edit is sent as a mutation; if the API refuses it, the cell gets its old value back. async function saveEdit({ datafield, rowindex, oldvalue, newvalue }: CellValueChangedEvent['args']) { const row = grid.value!.getrowdata(rowindex); try { await graphql(UPDATE_ORDER, { id: row.id, [datafield]: newvalue }); status.value = `Order ${row.id} saved.`; } catch (error) { status.value = `Order ${row.id} was not saved: ${(error as Error).message}`; applying = true; grid.value?.setcellvalue(rowindex, datafield, oldvalue); applying = false; } } function onCellValueChanged(event: CellValueChangedEvent) { if (!applying) saveEdit(event.args); } ``` #### The complete example Replace `src/App.vue`: ```vue ``` #### Try it Start the API with `node server.js`, run `npm run dev` and open the address it prints. The pager reads *1-20 of 10000*. Sort by Quantity, type *ernst* in the Customer filter (*1-20 of 1250*), and pick *Shipped* in the Status filter. Change a status: the network panel shows one `updateOrder` mutation. To try the API on its own, open `http://localhost:4000/graphql`: Yoga serves GraphiQL there. #### Next - [Bind the Vue Grid to Supabase](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-supabase.htm) and [to Cloud Firestore](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxgrid/vue-grid-firebase.htm) - [Vue Server-Side Filtering](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-serverside/vue-serverside-filtering.htm) with a REST API and the grid's own requests --- ### Getting started with the Vue Input Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxinput/vue-input-getting-started.htm > Vue Input getting started: install jQWidgets, add jqxInput to your app, see a complete example, handle its events and call its methods. The Vue Input is a text input with auto-complete from a local or remote data source. This guide adds the Vue Input (`jqxInput`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxinput.vue` - **Demos:** [Vue Input demos](https://www.jqwidgets.com/vue/vue-input/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxinput/vue-input-api.htm) jqxInput in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxinput/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxinput.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Input API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxinput/vue-input-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxinput/vue-input-styling-and-appearance.htm): themes and CSS classes. - [Vue Input demos](https://www.jqwidgets.com/vue/vue-input/): live examples with their source code. --- ### Vue Input Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxinput/vue-input-styling-and-appearance.htm > Style the Vue Input: the jqxInput CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxInput. - jqx-input - applied to the input. - jqx-widget - applied to the input and its popup. - jqx-widget-content - applied to the input and its popup. - jqx-rc-all - applied to the input and to the popup items. Adds rounded corners to the widget. - jqx-input-disabled - applied to the input when it is disabled. - jqx-fill-state-disabled - applied to the input when it is disabled. - jqx-menu - applied to the input's popup. - jqx-menu-vertical - applied to the input's popup. - jqx-menu-dropdown - applied to the input's popup. - jqx-fill-state-pressed - applied to the selected item in the input's popup. - jqx-menu-item - applied to the input's popup items. - jqx-item - applied to the input's popup items. When you create a custom style with colors and backgrounds for jqxInput, you need to do the following: - Add the above CSS classes related to jqxInput - After each CSS class, add your theme name. For example: jqx-input-summer - To apply your custom style to jqxInput, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Input API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxinput/vue-input-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxinput.txt #### Properties - `aiKey` (Type: String, Default: ""): Determines the input's Chat GPT AI Key. - `disabled` (Type: Boolean, Default: false): Enables or disables the jqxInput. - `dropDownWidth` (Type: Number, Default: null): Sets or gets the jqxInput's dropDown width. - `displayMember` (Type: String, Default: ""): Sets or gets the displayMember of the Items. The displayMember specifies the name of an object property to display. The name is contained in the collection specified by the 'source' property. - `height` (Type: Number | String, Default: null): Sets or gets the jqxInput's height. - `items` (Type: Number, Default: 8): Sets or gets the maximum number of items to display in the popup menu. - `inlineAutoComplete` (Type: Boolean, Default: ""): Sets or gets the input's inline auto complete mode. - `minLength` (Type: Number, Default: 1): Sets or gets the minimum character length needed before triggering auto-complete suggestions. - `maxLength` (Type: Number, Default: null): Sets or gets the maximum character length of the input. - `opened` (Type: Boolean, Default: false): Sets or gets a value indicating whether the auto-suggest popup is opened. - `placeHolder` (Type: String, Default: ""): Sets or gets the input's place holder. - `popupZIndex` (Type: Number, Default: 20000): Sets or gets the auto-suggest popup's z-index. - `query` (Type: String, Default: ""): Determines the input's query. - `renderer` (Type: Function, Default: null): Enables you to update the input's value, after a selection from the auto-complete popup. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `searchMode` (Type: String, Default: 'default'): Sets or gets the search mode. When the user types into the edit field, the jqxInput widget tries to find the searched item using the entered text and the selected search mode. - `source` (Type: Array | Function | Object, Default: []): Sets the widget's data source. The 'source' function is passed two arguments, the input field's value and a callback function. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `valueMember` (Type: String, Default: ""): Sets or gets the valueMember of the Items. The valueMember specifies the name of an object property to set as a 'value' of the list items. The name is contained in the collection specified by the 'source' property. - `width` (Type: Number | String, Default: null): Sets or gets the jqxInput's width. - `value` (Type: Number | String, Default: null) #### Events - `change` (Type: Event): This event is triggered when the value is changed. - `close` (Type: Event): This event is triggered when the auto-suggest popup is closed. - `open` (Type: Event): This event is triggered when the auto-suggest popup is opened. - `select` (Type: Event): This event is triggered when an item is selected from the auto-suggest popup. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `selectAll` (Arguments: None, Return Type: None): Selects the text in the input field. - `val` (Arguments: value, Return Type: String): Sets or gets the value. --- ### Getting started with the Vue Kanban Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxkanban/vue-kanban-getting-started.htm > Vue Kanban getting started: install jQWidgets, add jqxKanban to your app, see a complete example, handle its events and call its methods. The Vue Kanban can be used to implement the kanban method for a project. This guide adds the Vue Kanban (`jqxKanban`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxkanban.vue` - **Demos:** [Vue Kanban demos](https://www.jqwidgets.com/vue/vue-kanban/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxkanban/vue-kanban-api.htm) jqxKanban in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxkanban/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxKanban from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxkanban.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `columnAttrClicked`: This event is triggered when jqxKanban column is clicked. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `addItem`: Add new item in widget. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Kanban API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxkanban/vue-kanban-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxkanban/vue-kanban-styling-and-appearance.htm): themes and CSS classes. - [Vue Kanban demos](https://www.jqwidgets.com/vue/vue-kanban/): live examples with their source code. --- ### Vue Kanban Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxkanban/vue-kanban-styling-and-appearance.htm > Style the Vue Kanban: the jqxKanban CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxKanban. - jqx-widget - applied to jqxKanban. - jqx-kanban - applied to jqxKanban. - jqx-kanban-column - applied to jqxKanban columns. - jqx-kanban-column-header - applied to the column headers. - jqx-widget-header - applied to the column headers. - jqx-kanban-column-header-custom-button - applied to the custom button element in the column. - jqx-kanban-column-container - applied to the column container elements. - jqx-kanban-column-header-button - applied to the button element in the column. - jqx-kanban-column-header-collapsed - applied to collapsed column headers. - jqx-kanban-column-header-title - applied to column header's title element. - jqx-kanban-column-header-status - applied to column header's status element. - jqx-kanban-item - applied to jqxKanban items. - jqx-widget-content - applied to jqxKanban items. - jqx-kanban-item-keyword - applied to jqxKanban item's tags. - jqx-fill-state-normal - applied to jqxKanban item's tags. - jqx-kanban-item-color-status - applied to jqxKanban item's status element. - jqx-kanban-item-color-status-rtl - applied to jqxKanban item's status element in rtl mode. - jqx-kanban-item-avatar - applied to jqxKanban's avatar. - jqx-kanban-item-avatar-rtl - applied to jqxKanban's avatar in rtl mode. - jqx-kanban-item-footer - applied to jqxKanban item's footer. - jqx-kanban-item-text - applied to jqxKanban item's text element. - jqx-fill-state-disabled - applied to the jqxKanban when it is disabled. When you create a custom style with colors and backgrounds for jqxKanban, you need to do the following: - Add the above CSS classes related to jqxKanban - After each CSS class, add your theme name. For example: jqx-kanban-summer - To apply your custom style to jqxKanban, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Kanban API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxkanban/vue-kanban-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxkanban.txt #### Properties - `columnRenderer` (Type: Function, Default: null): Sets or gets a custom rendering function for jqxKanban's columns. - `columns` (Type: Array, Default: null): Sets or gets the jqxKanban columns. - `connectWith` (Type: String, Default: null): Sets a connection to another jqxKanban widget. As a selector is used the id of the widget. - `headerHeight` (Type: Number, Default: 30): Sets or gets the height of the jqxKanban column headers when columns are expanded. - `headerWidth` (Type: Number, Default: 30): Sets or gets the width of the jqxKanban column headers when columns are collapsed. - `height` (Type: String | Number, Default: 400): Sets or gets the kanban's height. - `itemRenderer` (Type: Function, Default: null): This function is called when an item is being rendered. - `ready` (Type: Function, Default: null): This function is called when the jqxKanban is initialized and the binding is completed. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `source` (Type: Array | Object, Default: null): The source object represents a set of key/value pairs. Every set is a jqxKanban item. - `resources` (Type: Array | Object, Default: null): The resources object represents a set of key/value pairs. It contains information about items, associated to the jqxKanban cards. - `template` (Type: String, Default: ''): Sets or gets new HTML structure about kanban's cards. - `templateContent` (Type: Object, Default: null): Sets or gets the default values about kanban's cards. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: String | Number, Default: 600): Sets or gets the kanban's width. #### Events - `columnAttrClicked` (Type: Event): This event is triggered when jqxKanban column is clicked. - `columnCollapsed` (Type: Event): This event is triggered when jqxKanban column is collapsed. - `columnExpanded` (Type: Event): This event is triggered when jqxKanban column is expanded. - `itemAttrClicked` (Type: Event): This event is triggered when some element of an item is clicked. - `itemMoved` (Type: Event): This event is triggered when an item is moved. #### Methods - `addItem` (Arguments: newItem, Return Type: None): Add new item in widget. - `destroy` (Arguments: None, Return Type: None): Add new item in widget. - `getColumn` (Arguments: dataField, Return Type: Object): Returns all items as an array of objects. - `getColumnItems` (Arguments: dataField, Return Type: Array): Returns all items as an array of objects. - `getItems` (Arguments: None, Return Type: Object): Returns all items as an array of objects. - `removeItem` (Arguments: itemId, Return Type: None): Removes an item. - `updateItem` (Arguments: itemId, newContent, Return Type: None): Update an item. --- ### Getting started with the Vue Knob Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxknob/vue-knob-getting-started.htm > Vue Knob getting started: install jQWidgets, add jqxKnob to your app, see a complete example, handle its events and call its methods. The Vue Knob is a rotary knob with custom dials, markers and pointers. This guide adds the Vue Knob (`jqxKnob`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxknob.vue` - **Demos:** [Vue Knob demos](https://www.jqwidgets.com/vue/vue-knob/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxknob/vue-knob-api.htm) jqxKnob in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxknob/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxknob.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Knob API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxknob/vue-knob-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxknob/vue-knob-styling-and-appearance.htm): themes and CSS classes. - [Vue Knob demos](https://www.jqwidgets.com/vue/vue-knob/): live examples with their source code. --- ### Vue Knob Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxknob/vue-knob-styling-and-appearance.htm > Style the Vue Knob: the jqxKnob CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxKnob. - jqx-widget - applied to the widget. - jqx-knob - applied to the widget. - jqx-knob-label - applied to the knob's labels. #### Background - fill - fill color(hex string) or object(object.color(hex color), object.gradientType(linear, linearHorizontal or radial), gradientStops(Array like [[0, 1], [50, 0.5], [100, 1]]). - stroke - stroke color(hex string). - strokeWidth - stroke width(number). #### Dial - fill - fill color(hex string) or object(object.color(hex color), object.gradientType(linear, linearHorizontal or radial), gradientStops(Array like [[0, 1], [50, 0.5], [100, 1]]). - stroke - stroke color(hex string). - strokeWidth - stroke width(number). #### Spinner - fill - fill color(hex string) or object(object.color(hex color), object.gradientType(linear, linearHorizontal or radial), gradientStops(Array like [[0, 1], [50, 0.5], [100, 1]]). - stroke - stroke color(hex string). - strokeWidth - stroke width(number). #### Pointer - fill - fill color(hex string) or object(object.color(hex color), object.gradientType(linear, linearHorizontal or radial), gradientStops(Array like [[0, 1], [50, 0.5], [100, 1]]). - stroke - stroke color(hex string). - strokeWidth - stroke width(number). #### ProgressBar - fill - fill color(hex string) or object(object.color(hex color), object.gradientType(linear, linearHorizontal or radial), gradientStops(Array like [[0, 1], [50, 0.5], [100, 1]]). - stroke - stroke color(hex string). - strokeWidth - stroke width(number). - opacity - defines the fill's opacity. Accepts values from 0 to 1 where 0 is transparent. #### Marks - rotate - sets whether spinner marks rotate with pointer. - colorProgress - hex color string. - colorRemaining - hex color string. - drawAboveProgressBar - draws the marks with z-index higher than the progress bar. - minorInterval - minor ticks interval. - majorInterval - major ticks interval. - majorSize - major tick's size. Specifies radius in case of circular lines, or length in case of lines. - offset - specifies the labels offset. - size - specifies radius in case of circular lines, or length in case of lines. - type - "circle" or "line". - thickness - specifies thickness in case of lines. - visible - determines the labels visibility. --- ### Vue Knob API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxknob/vue-knob-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxknob.txt #### Properties - `allowValueChangeOnClick` (Type: Boolean, Default: true): Sets or gets whether the jqxKnob's value can be changed on click. - `allowValueChangeOnDrag` (Type: Boolean, Default: true): Sets or gets whether the jqxKnob's value can be changed by dragging the pointer. - `allowValueChangeOnMouseWheel` (Type: Boolean, Default: true): Sets or gets whether the jqxKnob's value can be changed on mouse wheel. - `changing` (Type: Function, Default: null): Sets or gets a function called when the user drags the pointer. The function is called before the pointer is moved and the passed arguments are 2 - oldValue and newValue. - `dragEndAngle` (Type: Number, Default: 0): Sets or gets the Knob's angle where dragging the pointer will end. - `dragStartAngle` (Type: Number, Default: 360): Sets or gets the Knob's degrees where dragging the pointer can start. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the Knob is disabled. - `dial` (Type: Object, Default: null): Sets or gets the Knob's dial. - `endAngle` (Type: Number, Default: 360): Sets or gets the Knob's degrees offset for the 360 location. - `height` (Type: Number | String, Default: 400): Sets or gets the Knob's height. - `labels` (Type: Object, Default: null): Sets or gets the Knob's labels. - `marks` (Type: Object, Default: null): Sets or gets the Knob's marks. - `min` (Type: Number, Default: 0): Sets or gets the Knob's min property. - `max` (Type: Number, Default: 100): Sets or gets the Knob's max property. - `progressBar` (Type: Object, Default: null): Sets or gets the Knob's progressBar property. - `pointer` (Type: Array | Object, Default: null): Sets or gets the Knob's pointer property. - `pointerGrabAction` (Type: String, Default: "normal"): Sets or gets the Knob's pointerGrabAction property("normal", "progressBar", "pointer"). - `rotation` (Type: String, Default: "clockwise"): Sets or gets the Knob's rotation("clockwise" or "counterclockwise"). - `startAngle` (Type: Number, Default: 0): Sets or gets the Knob's degrees offset for the 0 location. - `spinner` (Type: Object, Default: null): Sets or gets Knob's spinner. - `styles` (Type: Object, Default: null): Sets or gets the Knob's background style. - `step` (Type: Number | String, Default: 1): Sets or gets the Knob's step property. Specifies the increase/decrease step. - `snapToStep` (Type: Boolean, Default: true): Sets or gets the Knob's snapToStep property. Specifies whether setting the knob value will snap to the closest step true/false. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `value` (Type: Number | Array, Default: 0): Sets or gets the Knob's value. - `width` (Type: Number | String, Default: 400): Sets or gets the Knob's width. #### Events - `change` (Type: Event): This event is triggered when the value is changed. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `val` (Arguments: value, Return Type: Number): Sets or gets the value. --- ### Getting started with the Vue Layout Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlayout/vue-layout-getting-started.htm > Vue Layout getting started: install jQWidgets, add jqxLayout to your app, see a complete example, handle its events and call its methods. The Vue Layout allows the creation of complex layouts with panels that can be nested, resized, pinned, unpinned and closed. This guide adds the Vue Layout (`jqxLayout`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxlayout.vue` - **Demos:** [Vue Layout demos](https://www.jqwidgets.com/vue/vue-layout/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlayout/vue-layout-api.htm) jqxLayout in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxlayout/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxLayout from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxlayout.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `pin`: This event is triggered when a group has been pinned. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Refreshes the widget. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Layout API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlayout/vue-layout-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlayout/vue-layout-styling-and-appearance.htm): themes and CSS classes. - [Vue Layout demos](https://www.jqwidgets.com/vue/vue-layout/): live examples with their source code. --- ### Vue Layout Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlayout/vue-layout-styling-and-appearance.htm > Style the Vue Layout: the jqxLayout CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxLayout. - jqx-layout - applied to the jqxLayout. - jqx-widget - applied to the jqxLayout. - jqx-widget-content - applied to the jqxLayout. - jqx-rc-all - applied to the jqxLayout. - jqx-layout-group-root - applied to the root layout group. - jqx-layout-group-default - applied to layout groups. - jqx-layout-group-document - applied to document groups. - jqx-layout-group-tabbed - applied to tabbed groups. - jqx-layout-group-auto-hide - applied to auto hide groups. - jqx-layout-group-auto-hide-content-horizontal - applied to the content sections of horizontally-aligned auto hide groups. - jqx-layout-group-auto-hide-content-vertical - applied to the content sections of vertically-aligned auto hide groups. - jqx-layout-pseudo-window - applied to pseudo-jqxWindows in tabbed and auto hide groups. - jqx-layout-pseudo-window-header - applied to pseudo-jqxWindow headers. - jqx-layout-pseudo-window-title - applied to pseudo-jqxWindow titles. - jqx-layout-pseudo-window-pin-icon - applied to pseudo-jqxWindow pin icons. - jqx-layout-pseudo-window-pinned-icon - applied to pseudo-jqxWindow unpin icons. - jqx-layout-pseudo-window-close-icon - applied to pseudo-jqxWindow close icons. - jqx-layout-pseudo-window-content - applied to pseudo-jqxWindow content sections. - jqx-layout-resize-feedback - applied to the horizontal and vertical resize feedbacks. - jqx-layout-resize-feedback-horizontal - applied to the horizontal resize feedback. - jqx-layout-resize-feedback-vertical - applied to the vertical resize feedback. - jqx-layout-resize-feedback-warning - applied to the resize feedbacks when a minimum width has been reached. When you create a custom style with colors and backgrounds for jqxLayout, you need to do the following: - Add the above CSS classes related to jqxLayout - After each CSS class, add your theme name. For example: jqx-layout-energyblue - To apply your custom style to jqxLayout, you need to set its 'theme' property (option) to point to your theme name string: --- ### Vue Layout API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlayout/vue-layout-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxlayout.txt #### Properties - `contextMenu` (Type: Boolean, Default: false): Sets or gets whether a custom context menu will appear when certain elements of the widget are right-clicked. - `height` (Type: String | Number, Default: null): Sets or gets the layout's height. - `layout` (Type: Array, Default: []): Sets or gets the layout. This property determines the position of the layout elements and their characteristics. The layout array always contains one root item of type 'layoutGroup'. - `minGroupHeight` (Type: Number, Default: 100): Sets the default minimum height for groups which are vertically aligned within their parent group. - `minGroupWidth` (Type: Number, Default: 100): Sets the default minimum width for groups which are horizontally aligned within their parent group. - `resizable` (Type: Boolean, Default: true): Sets or gets whether panels can be dynamically resized. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: String | Number, Default: null): Sets or gets the layout's width. #### Events - `pin` (Type: Event): This event is triggered when a group has been pinned. - `resize` (Type: Event): This event is triggered when a group has been resized (when the group has been resized with the mouse or when an adjacent group has been pinned, unpinned or closed). - `unpin` (Type: Event): This event is triggered when a group has been unpinned. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `loadLayout` (Arguments: Layout, Return Type: None): Loads a previously saved layout. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. - `render` (Arguments: None, Return Type: None): Renders the widget. - `saveLayout` (Arguments: None, Return Type: Object): Saves the current layout of the widget. The object returned by this method can be passed to the method **loadLayout**. --- ### Vue LinearGauge API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlineargauge/vue-lineargauge-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxlineargauge.txt #### Properties - `animationDuration` (Type: Number, Default: 1000): Sets or gets jqxLinearGauge's animation duration [ms]. - `background` (Type: Object, Default: { borderRadius: 15, style: { stroke: '#cccccc', fill: 'default-gradient'}, visible: true, backgroundType: 'roundedRectangle', showGradient: true }): Sets or gets the gauge's properties for it's background. - `colorScheme` (Type: String, Default: 'scheme01'): Sets the gauge's color palette. jqxLinearGauge supports 11 color schemes from 'scheme01' to 'scheme11'. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the jqxLinearGauge is disabled. - `easing` (Type: String, Default: 'linear'): Sets or gets jqxLinearGauge's animation easing. - `height` (Type: Number | String, Default: 300): Sets or gets the gauge's height. This property accepts size in pixels and percentage. - `int64` (Type: Boolean, Default: false): Enables the jqxLinearGauge 64-bit number support. - `labels` (Type: Object, Default: { position: 'both', interval: 20, offset: 0, visible: true, formatValue: function (value, position) { return value; }}): Sets or gets the gauge's properties for it's labels. - `min` (Type: Number, Default: -60): Sets or gets gauge's minimum value. - `max` (Type: Number, Default: 40): Sets or gets jqxLinearGauge's max value. - `orientation` (Type: String, Default: 'vertical'): Sets or gets jqxLineaerGauge's orientation. - `pointer` (Type: Object, Default: { pointerType: 'default', style: { fill: 'theme-specific-color', stroke: 'theme-specific-color' }, size: '7%', visible: true, offset: 0 }): Sets or gets the gauge's properties for it's pointer. - `rangesOffset` (Type: Number, Default: 0): Sets or gets ranges offset from the ticks. - `rangeSize` (Type: String, Default: '5%'): Sets or gets the size of the ranges. This property can be set in percentage or in pixels. - `ranges` (Type: Array, Default: []): This property is array from objects. Each object is different range. The range is colored area with specified size. - `showRanges` (Type: Boolean, Default: true): This property indicates whether the gauge's ranges will be visible. - `scaleStyle` (Type: Object, Default: { stroke: '#A1A1A1', 'stroke-width': 1 }): Sets or gets the style of the line connecting all the ticks. - `scaleLength` (Type: String | Number, Default: '90%'): Sets or gets the length of the scale. This property could be set in percentage or in pixels. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `ticksOffset` (Type: Array, Default: ['36%', '5%']): Sets or gets the offset of the ticks. The first element of the array is the left offset and the second one is the top offset. This property can be set in pixels or percentage. - `ticksPosition` (Type: String, Default: 'both'): Sets or gets jqxLineaerGauge's ticks position. - `ticksMinor` (Type: Object, Default: { size: '10%', interval: 5, style: { stroke: '#A1A1A1', 'stroke-width': 1 }, visible: true }): Sets or gets the gauge's properties for it's minor ticks. - `ticksMajor` (Type: Object, Default: { size: '10%', interval: 5, style: { stroke: '#A1A1A1', 'stroke-width': 1 }, visible: true }): Sets or gets the gauge's properties for it's major ticks. - `value` (Type: Number, Default: -50): Sets or gets gauge's value. - `width` (Type: Number | String, Default: 100): Sets or gets the gauge's width. This property accepts size in pixels and percentage. #### Events - `valueChanging` (Type: Event): The event is raised when the gauge's value is changing. - `valueChanged` (Type: Event): The event is raised when the gauge's value is changed. #### Methods - `disable` (Arguments: None, Return Type: None): This method disables the gauge. - `enable` (Arguments: None, Return Type: None): This method enables the gauge. - `val` (Arguments: value, Return Type: Number): Sets or gets the value. --- ### Getting started with the Vue ListBox Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistbox/vue-listbox-getting-started.htm > Vue ListBox getting started: install jQWidgets, add jqxListBox to your app, see a complete example, handle its events and call its methods. The Vue ListBox displays a list of selectable items. This guide adds the Vue ListBox (`jqxListBox`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxlistbox.vue` - **Demos:** [Vue ListBox demos](https://www.jqwidgets.com/vue/vue-listbox/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistbox/vue-listbox-api.htm) jqxListBox in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxlistbox/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxListBox from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxlistbox.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the user selects an item. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the selected value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ListBox API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistbox/vue-listbox-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistbox/vue-listbox-styling-and-appearance.htm): themes and CSS classes. - [Vue ListBox demos](https://www.jqwidgets.com/vue/vue-listbox/): live examples with their source code. --- ### Vue ListBox Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistbox/vue-listbox-styling-and-appearance.htm > Style the Vue ListBox: the jqxListBox CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxListBox. - jqx-widget - applied to jqxListBox. - jqx-listbox - applied to jqxListBox. - jqx-listbox-bottomright-applied to the ListBox's element displayed when the horizontal and vertical scrollbars are visible and the element is positioned below the vertical scrollbar and on the right of the horizontal scrollbar. - jqx-listitem-state-group - applied to the ListBox's groups. - jqx-listitem-state-normal - applied to a list item in default state. - jqx-listitem-state-hover - applied to a list item in hovered state. - jqx-fill-state-hover - applied to a list item in hovered state. - jqx-listitem-state-selected - applied to a list item when the item is selected. - jqx-fill-state-pressed - applied to a list item when the item is selected. - jqx-listitem-state-disabled - applied to a list item when the item is disabled or the ListBox is disabled. - jqx-fill-state-focus - applied to the ListBox when it is focused. - jqx-fill-state-disabled- applied to the ListBox when it is disabled. When you create a custom style with colors and backgrounds for jqxListBox, you need to do the following: - Add the above CSS classes related to jqxListBox - After each CSS class, add your theme name. For example: jqx-listbox-summer - To apply your custom style to jqxListBox, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue ListBox API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistbox/vue-listbox-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxlistbox.txt #### Properties - `autoHeight` (Type: Boolean, Default: false): Sets or gets whether the listbox's height is equal to the sum of each item's height - `allowDrag` (Type: Boolean, Default: false): Enables/disables the dragging of ListBox Items. - `allowDrop` (Type: Boolean, Default: false): Enables/disables the dropping of ListBox Items. - `checkboxes` (Type: Boolean, Default: false): Sets or gets whether the listbox should display a checkbox next to each item. - `disabled` (Type: Boolean, Default: false): Enables/disables the listbox. - `displayMember` (Type: String, Default: ""): Sets or gets the displayMember of the Items. The displayMember specifies the name of an object property to display. The name is contained in the collection specified by the 'source' property. - `dropAction` (Type: String, Default: 'default'.): Sets or gets the drop action when an item is dropped. - `dragStart` (Type: Function, Default: null): Callback function which is called when a drag operation starts. - `dragEnd` (Type: Function, Default: null): Callback function which is called when a drag operation ends. - `enableHover` (Type: Boolean, Default: true): Enables/disables the hover state. - `enableSelection` (Type: Boolean, Default: true): Enables/disables the selection. - `equalItemsWidth` (Type: Boolean, Default: true): Sets or gets whether the items width should be equal to the listbox's width. - `filterable` (Type: Boolean, Default: false): Determines whether the Filtering is enabled. - `filterHeight` (Type: Number, Default: 27): Determines the Filter's height. - `filterDelay` (Type: Number, Default: 100): Determines the Filter's delay. After 100 milliseconds, the widget automatically filters its data based on the filter input's value. To perform filter only on "Enter" key press, set this property to 0. - `filterPlaceHolder` (Type: String, Default: "Looking for"): Determines the Filter input's place holder. - `height` (Type: String | Number, Default: null): Sets or gets the listbox's height. - `hasThreeStates` (Type: Boolean, Default: false): Sets or gets whether the checkboxes have three states - checked, unchecked and indeterminate. - `itemHeight` (Type: Number, Default: -1): Sets or gets the height of the jqxListBox Items. When the itemHeight == - 1, each item's height is equal to its desired height. - `incrementalSearch` (Type: Boolean, Default: true): Sets or gets the incrementalSearch property. An incremental search begins searching as soon as you type the first character of the search string. - `incrementalSearchDelay` (Type: Number, Default: 700): Sets ot gets the incrementalSearchDelay property. The incrementalSearchDelay specifies the time-interval in milliseconds after which the previous search string is deleted. The timer starts when you stop typing. - `multiple` (Type: Boolean, Default: false): Enables/disables the multiple selection. When this property is set to true, the user can select multiple items. - `multipleextended` (Type: Boolean, Default: false): Enables/disables the multiple selection using Shift and Ctrl keys. When this property is set to true, the user can select multiple items by clicking on item and holding Shift or Ctrl. - `renderer` (Type: Function, Default: null): Callback function which is called when an item is rendered. By using the renderer function, you can customize the look of the list items. - `rendered` (Type: Function, Default: null) - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `selectedIndex` (Type: Number, Default: -1): Sets or gets the selected index. - `selectedIndexes` (Type: Object) - `source` (Type: Array | Object, Default: null): Sets or gets the item's source. - `scrollBarSize` (Type: Number, Default: 17): Sets or gets the scrollbars's size. - `searchMode` (Type: String, Default: startswith): Sets or gets the item incremental search mode. When the user types some text in a focused ListBox, the jqxListBox widget tries to find the searched item using the entered text and the selected search mode. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `valueMember` (Type: String, Default: ""): Sets or gets the valueMember of the Items. The valueMember specifies the name of an object property to set as a 'value' of the list items. The name is contained in the collection specified by the 'source' property. - `width` (Type: String | Number, Default: null): Sets or gets the listbox's width. #### Events - `bindingComplete` (Type: Event): This event is triggered when the data binding operation is completed. - `change` (Type: Event): This event is triggered when the user selects an item. - `checkChange` (Type: Event): This event is triggered when the user checks or unchecks an item. - `dragStart` (Type: Event): This event is triggered when the user starts a drag operation. - `dragEnd` (Type: Event): This event is triggered when the user drops an item. - `select` (Type: Event): This event is triggered when the user selects an item. - `unselect` (Type: Event): This event is triggered when the user unselects an item. #### Methods - `addItem` (Arguments: Item, Return Type: None): Adds a new item to the jqxListBox. Returns 'true', if the new item is added or 'false' if the item is not added. - `beginUpdate` (Arguments: None, Return Type: None): Stops the ListBox's rendering. That method is usually used when multiple items need to be inserted or removed dynamically. - `clear` (Arguments: None, Return Type: None): Clears all items. - `clearSelection` (Arguments: None, Return Type: None): Clears all selected items. - `checkIndex` (Arguments: Index, Return Type: None): Checks a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to check the first item, the 'checkIndex' method should be called with parameter 0. - `checkItem` (Arguments: Item, Return Type: None): Checks an item. - `checkAll` (Arguments: None, Return Type: None): Checks all list items when the 'checkboxes' property value is true. - `clearFilter` (Arguments: None, Return Type: None): Clears the widget's filter when filtering is applied. - `destroy` (Arguments: None, Return Type: None): Destroy the jqxListBox widget. The destroy method removes the jqxListBox widget from the web page. - `disableItem` (Arguments: Item, Return Type: None): Disables an item. Item is an object. - `disableAt` (Arguments: Index, Return Type: None): Disables an item by index. Index is a number. - `enableItem` (Arguments: Item, Return Type: None): Enables an item. Item is an object. - `enableAt` (Arguments: Index, Return Type: None): Enables a disabled item by index. Index is a number. - `ensureVisible` (Arguments: item, Return Type: None): Ensures that an item is visible. Index is number. If necessary scrolls to the item. Instead of Index, you can also pass the item's value. - `endUpdate` (Arguments: None, Return Type: None): Starts the ListBox's rendering and refreshes the ListBox. That method is usually used in combination with the 'beginUpdate' method when multiple items need to be inserted or removed dynamically. - `focus` (Arguments: None, Return Type: None): Sets the focus to the jqxListBox. - `getItems` (Arguments: None, Return Type: Array): Gets all items. The returned value is an array of Items. - `getSelectedItems` (Arguments: None, Return Type: Arrays): Gets the selected ListBox items. The returned value is an Array of items. - `getCheckedItems` (Arguments: None, Return Type: Array): Gets the checked ListBox items. Returns an Array of checked items. - `getItem` (Arguments: Index, Return Type: Object): Gets an item by index. The returned value is an object with the following fields: - `getItemByValue` (Arguments: Item, Return Type: Object): Gets an item by its value. The returned value is an object with the following fields: - `getSelectedItem` (Arguments: None, Return Type: Object): Gets the selected item. The returned value is an object or null(if there is no selected item). - `getSelectedIndex` (Arguments: None, Return Type: Number): Gets the index of the selected item. The returned value is the index of the selected item. If there's no selected item, -1 is returned. - `insertAt` (Arguments: Item, Index, Return Type: None): Inserts a new item to the jqxListBox. Returns 'true', if the new item is inserted or false if the insertion fails. The first parameter is object or string - the new item. - `invalidate` (Arguments: None, Return Type: None): The invalidate method will repaint the jqxListBox's items. - `indeterminateItem` (Arguments: Item, Return Type: None): Indeterminates an item. - `indeterminateIndex` (Arguments: Index, Return Type: None): indeterminates a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to indeterminate the first item, the 'indeterminateIndex' method should be called with parameter 0. - `loadFromSelect` (Arguments: selector, Return Type: None): Method: loadFromSelect - `removeItem` (Arguments: Item, Return Type: None): Removes an item from the listbox. Parameter type: object returned by the "getItem" method or string - the value of an item. Returns 'true', if the item is removed or 'false', if the item is not removed. - `removeAt` (Arguments: Index, Return Type: None): Removes an item from the listbox. Parameter type: number - the index of the item. The method returns 'true', if the item is removed or 'false', if the item is not removed. - `render` (Arguments: None, Return Type: None): Renders the jqxListBox widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the jqxListBox widget. The refresh method will update the jqxListBox's layout, size and data. - `selectItem` (Arguments: Item, Return Type: None): Selects an item. - `selectIndex` (Arguments: Index, Return Type: None): Selects item. Index is number. The index is zero-based, i.e to select the first item, the 'selectIndex' method should be called with parameter 0. - `updateItem` (Arguments: Item, Value, Return Type: None): Updates an item. The first parameter is the new item. The second parameter could be an existing item or the value of an existing item. - `updateAt` (Arguments: item, index, Return Type: None): Updates an item. The first parameter is the new item. The second parameter is the index of the item to be updated. - `unselectIndex` (Arguments: index, Return Type: None): Unselects item by index. The index is zero-based, i.e to select the first item, the 'unselectIndex' method should be called with parameter 0. - `unselectItem` (Arguments: item, Return Type: None): Unselects an item. - `uncheckIndex` (Arguments: index, Return Type: None): Unchecks a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to uncheck the first item, the 'uncheckIndex' method should be called with parameter 0. - `uncheckItem` (Arguments: item, Return Type: None): Unchecks an item. - `uncheckAll` (Arguments: None, Return Type: None): Unchecks all list items when the 'checkboxes' property value is true. - `val` (Arguments: value, Return Type: String): Sets or gets the selected value. --- ### Getting started with the Vue ListMenu Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistmenu/vue-listmenu-getting-started.htm > Vue ListMenu getting started: install jQWidgets, add jqxListMenu to your app, see a complete example and call its methods. The Vue ListMenu shows nested lists as a mobile-style drill-down menu with filtering. This guide adds the Vue ListMenu (`jqxListMenu`) to an app, then shows how to set its options and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxlistmenu.vue` - **Demos:** [Vue ListMenu demos](https://www.jqwidgets.com/vue/vue-listmenu/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistmenu/vue-listmenu-api.htm) jqxListMenu in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxlistmenu/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxListMenu from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxlistmenu.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Call methods Call methods through a template ref. For example, `back`: Navigates to the previous page. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ListMenu API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistmenu/vue-listmenu-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistmenu/vue-listmenu-styling-and-appearance.htm): themes and CSS classes. - [Vue ListMenu demos](https://www.jqwidgets.com/vue/vue-listmenu/): live examples with their source code. --- ### Vue ListMenu Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistmenu/vue-listmenu-styling-and-appearance.htm > Style the Vue ListMenu: the jqxListMenu CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of CSS files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxListMenu: - jqx-listmenu - applying to the root jqxListMenu element. - jqx-listmenu-header - applying to the jqxListMenu's header. - jqx-widget-header - applying to the jqxListMenu's header. - jqx-listmenu-item - applying to the jqxListMenu's list items. - jqx-fill-state-normal - applying to the jqxListMenu's list items. - jqx-fill-state-pressed - applying to a jqxListMenu when the mouse button is pressed. - jqx-listmenu-separator - applying to the jqxListMenu's separators. A list item could be set to be separator using the data-role='separator' attribute. - jqx-listmenu-header-label - applying to the header's label. - jqx-listmenu-arrow-right - applying to the list item's arrow. - jqx-listmenu-arrow-right-pressed - applying to the list item when the user press his left mouse button on it. - jqx-listmenu-filter-input - applying to the filter input. - jqx-listmenu-filter - applying to the filter bar. - jqx-listmenu-item-label - applying to each list item's label. - jqx-listmenu-auto-separator - applying to the separators which have been created dynamically. - jqx-listmenu-item-readonly - applying to the readonly list items. - jqx-fill-state-disabled - applied to the jqxListMenu when it is disabled. When you create a custom style with colors and backgrounds for jqxListMenu, you need to do the following: - Add the above CSS classes related to jqxListMenu - After each CSS class, add your theme name. For example: jqx-listmenu-summer - To apply your custom style to jqxListMenu, you need to set its 'theme' property(option) to point to your theme name string. - The sample below demonstrates how to set the 'Summer' theme to jqxListMenu. --- ### Vue ListMenu API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxlistmenu/vue-listmenu-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxlistmenu.txt #### Properties - `alwaysShowNavigationArrows` (Type: Boolean, Default: false): Sets or gets the jqxListMenu's alwaysShowNavigationArrows property. The alwaysShowNavigationArrows specifies whether navigation arrows are displayed for all items. - `animationType` (Type: String, Default: "slide"): Sets or gets the animation's type. - `animationDuration` (Type: Number, Default: 0): Sets or gets the animation duration in milliseconds. - `autoSeparators` (Type: Boolean, Default: false): Sets or gets whether auto separators will be generated. Separator is generated for a sequence of list items with equal start character. - `backLabel` (Type: String, Default: "Back"): Sets or gets the BackButton's label. - `disabled` (Type: Boolean, Default: false): Sets or gets the jqxListMenu's disabled property. - `enableScrolling` (Type: Boolean, Default: true): When the jqxListMenu is created with the enableScrolling property set to true, vertical scrollbar automatically appears, if the items overflow the visible area. - `filterCallback` (Type: Function, Default: function (text, searchValue){return text.toString().toLowerCase().indexOf(searchValue.toLowerCase()) >= 0;};): Used for filtering the jqxListMenu using the filter input. - `height` (Type: String | Number, Default: auto): Sets or gets the jqxListMenu's height. - `headerAnimationDuration` (Type: Number, Default: 0): Sets or gets the animation duration of the header. Header of a listmenu could be set whether the data-role attribute of a list item is set to 'header'. - `placeHolder` (Type: String, Default: 'Filter list items...'): Sets or gets the filter input field's place holder. - `readOnly` (Type: Boolean, Default: false): Sets or gets whether the list will be read-only. In readOnly mode, items are not clickable. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `roundedCorners` (Type: Boolean, Default: true): Sets or gets the jqxListMenu's roundedCorners property. - `showNavigationArrows` (Type: Boolean, Default: true): Sets or gets the jqxListMenu's showNavigationArrows property. The showNavigationArrows specifies whether navigation arrows are displayed only for list items with nested Lists - `showFilter` (Type: Boolean, Default: false): Sets or gets whether the filter input field is visible. - `showHeader` (Type: Boolean, Default: true): Sets or gets whether the header will be visible. - `showBackButton` (Type: Boolean, Default: true): Indicates whether the back button will be visible. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: 100%): Sets or gets the jqxListMenu's width. #### Methods - `back` (Arguments: None, Return Type: None): Navigates to the previous page. - `changePage` (Arguments: Item, Return Type: None): Sets the displayed page. The page could be set using a selector or object. The page must be a child of the current list and it's data-role must be set to "listmenu". - `destroy` (Arguments: None, Return Type: None): Destroys the widget. --- ### Getting started with the Vue Loader Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxloader/vue-loader-getting-started.htm > Vue Loader getting started: install jQWidgets, add jqxLoader to your app, see a complete example and call its methods. The Vue Loader shows a loading indicator over the page or an element. This guide adds the Vue Loader (`jqxLoader`) to an app, then shows how to set its options and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxloader.vue` - **Demos:** [Vue Loader demos](https://www.jqwidgets.com/vue/vue-loader/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxloader/vue-loader-api.htm) jqxLoader in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxloader/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxLoader from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxloader.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Call methods Call methods through a template ref. For example, `open`: Opening/showing the current loader. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Loader API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxloader/vue-loader-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxloader/vue-loader-styling-and-appearance.htm): themes and CSS classes. - [Vue Loader demos](https://www.jqwidgets.com/vue/vue-loader/): live examples with their source code. --- ### Vue Loader Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxloader/vue-loader-styling-and-appearance.htm > Style the Vue Loader: the jqxLoader CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxLoader. - jqx-widget - applied to the Loader widget. - jqx-loader - applied to the jqxLoader. - jqx-loader-ie-transparency - apply transparent background to the jqxLoader IE browser. - jqx-loader-modal - applied modal background styles to jqxLoader. - jqx-loader-icon - applied styles to icon in jqxLoader. - jqx-loader-text - applied styles to text in jqxLoader. - jqx-loader-text-left - applied styles to position text in left side of the image in jqxLoader. - jqx-loader-text-right - applied styles to position text in right side of the image in jqxLoader. - jqx-loader-text-top - applied styles to position text in top side of the image in jqxLoader. - jqx-loader-text-bottom - applied styles to position text in bottom side of the image in jqxLoader. - jqx-loader-rtl - apply right-to-left direction to jqxLoader's text. When you create a custom style with colors and backgrounds for jqxLoader, you need to do the following: Add the above CSS classes related to jqxLoader To apply your custom style to open and close buttons and jqxLoader, you need to set its 'theme' property(option) to point to your theme name string. The sample below demonstrates how to set the 'metro' theme to open and close buttons and jqxLoader. --- ### Vue Loader API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxloader/vue-loader-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxloader.txt #### Properties - `autoOpen` (Type: Boolean, Default: false): Sets or gets whether the loader will be shown after it's creation. - `height` (Type: Number | String, Default: 150): Sets or gets the loader's height. - `html` (Type: String, Default: null): Sets the loader's content. - `isModal` (Type: Boolean, Default: false): Sets or gets whether the loader is displayed as a modal dialog. If the jqxLoader's mode is set to modal, the loader blocks user interaction with the underlying user interface. - `imagePosition` (Type: String, Default: 'center'): Sets or gets the image's position. Possible values: 'top', 'bottom' and 'center' - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's text is aligned to support locales using right-to-left fonts. - `text` (Type: String, Default: "Loading..."): Sets or gets the loader's text. - `textPosition` (Type: String, Default: "bottom"): Sets or gets the alignment. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: 150): Sets or gets the jqxLoader's width. #### Methods - `close` (Arguments: None, Return Type: None): Closing the current loader. - `open` (Arguments: left, top, Return Type: None): Opening/showing the current loader. You can optionally call the method with `left` and `top` arguments --- ### Getting started with the Vue MaskedInput Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmaskedinput/vue-maskedinput-getting-started.htm > Vue MaskedInput getting started: install jQWidgets, add jqxMaskedInput to your app, see a complete example, handle its events and call its methods. The Vue MaskedInput uses a mask to distinguish between proper and improper user input. This guide adds the Vue MaskedInput (`jqxMaskedInput`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxmaskedinput.vue` - **Demos:** [Vue MaskedInput demos](https://www.jqwidgets.com/vue/vue-maskedinput/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmaskedinput/vue-maskedinput-api.htm) jqxMaskedInput in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxmaskedinput/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxMaskedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxmaskedinput.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value is changed and the control's focus is lost. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [MaskedInput API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmaskedinput/vue-maskedinput-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmaskedinput/vue-maskedinput-styling-and-appearance.htm): themes and CSS classes. - [Vue MaskedInput demos](https://www.jqwidgets.com/vue/vue-maskedinput/): live examples with their source code. --- ### Vue MaskedInput Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmaskedinput/vue-maskedinput-styling-and-appearance.htm > Style the Vue MaskedInput: the jqxMaskedInput CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxMaskedInput. - jqx-widget - applied to the input. - jqx-input - applied to the input. - jqx-input-invalid - applied to the input when the validation fails. - jqx-input-content - applied to the input's content. - jqx-widget-content - applied to the input's content. - jqx-input-disabled - applied to the input when it is disabled. - jqx-fill-state-focus - applied to the widget when it is focused. - jqx-fill-state-disabled - applied to the widget when it is disabled. When you create a custom style with colors and backgrounds for jqxMaskedInput, you need to do the following: - Add the above CSS classes related to jqxMaskedInput - After each CSS class, add your theme name. For example: jqx-input-summer - To apply your custom style to jqxMaskedInput, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue MaskedInput API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmaskedinput/vue-maskedinput-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxmaskedinput.txt #### Properties - `disabled` (Type: Boolean, Default: false): Sets or gets whether the widget is disabled. - `height` (Type: Number | String, Default: null): Sets or gets height of the masked input in pixels. - `mask` (Type: String, Default: '#####'): Sets or gets the masked input's mask. - `promptChar` (Type: String, Default: "_"): Sets or gets the prompt char displayed when an editable char is empty. - `readOnly` (Type: Boolean, Default: false): Sets or gets the readOnly state of the input. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `textAlign` (Type: String, Default: left): Sets or gets the text alignment. - `value` (Type: String | Number, Default: null): Sets or gets the masked input's value. - `width` (Type: Number | String, Default: null): Sets or gets width of the masked input in pixels. Only positive values have effect. #### Events - `change` (Type: Event): This event is triggered when the value is changed and the control's focus is lost. - `valueChanged` (Type: Event): This event is triggered when the value is changed. #### Methods - `clear` (Arguments: None, Return Type: None): Clears the value. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `val` (Arguments: value, Return Type: String): Sets or gets the value. --- ### Getting started with the Vue Menu Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmenu/vue-menu-getting-started.htm > Vue Menu getting started: install jQWidgets, add jqxMenu to your app, see a complete example, handle its events and call its methods. The Vue Menu enables you to add menus to your website or web application. This guide adds the Vue Menu (`jqxMenu`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxmenu.vue` - **Demos:** [Vue Menu demos](https://www.jqwidgets.com/vue/vue-menu/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmenu/vue-menu-api.htm) jqxMenu in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxmenu/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxMenu from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxmenu.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `itemclick`: This event is triggered when a menu item is clicked. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `open`: Opens the menu(only in context menu mode). ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Menu API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmenu/vue-menu-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmenu/vue-menu-styling-and-appearance.htm): themes and CSS classes. - [Vue Menu demos](https://www.jqwidgets.com/vue/vue-menu/): live examples with their source code. --- ### Vue Menu Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmenu/vue-menu-styling-and-appearance.htm > Style the Vue Menu: the jqxMenu CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxMenu. - jqx-widget - applied to jqxMenu. - jqx-menu - applied to jqxMenu. - jqx-menu-dropdown-column - applied to jqxMenu UL elements. - jqx-menu-horizontal - applied to the menu when it is horizontal. Sets the menu's background. - jqx-widget-header - applied to the menu's horizontal or vertical area. - jqx-widget-content - applied to the content area of the sub menus. - jqx-menu-vertical - applied to the menu when it is vertical. Sets the menu's background. - jqx-menu-dropdown - applied to the sub menu. Sets the sub menu's background. - jqx-menu-dropdown ul - applied to the sub menu's ul elements. - jqx-menu ul - applied to the menu's ul elements. - jqx-menu-item-top - applied to the top level menu items. - jqx-menu-item - applied to the sub menu items. - jqx-menu-item-separator - applied to the menu separator items. - jqx-menu-item-hover - applied to a sub menu item when the mouse is over the item. - jqx-menu-item-top-hover - applied to a top-level menu item when the mouse is over it. - jqx-fill-state-hover - applied to a menu item when the mouse is over. - jqx-menu-item-selected - applied to a sub menu item when its sub menu is opened. - jqx-fill-state-pressed - applied to a menu item when it is opened. - jqx-menu-item-disabled - applied to a disabled sub menu item. - jqx-menu-item-top-selected - applied to a top-level menu item when its sub menu is opened. - jqx-menu-item-arrow-right - applied to a sub menu item when it has sub menu items. Displays right arrow icon. - jqx-menu-item-arrow-down - applied to a sub menu item when it has sub menu items. Displays down arrow icon. - jqx-menu-item-arrow-up - applied to a sub menu item when it has sub menu items. Displays up arrow icon. - jqx-menu-item-arrow-left - applied to a sub menu item when it has sub menu items. Displays left arrow icon. - jqx-menu-item-arrow-right-selected - applied to a sub menu item when it has sub menu items and its sub menu is opened. Displays right arrow icon. - jqx-menu-item-arrow-down-selected - applied to a sub menu item when it has sub menu items and its sub menu is opened. Displays down arrow icon. - jqx-menu-item-arrow-up-selected - applied to a sub menu item when it has sub menu items and its sub menu is opened. Displays up arrow icon. - jqx-menu-item-arrow-left-selected - applied to a sub menu item when it has sub menu items and its sub menu is opened. Displays left arrow icon. - jqx-menu-item-arrow-top-right - applied to a top-level menu item when it has sub menu items. Displays right arrow icon. - jqx-menu-item-arrow-top-left - applied to a top-level menu item when it has sub menu items. Displays left arrow icon. - jqx-menu-item a:link, a:visited - applied to the anchor elements of a sub menu item. - jqx-menu-item a:hover - applied to the anchor elements of a sub menu item. - jqx-menu-item-top a:link - applied to the anchor elements of a top-level menu item. - jqx-menu-item-top a:visited - applied to the anchor elements of a top-level menu item. - jqx-menu-item-top a:hover - applied to the anchor elements of a top-level menu item. - jqx-menu-disabled - applied to the menu widget when it is disabled. - jqx-menu-disabled a:link - applied to the anchor elements of all disabled menu items. - jqx-menu-disabled a:visited - jqx-menu-disabled a:hover - jqx-fill-state-disabled - applied to the jqxMenu when it is disabled. When you create a custom style with colors and backgrounds for jqxMenu, you need to do the following: - Add the above CSS classes related to jqxMenu - After each CSS class, add your theme name. For example: jqx-menu-summer - To apply your custom style to jqxMenu, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Menu API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxmenu/vue-menu-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxmenu.txt #### Properties - `animationShowDuration` (Type: Number, Default: 350): Sets or gets the duration of the show animation. - `animationHideDuration` (Type: Number, Default: 250): Sets or gets the duration of the hide animation. - `animationHideDelay` (Type: Number, Default: 500): Sets or gets the delay before the start of the hide animation. - `animationShowDelay` (Type: Number, Default: 200): Sets or gets the delay before the start of the show animation. - `autoCloseInterval` (Type: Number, Default: 10000): Sets or gets the time interval after which all opened items will be closed. When you open a new sub menu, the interval is cleared. - `autoSizeMainItems` (Type: Boolean, Default: true): Auto-Sizes the jqxMenu's main items when the menu's mode is 'horizontal'. - `autoCloseOnClick` (Type: Boolean, Default: true): Automatically closes the opened popups after a click. - `autoOpenPopup` (Type: Boolean, Default: true): Opens the Context Menu when the right-mouse button is pressed. When this property is set to false, the `Open` and `Close` functions can be used to open and close the Context Menu. - `autoOpen` (Type: Boolean, Default: true): Opens the top level menu items when the user hovers them. - `autoCloseOnMouseLeave` (Type: Boolean, Default: true) - `clickToOpen` (Type: Boolean, Default: false): Opens an item after a click by the user. - `disabled` (Type: Boolean, Default: false): Enables or disables the jqxMenu. - `enableHover` (Type: Boolean, Default: true): Enables or disables the hover state. - `easing` (Type: String, Default: easeInOutSine): Sets or gets the animation's easing to one of the JQuery's supported easings. - `height` (Type: Number | String, Default: null): Sets or gets the jqxMenu's height. - `keyboardNavigation` (Type: Boolean, Default: false): Enables or disables the jqxMenu's keyboard navigation. - `minimizeWidth` (Type: String | Number, Default: 'auto'): Sets or gets the jqxMenu's minimizeWidth. That width determines the minimum browser window's width when the Menu will switch from normal to minimized mode and the Menu's width is in percentages. - `mode` (Type: String, Default: horizontal): Sets or gets the menu's display mode. - `popupZIndex` (Type: Number, Default: 20000): Sets or gets the popup's z-index. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `showTopLevelArrows` (Type: Boolean, Default: false) - `source` (Type: Array | Object, Default: null): Specifies the jqxMenu's data source. Use this property to populate the jqxMenu. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: null): Sets or gets the jqxMenu's width. #### Events - `closed` (Type: Event): This event is triggered when any of the jqxMenu Sub Menus is closed. - `itemclick` (Type: Event): This event is triggered when a menu item is clicked. - `shown` (Type: Event): This event is triggered when any of the jqxMenu Sub Menus is displayed. #### Methods - `closeItem` (Arguments: itemID, Return Type: None): Closes a menu item. - `close` (Arguments: None, Return Type: None): Closes the menu (only in context menu mode). - `disable` (Arguments: itemID, value, Return Type: None): Disables or enables a menu item. The method has two parameters - HTML Element ID and a boolean value which determines whether to disable or enable the element. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `minimize` (Arguments: None, Return Type: None): Minimizes the widget. - `open` (Arguments: left, top, Return Type: None): Opens the menu(only in context menu mode). - `openItem` (Arguments: itemID, Return Type: None): Opens a menu item - `restore` (Arguments: None, Return Type: None): Restores the widget from the "minimized" state. - `setItemOpenDirection` (Arguments: item, horizontaldirection, verticaldirection, Return Type: None): Sets the item's popup open direction --- ### Getting started with the Vue NavBar Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnavbar/vue-navbar-getting-started.htm > Vue NavBar getting started: install jQWidgets, add jqxNavBar to your app, see a complete example, handle its events and call its methods. The Vue NavBar is a responsive horizontal or vertical navigation bar. This guide adds the Vue NavBar (`jqxNavBar`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavbar.vue` - **Demos:** [Vue NavBar demos](https://www.jqwidgets.com/vue/vue-navbar/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnavbar/vue-navbar-api.htm) jqxNavBar in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxnavbar/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxNavBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavbar.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the user selects an item. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `open`: When NavBar is minimized, opens the popup. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [NavBar API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnavbar/vue-navbar-api.htm): every property, event and method, with examples. - [Vue NavBar demos](https://www.jqwidgets.com/vue/vue-navbar/): live examples with their source code. --- ### Vue NavBar API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnavbar/vue-navbar-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxnavbar.txt #### Properties - `columns` (Type: Array, Default: []): Defines the layout of the widget's elements. Each Array item should be a Percentage Value and the total should be "100%". - `disabled` (Type: Boolean, Default: false): Enables/disables the navbar. - `height` (Type: Number | String, Default: null): Sets or gets the NavBar's height. - `minimized` (Type: Boolean, Default: false): Defines whether the NavBar is minimized. - `minimizeButtonPosition` (Type: String, Default: 'left'): Defines the position of the Toggle Button in the minimized state. - `minimizedHeight` (Type: Number, Default: 30): Defines the NavBar's height in minimized state. - `minimizedTitle` (Type: String, Default: ""): Defines the NavBar's Title in minimized state. - `orientation` (Type: String, Default: "horizontal"): Defines the NavBar's orientation. Possible values: "horizontal", "vertical". - `popupAnimationDelay` (Type: Number, Default: 250): Defines the animation speed of the NavBar's Popup in minimized state. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `selection` (Type: Boolean, Default: true): Sets or gets whether the items can be selected. - `selectedItem` (Type: Number, Default: 0): Sets or gets the selected item. The property is taken into account when `selection` is true. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: '100%'): Sets or gets the NavBar's width. #### Events - `change` (Type: Event): This event is triggered when the user selects an item. #### Methods - `close` (Arguments: None, Return Type: None): When NavBar is minimized, closes the popup. - `destroy` (Arguments: None, Return Type: None): Destroys the jqxNavBar widget. - `getSelectedIndex` (Arguments: None, Return Type: Number): Gets the index of the selected item. The returned value is the index of the selected item. If there's no selected item, -1 is returned. - `open` (Arguments: None, Return Type: None): When NavBar is minimized, opens the popup. - `selectAt` (Arguments: index, Return Type: None): Selects the item with indicated index. Index is a number. --- ### Getting started with the Vue NavigationBar Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnavigationbar/vue-navigationbar-getting-started.htm > Vue NavigationBar getting started: install jQWidgets, add jqxNavigationBar to your app, see a complete example, handle its events and call its methods. The Vue NavigationBar shows expandable sections, one or several open at a time, like an accordion. This guide adds the Vue NavigationBar (`jqxNavigationBar`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue` - **Demos:** [Vue NavigationBar demos](https://www.jqwidgets.com/vue/vue-navigationbar/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnavigationbar/vue-navigationbar-api.htm) jqxNavigationBar in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxnavigationbar/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `collapsingItem`: This event is triggered when a jqxNavigationBar item is going to be collapsed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the expanded item. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [NavigationBar API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnavigationbar/vue-navigationbar-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnavigationbar/vue-navigationbar-styling-and-appearance.htm): themes and CSS classes. - [Vue NavigationBar demos](https://www.jqwidgets.com/vue/vue-navigationbar/): live examples with their source code. --- ### Vue NavigationBar Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnavigationbar/vue-navigationbar-styling-and-appearance.htm > Style the Vue NavigationBar: the jqxNavigationBar CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxNavigationBar. - jqx-widget - applied to the jqxNavigationBar widget. - jqx-navigationbar - applied to the jqxNavigationBar. - jqx-expander-header - applied to the expander's header. - jqx-widget-header - applied to the header elements. - jqx-fill-state-normal - applied to the header elements. - jqx-expander-content - applied to the content elements. - jqx-widget-content - applied to the content elements. - jqx-expander-arrow - applied to the header's expand/collapse button. - jqx-expander-arrow-top - applied to the expander's expand/collapse button and displays arrow icon. - jqx-expander-arrow-bottom - applied to the expander's expand/collapse button and displays arrow icon. - jqx-expander-header-hover - applied to a hovered header element. - jqx-fill-state-hover - applied to a hovered header element. - jqx-fill-state-pressed - applied to an expanded header element. - jqx-fill-state-focus - applied to focused Content or Header elements. - jqx-fill-state-disabled - applied to the jqxNavigationBar when it is disabled. When you create a custom style with colors and backgrounds for jqxNavigationBar, you need to do the following: - Add the above CSS classes related to jqxnavigationbar - After each CSS class, add your theme name. For example: jqx-navigationbar-summer - To apply your custom style to jqxnavigationbar, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue NavigationBar API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnavigationbar/vue-navigationbar-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxnavigationbar.txt #### Properties - `animationType` (Type: String, Default: 'slide'): Sets or gets the animation type. - `arrowPosition` (Type: String, Default: 'right'): Sets or gets header's arrow position. - `collapseAnimationDuration` (Type: Number, Default: 400): Sets or gets the collapsing animation duration. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the navigation bar is disabled. - `expandAnimationDuration` (Type: Number, Default: 400): Sets or gets the expanding animation duration. - `expandMode` (Type: String, Default: 'singleFitHeight'): Sets or gets navigation bar's expand mode. Possible values ['single', 'singleFitHeight' 'multiple', 'toggle', 'none']. - `expandedIndexes` (Type: Array, Default: []): Sets or gets the expanded item(s). If the property `expandMode` is set to either 'single', 'singleFitHeight', 'toggle' or 'none', only the item corresponding to the first value in the array is expanded. - `height` (Type: Number | String, Default: 'auto'): Sets or gets the navigationbar's height. Possible values - 'auto' or string like this 'Npx' where N is any number or a numeric value in pixels. - `initContent` (Type: Function, Default: null): Callback function called when an item's content needs to be initialized. Useful for initializing other widgets within the content of any of the items of jqxNavigationBar. - `rtl` (Type: Boolean, Default: false): Determines whether the right-to-left support is enabled. - `showArrow` (Type: Boolean, Default: true): Sets or gets whether header's arrow is going to be shown. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `toggleMode` (Type: String, Default: click): Sets or gets user interaction used for expanding or collapsing the content. Possible values ['click', 'dblclick', 'none']. - `width` (Type: Number | String, Default: 'auto'): Sets or gets the navigationbar's width. Possible values - 'auto' or string like this 'Npx' where N is any number or a numeric value in pixels. #### Events - `collapsingItem` (Type: Event): This event is triggered when a jqxNavigationBar item is going to be collapsed. - `collapsedItem` (Type: Event): This event is triggered when a jqxNavigationBar item is collapsed. - `expandingItem` (Type: Event): This event is triggered when a jqxNavigationBar item is going to be expanded. - `expandedItem` (Type: Event): This event is triggered when a jqxNavigationBar item is expanded. #### Methods - `add` (Arguments: header, content, Return Type: None): This method inserts an item at the bottom of the navigationbar. It has two parameters - header (the header of the new item) and content (the content of the new item). - `collapseAt` (Arguments: index, Return Type: None): Collapsing item with any index. - `disableAt` (Arguments: index, Return Type: None): Disabling item with any index. - `disable` (Arguments: None, Return Type: None): This method is disabling the navigation bar. - `destroy` (Arguments: None, Return Type: None): This method destroys the navigationbar. - `expandAt` (Arguments: index, Return Type: None): Expanding item with any index. - `enableAt` (Arguments: index, Return Type: None): Enabling item with any index. - `enable` (Arguments: None, Return Type: None): This method is enabling the navigation bar. - `focus` (Arguments: None, Return Type: None): This method focuses on the navigationbar. When the widget is focused, keyboard navigation can be used. Here is a list of the keys, supported by jqxNavigationBar and their function: - `getHeaderContentAt` (Arguments: index, Return Type: String): Getting header content of item with any index. Returns a string value. - `getContentAt` (Arguments: index, Return Type: String): Getting content of item with any index. Returns a string value. - `hideArrowAt` (Arguments: index, Return Type: None): Hiding the arrow of an item with specific index. - `invalidate` (Arguments: None, Return Type: None): This method refreshes the navigationbar. - `insert` (Arguments: Index, header, content, Return Type: None): This method inserts an item at a specific index. It has three parameters - index, header (the header of the new item) and content (the content of the new item). - `refresh` (Arguments: None, Return Type: None): This method refreshes the navigationbar. - `render` (Arguments: None, Return Type: None): This method renders the navigationbar. - `remove` (Arguments: index, Return Type: None): This method removes an item at a specific index. The parameter (index) is optional and if it is not set, the method removes the last item. - `setContentAt` (Arguments: index, item, Return Type: None): Setting content to item with any index. - `setHeaderContentAt` (Arguments: index, item, Return Type: None): Setting header content to item with any index - `showArrowAt` (Arguments: index, Return Type: None): Showing the arrow of an item with specific index. - `update` (Arguments: index, header, content, Return Type: None): This method updates an item at a specific index. It has three parameters - index, header (the new header of the item) and content (the new content of the item). - `val` (Arguments: value, Return Type: String): Sets or gets the expanded item. --- ### Getting started with the Vue Notification Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnotification/vue-notification-getting-started.htm > Vue Notification getting started: install jQWidgets, add jqxNotification to your app, see a complete example, handle its events and call its methods. The Vue Notification displays an unobtrusive notification to the user. This guide adds the Vue Notification (`jqxNotification`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxnotification.vue` - **Demos:** [Vue Notification demos](https://www.jqwidgets.com/vue/vue-notification/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnotification/vue-notification-api.htm) jqxNotification in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxnotification/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxNotification from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnotification.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `click`: This event is triggered when the notification is clicked. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `open`: Opens the widget. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Notification API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnotification/vue-notification-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnotification/vue-notification-styling-and-appearance.htm): themes and CSS classes. - [Vue Notification demos](https://www.jqwidgets.com/vue/vue-notification/): live examples with their source code. --- ### Vue Notification Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnotification/vue-notification-styling-and-appearance.htm > Style the Vue Notification: the jqxNotification CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxNotification. - jqx-widget - applied to the jqxNotification widget. - jqx-notification - applied to the jqxNotification. - jqx-notification-container - applied to the notifications container. - jqx-notification-icon - applied to the notification's icon. - jqx-notification-content - applied to the notification's content. - jqx-notification-close-button - applied to the notification's close button. - jqx-fill-state-normal - applied to the notification if the **template** property is set to *null*. When you create a custom style with colors and backgrounds for jqxNotification, you need to do the following: - Add the above CSS classes related to jqxNotification - After each CSS class, add your theme name. For example: jqx-notification-summer - To apply your custom style to jqxNotification, you need to set its 'theme' property(option) to point to your theme name string. By default, a template is applied to the notification, which overrides the theme setting. Here is a list of all available notification templates: Templates can be modified by changing the CSS of their classes. Each template uses the following classes: - info - warning - success - error - mail - time - jqx-notification-[template name] - applied to the whole notification. - jqx-notification-icon-[template name] - applied to the notification's icon. - jqx-notification-close-button-[template name] - applied to the notification's close button. --- ### Vue Notification API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnotification/vue-notification-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxnotification.txt #### Properties - `appendContainer` (Type: String, Default: null): If set, specifies the notification container. The value of appendContainer should be a string with the id of the container element preceded by "#". - `autoOpen` (Type: Boolean, Default: false): Sets or gets whether the notification will open automatically. - `animationOpenDelay` (Type: Number, Default: 400): Sets or gets the duration of the notification animation at open. - `animationCloseDelay` (Type: Number, Default: 800): Sets or gets the duration of the tooltip animation at close. - `autoClose` (Type: Boolean, Default: true): Sets or gets whether the notification will automatically close after duration equal to the autoCloseDelay property. - `autoCloseDelay` (Type: Number, Default: 3000): Sets or gets the duration after which the notification automatically closes (works only if the autoClose property is set to true). - `blink` (Type: Boolean, Default: false): Sets or gets whether the notification blinks when opened. - `browserBoundsOffset` (Type: Number, Default: 5): Sets ot gets the notifications' offset from the window bounds. - `closeOnClick` (Type: Boolean, Default: true): Sets or gets whether the notification will close if it is clicked. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the notification is disabled (it cannot be opened). - `height` (Type: Number | String, Default: 'auto'): Sets ot gets the notification's height. - `hoverOpacity` (Type: Number, Default: 1): Sets or gets the notification's opacity when it is hovered with the mouse. - `icon` (Type: Object, Default: null): Sets or gets an object which specifies a custom notification icon. The icon property is disregarded if template is set. - `notificationOffset` (Type: Number, Default: 5): Sets or gets the offset between notifications. - `opacity` (Type: Number, Default: 0.9): Sets or gets the notification's opacity. - `position` (Type: String, Default: 'top-right'): Sets the part of the browser window where the notifications will be positioned. The position property is disregarded if appendContainer is set. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `showCloseButton` (Type: Boolean, Default: true): Sets or gets whether to show the notification's close button. - `template` (Type: String, Default: 'info'): Sets or gets the notification template. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: 'auto'): Sets ot gets the notification's width. #### Events - `close` (Type: Event): This event is triggered when the notification is closed. - `click` (Type: Event): This event is triggered when the notification is clicked. - `open` (Type: Event): This event is triggered when the notification is opened. #### Methods - `closeAll` (Arguments: None, Return Type: None): Closes all notification instances. - `closeLast` (Arguments: None, Return Type: None): Closes the last notification instances. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `open` (Arguments: None, Return Type: None): Opens the widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. - `render` (Arguments: None, Return Type: None): Renders the widget. --- ### Getting started with the Vue NumberInput Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnumberinput/vue-numberinput-getting-started.htm > Vue NumberInput getting started: install jQWidgets, add jqxNumberInput to your app, see a complete example, handle its events and call its methods. The Vue NumberInput enables users to input numbers. This guide adds the Vue NumberInput (`jqxNumberInput`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue` - **Demos:** [Vue NumberInput demos](https://www.jqwidgets.com/vue/vue-numberinput/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnumberinput/vue-numberinput-api.htm) jqxNumberInput in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxnumberinput/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value is changed and the control's focus is lost. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [NumberInput API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnumberinput/vue-numberinput-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnumberinput/vue-numberinput-styling-and-appearance.htm): themes and CSS classes. - [Vue NumberInput demos](https://www.jqwidgets.com/vue/vue-numberinput/): live examples with their source code. --- ### Vue NumberInput Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnumberinput/vue-numberinput-styling-and-appearance.htm > Style the Vue NumberInput: the jqxNumberInput CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxNumberInput. - jqx-widget - applied to the input. - jqx-input - applied to the input. - jqx-input-invalid - applied to the input when the validation fails. - jqx-input-content - applied to the input's content. - jqx-widget-content - applied to the input's content. - jqx-input-disabled - applied to the input when it is disabled. - jqx-fill-state-focus - applied to the widget when it is focused. - jqx-fill-state-disabled - applied to the widget when it is disabled. When you create a custom style with colors and backgrounds for jqxNumberInput, you need to do the following: - Add the above CSS classes related to jqxNumberInput - After each CSS class, add your theme name. For example: jqx-input-summer - To apply your custom style to jqxNumberInput, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue NumberInput API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxnumberinput/vue-numberinput-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxnumberinput.txt #### Properties - `allowNull` (Type: Boolean, Default: true): Determines whether the widget's value could be null. - `autoHidePromptChar` (Type: Boolean, Default: true): Determines whether the the prompt char is visible only when the component is on focus. - `decimal` (Type: Number, Default: 0): Sets or gets the input's number. - `disabled` (Type: Boolean, Default: false): Determines whether jqxNumberInput is disabled. - `decimalDigits` (Type: Number, Default: 2): Indicates the number of decimal places to use in numeric values. - `decimalSeparator` (Type: String, Default: '.'): Sets or gets the char to use as the decimal separator in numeric values. - `digits` (Type: Number, Default: 8): Sets or gets the digits in the input - `groupSeparator` (Type: String, Default: ','): Sets or gets the string that separates groups of digits to the left of the decimal in numeric values. - `groupSize` (Type: Number, Default: 3): Sets or gets the number of digits in each group to the left of the decimal in numeric values. - `height` (Type: Number | String, Default: null): Sets or gets the height of the input in pixels. - `inputMode` (Type: String, Default: 'advanced'): Sets or gets the input's mode. - `min` (Type: Number, Default: -99999999): Sets or gets the input's minimum value. - `max` (Type: Number, Default: 99999999): Sets or gets the input's maximum value. - `negativeSymbol` (Type: String, Default: '-'): Sets or gets the string to use as negative symbol. - `placeHolder` (Type: String, Default: ""): Determines the widget's place holder displayed when the widget's value is null. - `promptChar` (Type: String, Default: -): Sets or gets the prompt char displayed when an editable char is empty. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `readOnly` (Type: Boolean, Default: false): Sets or gets the readOnly state of the input. - `spinMode` (Type: String, Default: 'advanced'): Sets or gets the spin mode. - `spinButtons` (Type: Boolean, Default: false): Shows or hides the spin buttons. - `spinButtonsWidth` (Type: Number, Default: 18): Sets or gets the width of the spin buttons. - `spinButtonsStep` (Type: Number, Default: 1): Sets or gets the increase/decrease step. - `symbol` (Type: String, Default: ''): Sets or gets the string to use as currency or percentage symbol. - `symbolPosition` (Type: String, Default: 'left'): Sets or gets the position of the symbol in the input. - `textAlign` (Type: String, Default: 'right'): Sets or gets the alignment. - `template` (Type: String, Default: 'default'): Determines the template as an alternative of the default styles. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `value` (Type: Number, Default: null) - `width` (Type: Number | String, Default: null): Sets or gets the width of the input in pixels. Only positive values have effect. #### Events - `change` (Type: Event): This event is triggered when the value is changed and the control's focus is lost. - `textchanged` (Type: Event): This event is triggered when the user entered entered a text. - `valueChanged` (Type: Event): This event is triggered after value is changed. #### Methods - `clear` (Arguments: None, Return Type: None): Clears the value. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `getDecimal` (Arguments: None, Return Type: Number): Gets the value. - `setDecimal` (Arguments: index, Return Type: None): Sets the value. - `val` (Arguments: value, Return Type: Number): Sets or gets the value. --- ### Getting started with the Vue Panel Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpanel/vue-panel-getting-started.htm > Vue Panel getting started: install jQWidgets, add jqxPanel to your app, see a complete example and call its methods. The Vue Panel enables users to display content in a scrollable panel. This guide adds the Vue Panel (`jqxPanel`) to an app, then shows how to set its options and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxpanel.vue` - **Demos:** [Vue Panel demos](https://www.jqwidgets.com/vue/vue-panel/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpanel/vue-panel-api.htm) jqxPanel in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxpanel/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxPanel from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpanel.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Call methods Call methods through a template ref. For example, `focus`: Focuses the widget. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Panel API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpanel/vue-panel-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpanel/vue-panel-styling-and-appearance.htm): themes and CSS classes. - [Vue Panel demos](https://www.jqwidgets.com/vue/vue-panel/): live examples with their source code. --- ### Vue Panel Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpanel/vue-panel-styling-and-appearance.htm > Style the Vue Panel: the jqxPanel CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxPanel. - jqx-panel - applied to jqxPanel's 'DIV' - jqx-panel-bottomright - applied to the Panel's element displayed when the horizontal and vertical scrollbars are visible and the element is positioned below the vertical scrollbar and on the right of the horizontal scrollbar. When you create a custom style with colors and backgrounds for jqxPanel, you need to do the following: - Add the above CSS classes related to jqxPanel - After each CSS class, add your theme name. For example: jqx-panel-summer - To apply your custom style to jqxPanel, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Panel API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpanel/vue-panel-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxpanel.txt #### Properties - `autoUpdate` (Type: Boolean, Default: false): Automatically updates the panel, if its children size is changed. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the panel is disabled. - `height` (Type: Number | String, Default: null): Sets or gets the panel's height. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `sizeMode` (Type: String, Default: 'fixed'): Sets or gets the sizing mode. In the 'fixed' mode, the panel displays scrollbars, if its content requires it. In the wrap mode, the scrollbars are not displayed and the panel automatically changes its size. - `scrollBarSize` (Type: Number, Default: 17): Sets or gets the scrollbar's size. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: null): Sets or gets the panel's width. #### Methods - `append` (Arguments: HTMLElement, Return Type: None): Appends an element to the panel's content. - `clearcontent` (Arguments: None, Return Type: None): Clears the panel's content. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `getScrollHeight` (Arguments: None, Return Type: Number): Get the scrollable height. Returns a number. - `getVScrollPosition` (Arguments: None, Return Type: Number): Get the vertical scrollbar's position. Returns a number. - `getScrollWidth` (Arguments: None, Return Type: Number): Get the scrollable width. Returns a number. - `getHScrollPosition` (Arguments: None, Return Type: Number): Get the horizontal scrollbar's position. Returns a number. - `prepend` (Arguments: HTMLElement, Return Type: None): Prepends an element to the panel's content. - `remove` (Arguments: HTMLElement, Return Type: None): Remove an element from the panel's content. - `scrollTo` (Arguments: left, top, Return Type: None): Scroll to specific position. --- ### Getting started with the Vue PasswordInput Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpasswordinput/vue-passwordinput-getting-started.htm > Vue PasswordInput getting started: install jQWidgets, add jqxPasswordInput to your app, see a complete example, handle its events and call its methods. The Vue PasswordInput enables users to input passwords. This guide adds the Vue PasswordInput (`jqxPasswordInput`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxpasswordinput.vue` - **Demos:** [Vue PasswordInput demos](https://www.jqwidgets.com/vue/vue-passwordinput/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpasswordinput/vue-passwordinput-api.htm) jqxPasswordInput in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxpasswordinput/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxPasswordInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpasswordinput.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value in the input is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Gets or sets the password. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [PasswordInput API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpasswordinput/vue-passwordinput-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpasswordinput/vue-passwordinput-styling-and-appearance.htm): themes and CSS classes. - [Vue PasswordInput demos](https://www.jqwidgets.com/vue/vue-passwordinput/): live examples with their source code. --- ### Vue PasswordInput Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpasswordinput/vue-passwordinput-styling-and-appearance.htm > Style the Vue PasswordInput: the jqxPasswordInput CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxPasswordInput. - jqx-input - applied to the input. - jqx-widget - applied to the input. - jqx-widget-content - applied to the input. Adds the background. - jqx-rc-all - applied to the input. Adds rounded corners to the widget. - jqx-input-disabled - applied to the input when it is disabled. - jqx-fill-state-disabled - applied to the input when it is disabled. - jqx-passwordinput-password-strength-inicator - applied to the strength indicator. - jqx-passwordinput-password-icon - applied to the password input's icon. - jqx-passwordinput-password-icon-rtl - applied to the password input's icon in right-to-left mode. When you create a custom style with colors and backgrounds for jqxPasswordInput, you need to do the following: - Add the above CSS classes related to jqxPasswordInput - After each CSS class, add your theme name. For example: jqx-input-summer - To apply your custom style to jqxPasswordInput, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue PasswordInput API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpasswordinput/vue-passwordinput-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxpasswordinput.txt #### Properties - `disabled` (Type: Boolean, Default: false): Gets or sets whether the widget is disabled. - `height` (Type: Number | String, Default: "auto"): Gets or sets the widget's height. The value may be "auto", a number or a string like "Npx", where N is a number. - `localization` (Type: Object, Default: { passwordStrengthString: 'Password strength', tooShort: 'Too short', weak: 'Weak', fair: 'Fair', good: 'Good', strong: 'Strong' }): Sets the various text values used in the widget. Useful for localization. - `maxLength` (Type: Number, Default: null): Gets or sets the maximal number of characters in the password. - `placeHolder` (Type: String, Default: null): Gets or sets the password input's placeholder text. - `passwordStrength` (Type: Function, Default: null): A callback function for defining a custom strength rule. The function has three parameters: - `rtl` (Type: Boolean, Default: false): Determines whether the right-to-left support is enabled. - `strengthColors` (Type: Object, Default: { tooShort: 'rgb(170, 0, 51)', weak: 'rgb(170, 0, 51)', fair: 'rgb(255, 204, 51)', good: 'rgb(45, 152, 243)', strong: 'rgb(118, 194, 97)' }): Sets the the colors used in the tooltip which shows the strength. - `showStrength` (Type: Boolean, Default: false): Gets or sets whether a tooltip which shows the password's strength will be shown. - `showStrengthPosition` (Type: String, Default: "right"): Gets or sets the position of the tooltip which shows the password strength. Possible values: - `strengthTypeRenderer` (Type: Function, Default: null): A callback function for custom rendering of the tooltip which shows the password strength. The function has three parameters: - `showPasswordIcon` (Type: Boolean, Default: true): Gets or sets whether the Show/Hide password icon will appear. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: "auto"): Gets or sets the widget's width. The value may be "auto", a number or a string like "Npx", where N is a number. #### Events - `change` (Type: Event): This event is triggered when the value in the input is changed. #### Methods - `render` (Arguments: None, Return Type: None): Renders the widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. - `val` (Arguments: value, Return Type: String): Gets or sets the password. If the parameter is set, sets the value of the password in the input. If there is no parameter set, returns the string value of the password. --- ### Getting started with the Vue PivotGrid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpivotgrid/vue-pivotgrid-getting-started.htm > Vue PivotGrid getting started: install jQWidgets, add jqxPivotGrid to your app, see a complete example, handle its events and call its methods. The Vue PivotGrid displays summarized data in a multi-dimensional, cross-tabulated view. This guide adds the Vue PivotGrid (`jqxPivotGrid`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxpivotgrid.vue` - **Demos:** [Vue PivotGrid demos](https://www.jqwidgets.com/vue/vue-pivotgrid/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpivotgrid/vue-pivotgrid-api.htm) jqxPivotGrid in the [Pivot grid cell values alignment](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxpivotgrid/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxPivotGrid from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpivotgrid.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `pivotitemexpanding`: This event is triggered when a pivot item is expanding. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Refreshes the content of the pivot grid component ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [PivotGrid API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpivotgrid/vue-pivotgrid-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpivotgrid/vue-pivotgrid-styling-and-appearance.htm): themes and CSS classes. - [Vue PivotGrid demos](https://www.jqwidgets.com/vue/vue-pivotgrid/): live examples with their source code. --- ### Vue PivotGrid Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpivotgrid/vue-pivotgrid-styling-and-appearance.htm > Style the Vue PivotGrid: the jqxPivotGrid CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by the Pivot Grid. - jqx-widget - applied to the Pivot Grid. - jqx-widget-content - applied to the Pivot Grid. - jqx-grid-pager - applied to the Pivot Grid Pager. - jqx-pivotgrid - applied to the Pivot Grid. - jqx-pivotgrid-item - applied to the Pivot Grid items. - jqx-pivotgrid-expand-button - applied to the expand buttons in the rows and columns. - jqx-pivotgrid-collapse-button - applied to the collapse buttons in the rows and columns. - jqx-pivotgrid-menu-button - applied to the Pivot Grid button displayed when you hover a row or column. - jqx-pivotgrid-sortasc-icon - applied to the Pivot Grid sort ascending icon. - jqx-pivotgrid-sortdesc-icon - applied to the Pivot Grid sort descending menu icon. - jqx-pivotgrid-sortremove-icon - applied to the Pivot Grid sort remove icon. - jqx-pivotgrid-sortsettings-icon - applied to the Pivot Grid settings icon. When you create a custom style with colors and backgrounds for Pivot Grid, you need to do the following: - Add the above CSS classes related to the Pivot Grid - After each CSS class, add your theme name. For example: jqx-pivotgrid-light - To apply your custom style to the Pivot Grid, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue PivotGrid API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpivotgrid/vue-pivotgrid-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxpivotgrid.txt #### Properties - `source` (Type: Object, Default: null) - `localization` (Type: Object, Default: null) - `scrollBarsEnabled` (Type: Boolean, Default: true) - `selectionEnabled` (Type: Boolean, Default: true) - `multipleSelectionEnabled` (Type: Boolean, Default: true) - `treeStyleRows` (Type: Boolean, Default: true) - `autoResize` (Type: Boolean, Default: false) - `itemsRenderer` (Type: Function, Default: null) - `cellsRenderer` (Type: Function, Default: null) #### Events - `pivotitemexpanding` (Type: Event) - `pivotitemexpanded` (Type: Event) - `pivotitemcollapsing` (Type: Event) - `pivotitemcollapsed` (Type: Event) - `sortchanging` (Type: Event) - `sortchanged` (Type: Event) - `sortremoving` (Type: Event) - `sortremoved` (Type: Event) - `pivotitemselectionchanged` (Type: Event) - `pivotcellmousedown` (Type: Event) - `pivotcellmouseup` (Type: Event) - `pivotcellclick` (Type: Event) - `pivotcelldblclick` (Type: Event) - `pivotitemmousedown` (Type: Event) - `pivotitemmouseup` (Type: Event) - `pivotitemclick` (Type: Event) - `pivotitemdblclick` (Type: Event) #### Methods - `getInstance` (Return Type: Object) - `refresh` (Return Type: None) - `getPivotRows` (Return Type: Object) - `getPivotColumns` (Return Type: Object) - `getPivotCells` (Return Type: Object) #### Properties - `type` (Type: String, Default: pivotGrid) - `target` (Type: Object, Default: null) #### Methods - `refresh` (Return Type: None) #### Properties - `pivotRow` (Type: Object, Default: null) - `pivotColumn` (Type: Object, Default: null) #### Properties - `prefix` (Type: String, Default: null) - `sufix` (Type: String, Default: null) - `decimalSeparator` (Type: String, Default: .) - `thousandsSeparator` (Type: String, Default: ,) - `decimalPlaces` (Type: Number, Default: 2) - `negativeWithBrackets` (Type: Boolean, Default: false) #### Methods - `hitTest` (Arguments: point, Return Type: Object) - `clear` (Return Type: None) - `setCellValue` (Arguments: pivotRow, pivotColumn, value, Return Type: None) - `getCellValue` (Arguments: pivotRow, pivotColumn, Return Type: Object) - `drillThroughCell` (Arguments: pivotRow, pivotColumn, Return Type: Array) - `selectCell` (Arguments: pivotRow, pivotColumn, Return Type: None) - `unselectCell` (Arguments: pivotRow, pivotColumn, Return Type: None) - `clearSelection` (Return Type: None) - `isCellSelected` (Arguments: pivotRow, pivotColumn, Return Type: Boolean) - `getSelectedCellsCount` (Return Type: Number) - `getSelectedCells` (Return Type: Array) - `getNextCell` (Arguments: pivotCell, position, Return Type: Object) #### Properties - `resizable` (Type: Boolean, Default: true) - `sortable` (Type: Boolean, Default: true) - `showExpandCollapseButtons` (Type: Boolean, Default: true) - `parentPivotGrid` (Type: Object, Default: null) - `items` (Type: Array, Default: []) - `valueItems` (Type: Array, Default: []) - `isHidden` (Type: Boolean, Default: false) #### Methods - `show` (Return Type: None) - `hide` (Return Type: None) - `refresh` (Return Type: None) - `getHierarchyDepth` (Return Type: Number) - `autoResize` (Arguments: autoResizeMode, Return Type: None) - `getSortItem` (Return Type: Object) - `getSortOrder` (Return Type: Object) - `sortBy` (Arguments: pivotItem,, Return Type: None) - `removeSort` (Return Type: None) - `selectItem` (Arguments: pivotItem, Return Type: None) - `unselectItem` (Arguments: pivotItem, Return Type: None) - `clearSelection` (Return Type: None) - `getSelectedItems` (Return Type: Array) #### Properties - `dataField` (Type: String, Default: null) - `text` (Type: String, Default: null) - `align` (Type: String, Default: null) - `className` (Type: String, Default: null) - `classNameSelected` (Type: String, Default: null) #### Properties - `dataField` (Type: String, Default: null) - `text` (Type: String, Default: null) - `filterFunction` (Type: Function, Default: null) #### Properties - `isExpanded` (Type: Boolean, Default: false) - `isHidden` (Type: Boolean, Default: false) - `isSelected` (Type: Boolean, Default: false) - `parentItem` (Type: Object, Default: null) - `hierarchy` (Type: Object, Default: null) - `parentPivotGrid` (Type: Object, Default: null) - `items` (Type: Array, Default: []) - `valueItems` (Type: Array, Default: []) #### Methods - `getWidth` (Return Type: Number) - `getDisplayWidth` (Return Type: Number) - `autoResize` (Return Type: None) - `getHeight` (Return Type: Number) - `getDisplayHeight` (Return Type: Number) - `setHeight` (Arguments: height, Return Type: None) - `expand` (Return Type: None) - `collapse` (Return Type: None) #### Properties - `resizable` (Type: Boolean, Default: true) - `sortable` (Type: Boolean, Default: true) - `showExpandCollapseButtons` (Type: Boolean, Default: true) - `parentPivotGrid` (Type: Object, Default: null) - `items` (Type: Array, Default: []) - `valueItems` (Type: Array, Default: []) - `isHidden` (Type: Boolean, Default: false) #### Methods - `show` (Return Type: None) - `hide` (Return Type: None) - `refresh` (Return Type: None) - `getHierarchyDepth` (Return Type: Number) - `autoResize` (Arguments: autoResizeMode, Return Type: None) - `getSortItem` (Return Type: Object) - `getSortOrder` (Return Type: Object) - `sortBy` (Arguments: pivotItem, sortOrder, Return Type: None) - `removeSort` (Return Type: None) - `selectItem` (Arguments: pivotItem, Return Type: None) - `unselectItem` (Arguments: pivotItem, Return Type: None) - `clearSelection` (Return Type: None) - `getSelectedItems` (Return Type: Array) #### Properties - `pivotValuesOnRows` (Type: Boolean, Default: false) - `rows` (Type: Boolean, Default: []) - `columns` (Type: Boolean, Default: []) - `values` (Type: Boolean, Default: []) - `filters` (Type: Boolean, Default: []) - `theme` (Type: String, Default: ''): Sets the widget's theme. Include the theme's CSS file after jqx.base.css. #### Properties - `dataField` (Type: String, Default: undefined) - `function` (Type: String | Function, Default: undefined) - `text` (Type: String, Default: undefined) - `align` (Type: String, Default: undefined) - `className` (Type: String, Default: undefined) - `classNameSelected` (Type: String, Default: undefined) - `cellsClassName` (Type: String, Default: undefined) - `cellsClassNameSelected` (Type: String, Default: undefined) - `formatSettings` (Type: Object, Default: {}) #### Properties - `x` (Type: Number, Default: null) - `y` (Type: Number, Default: null) --- ### Getting started with the Vue Popover Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpopover/vue-popover-getting-started.htm > Vue Popover getting started: install jQWidgets, add jqxPopover to your app, see a complete example, handle its events and call its methods. The Vue Popover shows a small overlay of secondary content next to an element when the element is clicked. This guide adds the Vue Popover (`jqxPopover`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue` - **Demos:** [Vue Popover demos](https://www.jqwidgets.com/vue/vue-popover/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpopover/vue-popover-api.htm) jqxPopover in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxpopover/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `open`: This event is triggered when the popover is opened. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `open`: Open the popover. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Popover API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpopover/vue-popover-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpopover/vue-popover-styling-and-appearance.htm): themes and CSS classes. - [Vue Popover demos](https://www.jqwidgets.com/vue/vue-popover/): live examples with their source code. --- ### Vue Popover Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpopover/vue-popover-styling-and-appearance.htm > Style the Vue Popover: the jqxPopover CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxPopover. - jqx-widget - applied to the popover. - jqx-widget-content - applied to the popover. - jqx-popover - applied to the popover. - jqx-popover-border - applied to the popover. - jqx-popover-arrow - applied to the popover's arrow. - jqx-tooltip-arrow - applied to the popover's arrow. - jqx-popover-modal-background - applied to the popover's background when the widget is modal. - jqx-rc-all - applied to the popover to create rounded corners. When you create a custom style with colors and backgrounds for jqxPopover, you need to do the following: - Add the above CSS classes related to jqxPopover - After each CSS class, add your theme name. For example: jqx-popover-shinyblack - To apply your custom style to jqxPopover, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Popover API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxpopover/vue-popover-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxpopover.txt #### Properties - `arrowOffsetValue` (Type: Number, Default: 0): Sets or gets the arrow's offset from its default position. - `animationOpenDelay` (Type: String | Number, Default: 'fast'): The time for showing of the widget. - `animationCloseDelay` (Type: String | Number, Default: 'fast'): The time for showing of the widget. - `autoClose` (Type: Boolean, Default: true): Sets or gets the closing of the widget after click outside of the popover. - `animationType` (Type: String, Default: 'fade'): Sets the type of animation. - `height` (Type: Number | String, Default: null): Sets or gets the popover's height. - `initContent` (Type: Function, Default: null): Initializes the popover's content. - `isModal` (Type: Boolean, Default: false): Sets or gets whether the popover is displayed as a modal dialog. If the jqxPopover's mode is set to modal, the popover blocks user interaction with the underlying user interface. - `offset` (Type: Object, Default: null): Sets or gets the Popover's offset from its position. - `position` (Type: String, Default: 'left'): Sets or gets the position of the popover. The position presents the orientation of the popover compared to the selector element - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `selector` (Type: String, Default: null): Sets or gets the Popover's selector. The selector is the element where the Popover is displayed. - `showArrow` (Type: Boolean, Default: true): Sets or gets the displaying of the popover's arrow. - `showCloseButton` (Type: Boolean, Default: false): Sets or gets whether the close button is displayed. - `width` (Type: Number | String, Default: null): Sets or gets the popover's width. - `title` (Type: String, Default: ""): Sets or gets the popover's title. - `theme` (Type: String, Default: ''): Sets the widget's theme. #### Events - `close` (Type: Event): This event is triggered when the popover is closed. - `open` (Type: Event): This event is triggered when the popover is opened. #### Methods - `close` (Arguments: None, Return Type: None): Closes the popover. - `destroy` (Arguments: None, Return Type: None): Destroy the widget. - `open` (Arguments: None, Return Type: None): Open the popover. --- ### Getting started with the Vue ProgressBar Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxprogressbar/vue-progressbar-getting-started.htm > Vue ProgressBar getting started: install jQWidgets, add jqxProgressBar to your app, see a complete example, handle its events and call its methods. The Vue ProgressBar visually indicates the progress of a lengthy operation. This guide adds the Vue ProgressBar (`jqxProgressBar`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxprogressbar.vue` - **Demos:** [Vue ProgressBar demos](https://www.jqwidgets.com/vue/vue-progressbar/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxprogressbar/vue-progressbar-api.htm) jqxProgressBar in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxprogressbar/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxProgressBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxprogressbar.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `valueChanged`: This event is triggered when the value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ProgressBar API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxprogressbar/vue-progressbar-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxprogressbar/vue-progressbar-styling-and-appearance.htm): themes and CSS classes. - [Vue ProgressBar demos](https://www.jqwidgets.com/vue/vue-progressbar/): live examples with their source code. --- ### Vue ProgressBar Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxprogressbar/vue-progressbar-styling-and-appearance.htm > Style the Vue ProgressBar: the jqxProgressBar CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxProgressBar. - jqx-widget - applied to the progressbar. - jqx-progressbar - applied to the progressbar. - jqx-progressbar-value - applied to the progressbar's value element. - jqx-progressbar-value-vertical - applied to the progress bar's vertical value element- when the widget's orientation is 'vertical'. - jqx-fill-state-pressed - applied to the progressbar's value element. - jqx-widget-content - applied to the progressbar. - jqx-progressbar-disabled - applied to the progress bar when the widget is in disabled state. - jqx-fill-state-disabled - applied to the progress bar when the widget is in disabled state When you create a custom style with colors and backgrounds for jqxProgressBar, you need to do the following: - Add the above CSS classes related to jqxProgressBar - After each CSS class, add your theme name. For example: jqx-progressbar-shinyblack - To apply your custom style to jqxProgressBar, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue ProgressBar API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxprogressbar/vue-progressbar-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxprogressbar.txt #### Properties - `animationDuration` (Type: Number, Default: 300): Determines the duration of the progressbar's animation. - `colorRanges` (Type: Array, Default: []): Determines different color segments. - `disabled` (Type: Boolean, Default: false): Determines whether the progress bar is disabled. - `height` (Type: Number | String, Default: null): Sets or gets the progress bar's height. - `layout` (Type: String, Default: "normal"): Sets or gets the jqxProgressBar's layout. - `max` (Type: Number, Default: 100): Sets or gets the progress bar's max value. - `min` (Type: Number, Default: 0): Sets or gets the progress bar's min value. - `orientation` (Type: String, Default: 'horizontal'): Sets or gets the orientation. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `renderText` (Type: Object | Function, Default: null) - `showText` (Type: Boolean, Default: false) - `template` (Type: String, Default: 'default'): Determines the template as an alternative of the default styles. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `value` (Type: Number, Default: 0): Sets or gets the progress bar's value The value should be set between min(default value: 0) and max(default value: 100). - `width` (Type: Number | String, Default: null): Sets or gets the progress bar's width. #### Events - `complete` (Type: Event): This event is triggered when the value is equal to the max. value. - `invalidValue` (Type: Event): This event is triggered when the user enters an invalid value(value which is not number or is out of the min - max range.) - `valueChanged` (Type: Event): This event is triggered when the value is changed. #### Methods - `actualValue` (Arguments: value, Return Type: None): Sets the progress bar's value. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `val` (Arguments: value, Return Type: Number): Sets or gets the value. --- ### Getting started with the Vue RadioButton Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxradiobutton/vue-radiobutton-getting-started.htm > Vue RadioButton getting started: install jQWidgets, add jqxRadioButton to your app, see a complete example, handle its events and call its methods. The Vue RadioButton lets users make one choice among a set of mutually exclusive, related options. This guide adds the Vue RadioButton (`jqxRadioButton`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue` - **Demos:** [Vue RadioButton demos](https://www.jqwidgets.com/vue/vue-buttons/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxradiobutton/vue-radiobutton-api.htm) #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This is triggered when the Radio Button's state changes from one state to another. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [RadioButton API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxradiobutton/vue-radiobutton-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxradiobutton/vue-radiobutton-styling-and-appearance.htm): themes and CSS classes. - [Vue RadioButton demos](https://www.jqwidgets.com/vue/vue-buttons/): live examples with their source code. --- ### Vue RadioButton Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxradiobutton/vue-radiobutton-styling-and-appearance.htm > Style the Vue RadioButton: the jqxRadioButton CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxButtons. - jqxRadioButton Style - jqx-widget - applied to the jqxRadioButton widget. - jqx-radiobutton - applied to jqxRadioButton's outer div element. - jqx-radiobutton-default - applied to the check box when its state is default. - jqx-fill-state-normal - applied to the check box when its state is default. - jqx-radiobutton-hover - applied to the check box when the mouse cursor is over it - jqx-fill-state-hover - applied to the check box when the mouse cursor is over it - jqx-radiobutton-disabled -applied to the check box when the widget is disabled - jqx-radiobutton-disabled-box - applied to the check's box when the jqxRadioButton is disabled. - jqx-radiobutton-check-checked - applied to the check's box when the jqxRadioButton is checked. Displays a check icon - jqx-radiobutton-check-disabled - applied to the check's box when the jqxRadioButton is disabled. Displays a disabled check icon - jqx-radiobutton-check-indeterminate - applied to the check's box when the jqxRadioButton is in indeterminate state. Displays a rectangle inside the check's box. - jqx-radiobutton-check-indeterminate-disabled - applied to the check's box when the jqxradiobutton is in indeterminate state and the jqxRadioButton is disabled. Displays a gray(disabled) rectangle inside the check's box. - jqx-fill-state-disabled - applied to the jqxRadioButton when it is disabled. - jqx-fill-state-focus - applied to the jqxRadioButton when it is focused. When you create a custom style with colors and backgrounds for jqxRadioButton, you need to do the following: - Add the above CSS classes related to jqxRadioButton - After each CSS class, add your theme name. For example: jqx-radiobutton-summer - To apply your custom style to jqxRadioButton, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue RadioButton API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxradiobutton/vue-radiobutton-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxradiobutton.txt #### Properties - `animationShowDelay` (Type: Number, Default: 250): Sets or gets the delay of the fade animation when the Radio Button is going to be checked. - `animationHideDelay` (Type: Number, Default: 300): Sets or gets the delay of the fade animation when the Radio Button is going to be unchecked. - `boxSize` (Type: String, Default: "13px"): Sets or gets the Radio Button's size. - `checked` (Type: Boolean, Default: false): Sets or gets whether the radio button is checked. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the Radio Button is disabled. - `enableContainerClick` (Type: Boolean, Default: true): Sets or gets whether the clicks on the container are handled as clicks on the rounded button. - `groupName` (Type: String, Default: ""): Sets or gets the group name. When this property is set, checking a radio button from the group, will uncheck only the radio buttons from the same group. - `hasThreeStates` (Type: Boolean, Default: false): Sets or gets whether the radio button has 3 states - checked, unchecked and indeterminate. - `height` (Type: Number | String, Default: null): Sets or gets the jqxRadioButton's height. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: null): Sets or gets the jqxRadioButton's width. #### Events - `checked` (Type: Event): This event is triggered when the Radio Button is checked. - `change` (Type: Event): This is triggered when the Radio Button's state changes from one state to another. - `unchecked` (Type: Event): This event is triggered when the Radio Button is unchecked. #### Methods - `check` (Arguments: None, Return Type: None): Checks the radio button. - `disable` (Arguments: None, Return Type: None): Disables the radio button. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `enable` (Arguments: None, Return Type: None): Enables the radio button. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `render` (Arguments: None, Return Type: None): Renders the widget. - `uncheck` (Arguments: None, Return Type: None): Unchecks the radio button. - `val` (Arguments: value, Return Type: Boolean): Sets or gets the value. --- ### Getting started with the Vue RangeSelector Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrangeselector/vue-rangeselector-getting-started.htm > Vue RangeSelector getting started: install jQWidgets, add jqxRangeSelector to your app, see a complete example, handle its events and call its methods. The Vue RangeSelector can easily be used to select a numeric or date range. This guide adds the Vue RangeSelector (`jqxRangeSelector`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxrangeselector.vue` - **Demos:** [Vue RangeSelector demos](https://www.jqwidgets.com/vue/vue-rangeselector/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrangeselector/vue-rangeselector-api.htm) jqxRangeSelector in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxrangeselector/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxRangeSelector from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrangeselector.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the selected range is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Refreshes the range selector. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [RangeSelector API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrangeselector/vue-rangeselector-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrangeselector/vue-rangeselector-styling-and-appearance.htm): themes and CSS classes. - [Vue RangeSelector demos](https://www.jqwidgets.com/vue/vue-rangeselector/): live examples with their source code. --- ### Vue RangeSelector Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrangeselector/vue-rangeselector-styling-and-appearance.htm > Style the Vue RangeSelector: the jqxRangeSelector CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxRangeSelector. - jqx-widget - applied to the RangeSelector widget. - jqx-rangeselector - applied to RangeSelector widget. - jqx-rangeselector-slider - applied to RangeSelector's Slider element. - jqx-scrollbar-thumb-state-normal - applied to RangeSelector's Slider element. - jqx-rangeselector-shutter - applied to the areas which are situated on the Left and Right side of the Slider. - jqx-scrollbar-state-normal - applied to the areas which are situated on the Left and Right side of the Slider. - jqx-rangeselector-markers - applied to RangeSelector's Left and Right markers. - jqx-fill-state-normal - applied to RangeSelector's Left and Right markers. - jqx-fill-state-hover - applied to RangeSelector's Left and Right markers on Hover. - jqx-fill-state-pressed - applied to RangeSelector's Left and Right markers on Drag. - jqx-rangeselector-markers-value - applied to the element which displays the value in the markers. - jqx-rangeselector-marker-arrow - applied to the Left and Right marker arrows. - jqx-rangeselector-marker-left-arrow - applied to the Left marker arrow. - jqx-rangeselector-marker-right-arrow - applied to the Right marker arrow. - jqx-rangeselector-marker-arrow-bottom - applied to the markers `markersPosition` is set to "bottom" - jqx-rangeselector-marker-arrow-top - applied to the markers `markersPosition` is set to "top" - jqx-rangeselector-labels - applied to RangeSelector's labels. - jqx-rangeselector-group-labels - applied to the Group labels. - jqx-rangeselector-ticks - applied to RangeSelector's ticks. - jqx-fill-state-disabled - applied to the RangeSelector when it is disabled. When you create a custom style with colors and backgrounds for jqxRangeSelector, you need to do the following: - Add the above CSS classes related to jqxRangeSelector. - After each CSS class, add your theme name. For example: jqx-rangeselector-energyblue - To apply your custom style to jqxRangeSelector, you need to set its 'theme' property(option) to point to your theme's name. --- ### Vue RangeSelector API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrangeselector/vue-rangeselector-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxrangeselector.txt #### Properties - `disabled` (Type: Boolean, Default: false): Sets or gets whether the range selector is disabled. - `groupLabelsFormatFunction` (Type: Function, Default: null): A custom callback function for rendering the major labels. Has two arguments - the value of the major label and the date object. - `height` (Type: Number | String, Default: 100): Sets or gets the range selector's height. Possible values: - `labelsFormat` (Type: String, Default: null): Sets or gets the format of the labels. Possible number formats: - `labelsFormatFunction` (Type: Function, Default: null): A custom callback function for rendering the labels. Has one argument - the value of the label. - `labelsOnTicks` (Type: Boolean, Default: true) - `markersFormat` (Type: String, Default: null): Sets or gets the format of the markers. Possible number formats: - `markersFormatFunction` (Type: Function, Default: null) - `majorTicksInterval` (Type: Number | String | Object, Default: 10): Sets or gets the interval between major ticks. Possible values: - `minorTicksInterval` (Type: Number | String | Object, Default: 5): Sets or gets the interval between minor ticks. Possible values: - `max` (Type: Number | String | Date, Default: 100): Sets or gets the maximum value of the range selector scale. Possible values: - `min` (Type: Number | String | Date, Default: 0): Sets or gets the minimum value of the range selector scale. Possible values: - `moveOnClick` (Type: Boolean, Default: true): Sets or gets whether the position of the slider can be changed by clicking on the range selector. - `padding` (Type: String | Number, Default: "auto"): Sets or gets the range selector's padding. Possible values: - `range` (Type: Object, Default: { from: 0, to: Infinity, min: 0, max: Infinity }): An object containing the following properties: - `resizable` (Type: Boolean, Default: true): Sets or gets whether the range selector's slider can be resized. - `rtl` (Type: Boolean, Default: false): Sets or gets whether the jqxRangeSelector's right-to-left support is enabled. - `showGroupLabels` (Type: Boolean, Default: false) - `showMinorTicks` (Type: Boolean, Default: false): Sets or gets whether minor ticks will be displayed. - `snapToTicks` (Type: Boolean, Default: true): Sets or gets whether the slider will snap to the major and minor ticks. - `showMajorLabels` (Type: Boolean, Default: false): Sets or gets whether the major labels will be shown. - `showMarkers` (Type: Boolean, Default: true): Sets or gets whether the markers will be shown. - `theme` (Type: String, Default: ""): Sets the widget's theme. - `width` (Type: Number | String, Default: 400): Sets or gets the range selector's width. Possible values: #### Events - `change` (Type: Event): This event is triggered when the selected range is changed. #### Methods - `destroy` (Arguments: None, Return Type: None): Removes the range selector from the DOM. - `getRange` (Arguments: None, Return Type: Object): Gets the selected range. Returns an object with two fields. - `render` (Arguments: None, Return Type: None): Renders the range selector. - `refresh` (Arguments: None, Return Type: None): Refreshes the range selector. - `setRange` (Arguments: from, to, Return Type: None): Sets the selected range. --- ### Getting started with the Vue Rating Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrating/vue-rating-getting-started.htm > Vue Rating getting started: install jQWidgets, add jqxRating to your app, see a complete example, handle its events and call its methods. The Vue Rating allows you to choose a rating. This guide adds the Vue Rating (`jqxRating`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxrating.vue` - **Demos:** [Vue Rating demos](https://www.jqwidgets.com/vue/vue-rating/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrating/vue-rating-api.htm) jqxRating in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxrating/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxRating from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrating.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: The change event is triggered when the rating is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Rating API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrating/vue-rating-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrating/vue-rating-styling-and-appearance.htm): themes and CSS classes. - [Vue Rating demos](https://www.jqwidgets.com/vue/vue-rating/): live examples with their source code. --- ### Vue Rating Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrating/vue-rating-styling-and-appearance.htm > Style the Vue Rating: the jqxRating CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxRating. - jqx-rating - applied to the jqxRating widget - jqx-rating-image-default - applied to the rating when the rating is over 0. - jqx-rating-image-hover - applied to the rating when it is hovered. - jqx-rating-image-backward - applied to the rating when it is disabled. When you create a custom style with colors and backgrounds for jqxRating, you need to do the following: - Add the above CSS classes related to jqxRating - After each CSS class, add your theme name. For example: jqx-rating-summer - To apply your custom style to jqxRating, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Rating API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrating/vue-rating-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxrating.txt #### Properties - `count` (Type: Number, Default: 5): Sets or gets images count. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the rating widget is disabled. - `height` (Type: Number | String, Default: auto): Sets or gets widget's height. - `itemHeight` (Type: Number, Default: auto): Sets or gets rating item's height. - `itemWidth` (Type: Number, Default: auto): Sets or gets rating item's width. - `precision` (Type: Number, Default: 1): Sets or gets vote precision. - `singleVote` (Type: Boolean, Default: false): Sets or gets whether the user can vote single or multiple times. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `value` (Type: Number, Default: 0): Sets or gets current rating. - `width` (Type: Number | String, Default: auto): Sets or gets widget's width. #### Events - `change` (Type: Event): The change event is triggered when the rating is changed. #### Methods - `disable` (Arguments: None, Return Type: None): Disabling the widget. - `enable` (Arguments: None, Return Type: None): Enabling the widget. - `getValue` (Arguments: None, Return Type: Number): Getting current rating value. - `setValue` (Arguments: value, Return Type: None): Setting value to the rating widget. - `val` (Arguments: value, Return Type: Number): Sets or gets the value. --- ### Vue RepeatButton API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxrepeatbutton/vue-repeatbutton-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxrepeatbutton.txt #### Properties - `delay` (Type: Number, Default: 50): Specifies the interval between two Click events. This property is available only in the jqxRepeatButton. The jqxRepeatButton raises Click events repeatedly when the button is pressed. - `disabled` (Type: Boolean, Default: false): Enables or disables the button. - `height` (Type: Number | String, Default: null): Sets or gets the button's height. - `imgSrc` (Type: String, Default: ""): Sets or gets the button's image source. - `imgWidth` (Type: Number, Default: 16): Sets or gets the button's image width. - `imgHeight` (Type: Number, Default: 16): Sets or gets the button's image height. - `imgPosition` (Type: String, Default: 'center'): Sets or gets the button's image position. Possible values: "left", "top", "center", "bottom", "right", "topLeft", "bottomLeft", "topRight", "bottomRight". - `roundedCorners` (Type: String, Default: all): Enables or disables the rounded corners functionality. This property setting has effect in browsers which support CSS border-radius. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `textPosition` (Type: String): Sets or gets the button's text position. Possible values: "left", "top", "center", "bottom", "right", "topLeft", "bottomLeft", "topRight", "bottomRight". - `textImageRelation` (Type: String, Default: 'overlay'): Sets or gets the button's text image relation. Possible values: "imageBeforeText", "imageAboveText", "textAboveImage", "textBeforeImage" and "overlay". - `theme` (Type: String, Default: ''): Sets the widget's theme. - `template` (Type: String, Default: 'default'): Determines the button's template as an alternative of the default styles. - `toggled` (Type: Boolean, Default: false): Sets or gets the button's toggle state. (available in jqxToggleButton). - `width` (Type: Number | String, Default: null): Sets ot gets the button's width. - `value` (Type: String, Default: ""): Sets or gets the button's value. #### Events - `click` (Type: Event): This event is triggered when the button is clicked. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `render` (Arguments: None, Return Type: None): Renders the widget. - `val` (Arguments: value, Return Type: String): Sets or gets the value. --- ### Getting started with the Vue ResponsivePanel Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxresponsivepanel/vue-responsivepanel-getting-started.htm > Vue ResponsivePanel getting started: install jQWidgets, add jqxResponsivePanel to your app, handle its events and call its methods. The Vue ResponsivePanel is a side panel that collapses into a toggle button on small screens. This guide adds the Vue ResponsivePanel (`jqxResponsivePanel`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxresponsivepanel.vue` - **Demos:** [Vue demos](https://www.jqwidgets.com/vue/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxresponsivepanel/vue-responsivepanel-api.htm) jqxResponsivePanel in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxresponsivepanel/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxResponsivePanel from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxresponsivepanel.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` #### 4. Call methods Call methods through a template ref. For example, `open`: Open the responsive panel. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ResponsivePanel API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxresponsivepanel/vue-responsivepanel-api.htm): every property, event and method, with examples. - [Vue demos](https://www.jqwidgets.com/vue/): live examples with their source code. --- ### Vue ResponsivePanel API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxresponsivepanel/vue-responsivepanel-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxresponsivepanel.txt #### Properties - `animationDirection` (Type: String, Default: 'left'): Sets or gets the direction of the animation. You can use this property when "animationType" is set to 'slide'. - `animationHideDelay` (Type: String | Number, Default: 'fast'): Sets or gets the speed of the animation when the panel hides. The delay represents the time of starting until the final hiding. - `animationShowDelay` (Type: Number, Default: 'fast'): Sets or gets the speed of the animation when the panel shows. The delay represents the time of it's starting until the final positioning. - `animationType` (Type: String, Default: 'fade'): Sets the type of animation using for show/hide the panel. - `autoClose` (Type: Boolean, Default: true): When is set to true, after click outside of the responsive panel it closes. - `collapseBreakpoint` (Type: Number, Default: 1000): If is set, changes the browser's width, where the panel shows/hides. - `collapseWidth` (Type: Number, Default: null): Sets or gets the width of the panel when it is collapsed. - `height` (Type: Number | String, Default: null): Sets or gets the responsive panel's height. - `initContent` (Type: Function, Default: null): Initializes the responsive panel content. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `toggleButton` (Type: String, Default: null): Sets or gets the element, where toggleButton is rendered. - `toggleButtonSize` (Type: Number, Default: 30): Sets the size of toggleButton. - `width` (Type: Number | String, Default: null): Sets or gets the responsive panel's width. #### Events - `close` (Type: Event): This event is triggered when the responsive panel finishes it's closing. - `collapse` (Type: Event): This event is triggered when the the browser's width becomes smaller than the value of **collapseBreakpoint**. - `expand` (Type: Event): This event is triggered when the the browser's width becomes greater than the value of **collapseBreakpoint**. - `open` (Type: Event): This event is triggered when the responsive panel finishes it's opening. #### Methods - `close` (Arguments: None, Return Type: None): Closes the responsive panel. - `destroy` (Arguments: None, Return Type: None): Destroy the widget. - `isCollapsed` (Arguments: None, Return Type: Boolean): Returns *true* or *false* when the panel is collapsed or expanded. - `isOpened` (Arguments: None, Return Type: Boolean): Returns *true* or *false* when the panel is opened or closed. - `open` (Arguments: None, Return Type: None): Open the responsive panel. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. - `render` (Arguments: None, Return Type: None): Render the widget. --- ### Getting started with the Vue Ribbon Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxribbon/vue-ribbon-getting-started.htm > Vue Ribbon getting started: install jQWidgets, add jqxRibbon to your app, see a complete example, handle its events and call its methods. The Vue Ribbon can be used as a tabbed toolbar or a mega menu. This guide adds the Vue Ribbon (`jqxRibbon`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxribbon.vue` - **Demos:** [Vue Ribbon demos](https://www.jqwidgets.com/vue/vue-ribbon/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxribbon/vue-ribbon-api.htm) jqxRibbon in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxribbon/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxRibbon from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxribbon.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the user selects or unselects an item. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the selected index. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Ribbon API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxribbon/vue-ribbon-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxribbon/vue-ribbon-styling-and-appearance.htm): themes and CSS classes. - [Vue Ribbon demos](https://www.jqwidgets.com/vue/vue-ribbon/): live examples with their source code. --- ### Vue Ribbon Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxribbon/vue-ribbon-styling-and-appearance.htm > Style the Vue Ribbon: the jqxRibbon CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxRibbon. - jqx-widget - applied to the jqxRibbon widget. - jqx-ribbon - applied to the jqxRibbon. - jqx-widget-header - applied to the jqxRibbon header (the 'UL' element which includes the item tabs). - jqx-ribbon-header - applied to the jqxRibbon header. - jqx-ribbon-item - applied to the jqxRibbon items tabs ('LI' elements). - jqx-ribbon-item-hover - applied to the hovered item tab. - jqx-ribbon-item-selected - applied to the selected item tab. - jqx-widget-content - applied to the jqxRibbon content and content sections. - jqx-ribbon-content - applied to the jqxRibbon content (the 'DIV' element which includes the item content sections). - jqx-ribbon-content-section - applied to the jqxRibbon item content sections ('DIV' elements). - jqx-ribbon-scrollbutton - applied to the jqxRibbon scroll buttons. When you create a custom style with colors and backgrounds for jqxRibbon, you need to do the following: - Add the above CSS classes related to jqxRibbon - After each CSS class, add your theme name. For example: jqx-ribbon-orange - To apply your custom style to jqxRibbon, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Ribbon API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxribbon/vue-ribbon-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxribbon.txt #### Properties - `animationType` (Type: String, Default: 'fade'): Sets or gets the animation type. - `animationDelay` (Type: Number, Default: 400): Sets or gets the duration of the ribbon animation. - `disabled` (Type: Boolean, Default: false): Enables/disables the ribbon. - `height` (Type: Number | String, Default: 100): Sets or gets the ribbon's height. - `initContent` (Type: Function, Default: null): Initializes the content of jqxRibbon. Useful for initializing other widgets. - `mode` (Type: String, Default: 'default'): Sets or gets the ribbon's display mode. - `popupCloseMode` (Type: String, Default: 'click'): Sets or gets the way to close selected content sections when the `mode` property is set to "popup". - `position` (Type: String, Default: 'top'): Sets or gets whether the ribbon's header is positioned at the top, bottom, left or right of the content. - `reorder` (Type: Boolean, Default: false): Sets or gets whether the ribbon's tabs can be reordered. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `selectedIndex` (Type: Number, Default: 0): Sets or gets the selected index (tab). - `selectionMode` (Type: String, Default: 'click'): Sets or gets the selection mode. - `scrollPosition` (Type: String, Default: 'both'): Sets or gets the position of the scrollbar buttons. - `scrollStep` (Type: Number, Default: 10): Sets or gets the scroll step. - `scrollDelay` (Type: Number, Default: 50): Sets or gets the scroll delay. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: null): Sets or gets the ribbon's width. #### Events - `change` (Type: Event): This event is triggered when the user selects or unselects an item. - `reorder` (Type: Event): This event is triggered when the user reorders the jqxRibbon items with the mouse. - `select` (Type: Event): This event is triggered when the user selects an item. - `unselect` (Type: Event): This event is triggered when the user unselects an item. #### Methods - `addAt` (Arguments: index, item, Return Type: None): Adds a new item by index. - `clearSelection` (Arguments: None, Return Type: None): Unselects the selected item and collapses its content. - `disableAt` (Arguments: index, Return Type: None): Disables an item by index. Index is a number. - `destroy` (Arguments: None, Return Type: None): Destroys the jqxRibbon widget. - `enableAt` (Arguments: index, Return Type: None): Enables a disabled item by index. Index is a number. - `hideAt` (Arguments: index, Return Type: None): Hides an item by index. Index is a number. - `removeAt` (Arguments: index, Return Type: None): Removes an item from the ribbon. Index is a number. - `render` (Arguments: None, Return Type: None): Renders the jqxRibbon widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the jqxRibbon widget. - `selectAt` (Arguments: index, Return Type: None): Selects the item with indicated index. Index is a number. - `showAt` (Arguments: index, Return Type: None): Shows an item by index. Index is a number. - `setPopupLayout` (Arguments: index, layout, width, height, Return Type: None): Sets the layout of an item's content if mode is set to "popup". - `updateAt` (Arguments: index, item, Return Type: None): Updates an item. - `val` (Arguments: value, Return Type: String): Sets or gets the selected index. Index is a number. --- ### Getting started with the Vue Scheduler Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscheduler/vue-scheduler-getting-started.htm > Vue Scheduler getting started: install jQWidgets, add jqxScheduler to your app, see a complete example, handle its events and call its methods. The Vue Scheduler shows appointments in day, week, month, timeline and agenda views, with recurring appointments and resources. This guide adds the Vue Scheduler (`jqxScheduler`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxscheduler.vue` - **Demos:** [Vue Scheduler demos](https://www.jqwidgets.com/vue/vue-scheduler/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscheduler/vue-scheduler-api.htm) jqxScheduler in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxscheduler/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscheduler.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `scheduleraiResult`: This event is triggered when an AI method completes. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `focus`: Focuses the Scheduler. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Scheduler API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscheduler/vue-scheduler-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscheduler/vue-scheduler-styling-and-appearance.htm): themes and CSS classes. - [Vue Scheduler demos](https://www.jqwidgets.com/vue/vue-scheduler/): live examples with their source code. --- ### Vue Scheduler Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscheduler/vue-scheduler-styling-and-appearance.htm > Style the Vue Scheduler: the jqxScheduler CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of CSS files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxScheduler: - jqx-scheduler - applying to the root jqxScheduler element. - jqx-widget - applying to the root jqxScheduler element. - jqx-widget-content - applying to the root jqxScheduler element. - jqx-rc-all - applying to the root jqxScheduler element. - jqx-cell - applying to the jqxScheduler cells. - jqx-widget-header - applying to the jqxScheduler column header, toolbar, legend. - jqx-scheduler-toolbar - applying to the jqxScheduler toolbar. - jqx-icon-arrow-left - applying to the jqxScheduler left navigation arrow. - jqx-icon-arrow-right - applying to the jqxScheduler right navigation arrow. - jqx-scheduler-selected-appointment - applying to a selected appointment. - jqx-scheduler-appointment-resize-indicator - applying to the appointment elements. Displays a resize handler. - jqx-scheduler-cell-focus - applying to focused cell. - jqx-scheduler-feedback-appointment - applying to the appointment and the feedback element of an appointment which is displayed when the appointment is being dragged or resized. - jqx-scheduler-feedback-drag-appointment - applying to the feedback element of an appointment which is displayed when the appointment is being dragged or resized. - jqx-scheduler-time-column - applying to the time ruler's column. - jqx-scheduler-cell-hover - applying to hovered cell. - jqx-fill-state-hover - applying to hovered cell. - jqx-scheduler-cell-selected - applying to selected cell(s). - jqx-fill-state-pressed - applying to selected cell(s). - jqx-scheduler-month-weekend-cell - applying to weekend cells. - jqx-scheduler-month-cell - applying to cells in the month view. - jqx-scheduler-month-outer-cell - applying to cells in the month view which are not from the current month. - jqx-scheduler-all-day-cell - applying to the cells in the all day area. - jqx-scheduler-time-column-header-cell - applying to the cell above the time ruler's column. - jqx-scheduler-work-time-cell - applying to cells in the work time area. - jqxjqx-scheduler-not-work-time-cell - applying to cells out of the work time area. When you create a custom style with colors and backgrounds for jqxScheduler, you need to do the following: - Add the above CSS classes related to jqxScheduler - After each CSS class, add your theme name. For example: jqx-Scheduler-summer - To apply your custom style to jqxScheduler, you need to set its 'theme' property(option) to point to your theme name string. - The sample below demonstrates how to set the 'Summer' theme to jqxScheduler. --- ### Vue Scheduler API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscheduler/vue-scheduler-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxscheduler.txt #### Properties - `aiProvider` (Type: String, Default: 'anthropic'): Sets or gets the AI provider that the Scheduler's AI requests are written for: 'anthropic' (Claude, the default) or 'openai'; 'custom' uses the Anthropic format. - `aiKey` (Type: String, Default: null): Sets or gets the API key that the Scheduler sends straight to the provider (in the x-api-key header for Anthropic, as Authorization: Bearer for OpenAI). - `aiModel` (Type: String, Default: null): Sets or gets the model the AI requests ask for. When null, the provider's default is used: 'claude-opus-4-8' for 'anthropic' and 'custom', 'gpt-4o' for 'openai'. - `aiProxyUrl` (Type: String, Default: null): Sets or gets the URL of your server endpoint that forwards the AI requests to the provider, so the API key stays on the server. - `aiHeaders` (Type: Object, Default: null): Sets or gets extra HTTP headers for the AI requests, for example a token your aiProxyUrl endpoint checks. They replace the provider's headers of the same name. Not used with aiSendRequest. - `aiSendRequest` (Type: Function, Default: null): Sets or gets a function that sends the AI requests itself, in place of the Scheduler's own fetch call. - `aiMaxRows` (Type: Number, Default: 40): Sets or gets how many appointments the AI requests carry: aiAsk, aiSummarize (when no appointment is selected) and aiClassifyAppointments send the first aiMaxRows visible appointments. aiCommand, aiScheduleAppointment and aiFindSlot send none, and aiExplainAppointment sends one appointment and totals. - `allowOverlap` (Type: Boolean, Default: true): Sets or gets whether appointments may overlap. - `blockedTimes` (Type: Array, Default: null): Sets or gets the times that cannot be booked: an array of { from, to, resourceId, recurrenceRule, text }. from and to are Dates, date strings or $.jqx.date values in the scheduler's time zone; recurrenceRule (an RRULE such as 'FREQ=DAILY' or 'FREQ=WEEKLY;BYDAY=SA,SU') repeats the range; resourceId limits it to one resource; text is shown in the blocked cells and given as the reason. - `maxDuration` (Type: Number, Default: null): Sets or gets the longest an appointment may last, in minutes; null for no limit. - `minDuration` (Type: Number, Default: null): Sets or gets the shortest an appointment may last, in minutes; null for no limit. - `appointmentOpacity` (Type: Number, Default: 0.7): Sets or gets the appointments opacity. - `appointmentsMinHeight` (Type: Number, Default: 18): Sets or gets the minimum height of appointments in the all day area, month view and timeline views. - `appointmentDataFields` (Type: Object, Default: { allDay: "allDay", background: "background", borderColor: "borderColor", color: "color", description: "description", draggable: "draggable", from: "from", hidden: "hidden", id: "id", location: "location", recurrencePattern: "recurrencePattern", recurrenceException: "recurrenceException", resizable: "resizable", resourceId: "resourceId", readOnly: "readOnly", subject: "subject", style: "style", status: "status", to: "to", tooltip: "tooltip", timeZone: "timeZone" }): Sets or gets the appointments data fields. A data field should match a field defined in the dataAdapter's source object. - `appointmentTooltips` (Type: Boolean, Default: true): Sets or gets whether Scheduler appointments are with tooltips enabled. - `columnsHeight` (Type: Number, Default: 30): Sets or gets the Schedulers' columns height. - `contextMenu` (Type: Boolean, Default: true): Sets or gets whether the Scheduler's context menu is enabled. - `contextMenuOpen` (Type: Function, Default: null): Sets or gets a function called when the context menu is opened. - `contextMenuClose` (Type: Function, Default: null): Sets or gets a function called when the context menu is closed. - `contextMenuItemClick` (Type: Function, Default: null): Sets or gets a function called when a context menu item is clicked. - `contextMenuCreate` (Type: Function, Default: null): Sets or gets a function called when the context menu is created. - `changedAppointments` (Type: Array, Default: []): Gets an array with newly added, deleted or updated appointments. Each element in the Array is an object which has: - `disabled` (Type: Boolean, Default: false): Sets or gets whether the Scheduler is disabled. - `date` (Type: JqxDate, Default: new $.jqx.date('todayDate')): Sets or gets the Scheduler's Date. To learn how to use jqxDate, please look at the Scheduler's Getting Started help topic. - `dayNameFormat` (Type: String, Default: 'full'): Sets or gets the Schedulers' columns day formatting. Possible values: 'shortest', 'firstTwoLetters', 'firstLetter', 'abbr', 'full'. - `enableHover` (Type: Boolean, Default: true): Sets or gets whether cells hover is enabled. - `editDialog` (Type: Boolean, Default: true): Sets or gets whether Edit Dialog is enabled. - `editDialogDateTimeFormatString` (Type: String, Default: "dd/MM/yyyy hh:mm tt"): Sets or gets the DateTimeInput's formatString in the Scheduler's Edit Dialog when the appointment is not allDay appointment. - `editDialogDateFormatString` (Type: String, Default: "dd/MM/yyyy"): Sets or gets the DateTimeInput's formatString in the Scheduler's Edit Dialog when the appointment is allDay appointment. - `editDialogOpen` (Type: Function, Default: null) - `editDialogCreate` (Type: Function, Default: null) - `editDialogKeyDown` (Type: Function, Default: null) - `editDialogClose` (Type: Function, Default: null) - `exportSettings` (Type: Object, Default: { serverURL: null, characterSet: null, fileName: "jqxScheduler", dateTimeFormatString: "S", resourcesInMultipleICSFiles: false}): Determines the Data Export settings used by jqxScheduler when `exportData` is called. See also the `exportData` method. - `height` (Type: Number | String, Default: 600): Sets or gets the Scheduler's height. - `legendPosition` (Type: String, Default: "bottom"): Sets or gets the Scheduler's legendPosition. Possible values: "top" and "bottom". - `legendHeight` (Type: Number, Default: 34): Sets or gets the Scheduler's legend height. - `localization` (Type: Object): Sets or gets the Scheduler's localization. - `min` (Type: JqxDate, Default: new $.jqx.date(0)): Sets or gets the Scheduler's minimum navigation date. To learn how to use jqxDate, please look at the Scheduler's Getting Started help topic. - `max` (Type: JqxDate, Default: new $.jqx.date(9999, 12, 31),): Sets or gets the Scheduler's maximum navigation date. To learn how to use jqxDate, please look at the Scheduler's Getting Started help topic. - `ready` (Type: Function, Default: null): Sets a function called when the Scheduler is rendered and ready for usage. - `renderAppointment` (Type: Function, Default: null): Sets a function called when the Scheduler is rendering its appointments. The function has one parameter which is object with the following members: - `rendering` (Type: Function, Default: null): Sets a function called by the Scheduler when the Scheduler's rendering function is called. - `rendered` (Type: Function, Default: null): Sets a function called by the Scheduler when the Scheduler is rendered. - `rtl` (Type: Boolean, Default: false): Sets or gets whether the Scheduler is displayed with Right to Left layout. - `resources` (Type: Object, Default: null): Sets or gets the Scheduler's resource object. The object can have the following members: - `rowsHeight` (Type: Number, Default: 27): Sets or gets the Scheduler rows height. - `showToolbar` (Type: Boolean, Default: true): Sets or gets whether the Scheduler's navigation toolbar is displayed. - `showLegend` (Type: Boolean, Default: false): Sets or gets whether the Scheduler's legend bar is displayed. - `showCurrent` (Type: Boolean, Default: true): Sets or gets whether the Scheduler's current time is displayed: today's date is marked in the theme's accent in the day, week, month and year views, a line across today marks the current time in the day and week views, and the appointment in progress is outlined. - `showCurrentAppointment` (Type: Boolean, Default: true): Sets or gets whether the Scheduler's legend bar is displayed. - `scrollBarSize` (Type: Number, Default: 15): Sets or gets the scrollbars size. - `source` (Type: Object, Default: null): Sets or gets the Scheduler appointments data source. The property should point to dataAdapter instance. - `statuses` (Type: Object, Default: { free: "white", tentative: "tentative", busy: "transparent", outOfOffice: "#800080" }): Sets or gets the Scheduler appointments statuses. - `touchRowsHeight` (Type: Number, Default: 37): Sets or gets the Scheduler rows height on touch device. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `touchAppointmentsMinHeight` (Type: Number, Default: 27): Sets or gets the minimum height of appointments on touch devices in the all day area, month view and timeline views. - `touchScrollBarSize` (Type: Number, Default: 18): Sets or gets the scrollbars size on touch devices. - `timeZone` (Type: String, Default: ''): Sets or gets the Scheduler's Time Zone. - `touchDayNameFormat` (Type: String, Default: 'abbr'): Sets or gets the Schedulers' columns day formatting. Possible values: 'shortest', 'firstTwoLetters', 'firstLetter', 'abbr', 'full'. - `toolBarRangeFormat` (Type: String, Default: 'dd MMMM yyyy'): Sets or gets the toolbar's date format. - `toolBarRangeFormatAbbr` (Type: String, Default: 'dd MMM yyyy'): Sets or gets the toolbar's date format when the Scheduler's width is not enough for displaying the full format. - `toolbarHeight` (Type: Number, Default: 54): Sets or gets the Scheduler toolbar's height. - `undoRedo` (Type: Boolean, Default: true): Sets or gets whether the scheduler records the user's changes - adding, moving, resizing, editing and deleting appointments, from the mouse, the keyboard, the edit dialog, the API or the AI module - so that the undo and redo methods and the Ctrl+Z, Ctrl+Y and Ctrl+Shift+Z keys can take them back and apply them again. setAppointmentProperty is not recorded. - `undoRedoLimit` (Type: Number, Default: 100): Sets or gets how many changes the undo method can take back; 0 for no limit. Setting it clears the history. - `views` (Type: Array, Default: ['dayView', 'weekView', 'monthView']): Sets or gets the Scheduler's views. - `view` (Type: Number | String): Sets or gets the Scheduler's view. - `width` (Type: Number | String, Default: 800): Sets or gets the Scheduler's width. #### Events - `scheduleraiResult` (Type: Event): This event is triggered when an AI method completes. event.args is { type, result }: type is 'command' (aiCommand), 'schedule' (aiScheduleAppointment), 'findSlot', 'book' (aiBookSlot), 'conflicts' (aiResolveConflicts), 'resolve' (aiApplyResolution), 'ask', 'summary', 'explain' (aiExplainAppointment) or 'classify' (aiClassifyAppointments), and result is what the method returns or its Promise resolves to (for 'book', { appointment }; for 'resolve', { applied }). - `scheduleraiError` (Type: Event): This event is triggered when an AI request fails: the AI is not configured, the provider (or your aiSendRequest) returns an error, or the network fails. event.args is { error, message }: the Error and its message. - `appointmentChange` (Type: Event): This event is triggered when an appointment is changed. event.args contains the event's arguments. This event has one argument: appointment - object which has the appointmentDataFields. - `appointmentClick` (Type: Event): This event is triggered when an appointment is clicked. event.args contains the event's arguments. This event has one argument: appointment - object which has the appointmentDataFields. - `appointmentDoubleClick` (Type: Event): This event is triggered when an appointment is double clicked. event.args contains the event's arguments. This event has one argument: appointment - object which has the appointmentDataFields. - `appointmentDelete` (Type: Event): This event is triggered when an appointment is deleted. event.args contains the event's arguments. This event has one argument: appointment - object which has the appointmentDataFields. - `appointmentAdd` (Type: Event): This event is triggered when an appointment is added. event.args contains the event's arguments. This event has one argument: appointment - object which has the appointmentDataFields. See appointmentDataFields property. - `appointmentAdding` (Type: Event): This event is triggered before an appointment is added - from the edit dialog, the addAppointment method or the AI module - and can cancel it. event.args contains the event's arguments: appointment - the appointment that is about to be added, an object which has the appointmentDataFields (see appointmentDataFields property); action - 'add'. - `appointmentChanging` (Type: Event): This event is triggered before an appointment is changed - by dragging or resizing it with the mouse or the keyboard, by the edit dialog, or by the moveAppointment method - and can cancel the change. event.args contains the event's arguments: appointment - the appointment with its new values; oldAppointment - the appointment with its current values (both are objects which have the appointmentDataFields, see appointmentDataFields property); action - 'move', 'resize' or 'edit'. - `appointmentDeleting` (Type: Event): This event is triggered before an appointment is deleted - from the edit dialog or by the deleteAppointment method - and can cancel it. event.args contains the event's arguments: appointment - the appointment that is about to be deleted, an object which has the appointmentDataFields (see appointmentDataFields property); action - 'delete'. - `undoRedoChange` (Type: Event): This event is triggered when what can be undone or redone changes: a change is recorded, undo or redo is called, or the history is cleared. event.args contains canUndo and canRedo. - `bindingComplete` (Type: Event): This event is triggered when the binding is completed. - `cellClick` (Type: Event): This event is triggered when a cell is clicked. event.args contains the event's arguments. This event has two arguments: cell - TD HTML Element. date - jqxDate object. - `cellDoubleClick` (Type: Event): This event is triggered when a cell is double clicked. event.args contains the event's arguments. This event has two arguments: cell - TD HTML Element. date - jqxDate object. - `contextMenuOpen` (Type: Event): This event is triggered when the context menu is opened. Event Arguments: - `contextMenuClose` (Type: Event): This event is triggered when the context menu is closed. Event Arguments: - `contextMenuItemClick` (Type: Event): This event is triggered when the context menu item is clicked. Event Arguments: - `contextMenuCreate` (Type: Event): This event is triggered when the context menu item is created. Event Arguments: - `dateChange` (Type: Event): This event is triggered when the date is changed. This event has three arguments: date, from and to - jqxDate objects. - `editRecurrenceDialogOpen` (Type: Event): This event is triggered when the recurrence dialog is opened. Event Arguments: - `editRecurrenceDialogClose` (Type: Event): This event is triggered when the recurrence dialog is closed. Event Arguments: - `editDialogCreate` (Type: Event): This event is triggered when the edit dialog is created. Event Arguments: - `editDialogOpen` (Type: Event): This event is triggered when the edit dialog is opened. Event Arguments: - `editDialogClose` (Type: Event): This event is triggered when the edit dialog is closed. Event Arguments: - `viewChange` (Type: Event): This event is triggered when the view type is changed. This event has five arguments: date, from and to - jqxDate objects, oldViewType and newViewType - strings. #### Methods - `aiConfig` (Arguments: config, Return Type: Object): Sets AI settings at run time. They take precedence over the ai* properties, and each call merges into the settings of the earlier ones. - `aiCommand` (Arguments: text, callback, Return Type: Promise): Turns a plain-language request into a search: it shows only the appointments that match and hides the others (a request such as "show all appointments" clears the search). - `aiScheduleAppointment` (Arguments: text, callback, Return Type: Promise): Creates an appointment from a plain-language request ("lunch with Anna tomorrow at noon"). - `aiFindSlot` (Arguments: text, callback, Return Type: Promise): Finds open time slots from a plain-language request ("a free hour in Room 1 tomorrow afternoon"). - `aiBookSlot` (Arguments: slot, details, Return Type: Object): Books a slot returned by aiFindSlot as an appointment (with addAppointment), with the details given: subject ('Meeting' by default), description, location, status and resourceId (the slot's by default). - `aiResolveConflicts` (Arguments: options, callback, Return Type: Promise): Finds double-bookings (overlapping appointments of the same resource) and proposes, for the later appointment of each pair, the first free slot of the same length in the next 14 days within working hours. - `aiApplyResolution` (Arguments: proposals, Return Type: Number): Moves the appointments to the times proposed by aiResolveConflicts. Each move raises appointmentChanging, which can cancel it, and then appointmentChange, and all the moves are one step for undo. - `aiAsk` (Arguments: text, callback, Return Type: Promise): Answers a plain-language question about the calendar. The model is shown the first aiMaxRows visible appointments and totals over the visible ones: their number, the count per status and per resource, and the date range. - `aiSummarize` (Arguments: callback, Return Type: Promise): Sums up the selected appointment or, when none is selected, the first aiMaxRows visible appointments in a few sentences. - `aiExplainAppointment` (Arguments: key, callback, Return Type: Promise): Explains one appointment in a few sentences, against the totals of the calendar (conflicts, long duration, off-hours, no resource). Returns a Promise that resolves to { key, explanation }. - `aiClassifyAppointments` (Arguments: options, callback, Return Type: Promise): Labels the first aiMaxRows visible appointments with the model and writes each label to an appointment property of your choice, with setAppointmentProperty. options: datafield (required; your own property, not a built-in one such as subject, from or status), instruction (what to label, optional) and categories (the labels allowed, optional array). - `addAppointment` (Arguments: item, Return Type: Boolean): Adds a new appointment. Returns false when an appointmentAdding handler cancels it, otherwise true. - `beginAppointmentsUpdate` (Arguments: None, Return Type: None): Begins an update process and stops the Scheduler's rendering and appointments rendering. - `clearAppointmentsSelection` (Arguments: None, Return Type: None): Clears the appointments selection. - `clearSelection` (Arguments: None, Return Type: None): Clears cells selection. - `closeMenu` (Arguments: None, Return Type: None): Closes the context menu. - `closeDialog` (Arguments: None, Return Type: None): Closes the edit dialog. - `deleteAppointment` (Arguments: appointmenId, Return Type: Boolean): Deletes an appointment. Returns false when there is no appointment with this id or an appointmentDeleting handler cancels the deletion, otherwise true. - `destroy` (Arguments: None, Return Type: None): Destroys the Scheduler and removes it from the DOM. - `endAppointmentsUpdate` (Arguments: None, Return Type: None): Ends the update process and resumes the Scheduler's rendering. The method works together with the beginAppointmentsUpdate. - `ensureAppointmentVisible` (Arguments: id, Return Type: None): Scrolls to an appointment if it is out of the visible area. - `ensureVisible` (Arguments: item, resourceId, Return Type: None): Scrolls to a Date. - `findAvailableSlots` (Arguments: options, Return Type: Array): Returns free times for a new appointment, earliest first: [{ from, to, resourceId }], from and to as $.jqx.date values. - `importData` (Arguments: data, options, Return Type: Object): Adds the events of an iCalendar text - an.ics file from Google Calendar, Outlook, Apple Calendar, Thunderbird or exportData('ics') - as appointments. - `exportData` (Arguments: format, Return Type: None): Exports jqxScheduler's data to ICS, Excel, HTML, XML, JSON, CSV or TSV. See also the `exportSettings` property - `focus` (Arguments: None, Return Type: None): Focuses the Scheduler. - `getAppointmentProperty` (Arguments: appointmentId, name, Return Type: Object): Gets the value of an Appointment property. - `getSelection` (Arguments: None, Return Type: Object): Gets the cells selection. Returns an object with the following members: - `getAppointments` (Arguments: None, Return Type: Array): Gets the appointments loaded in jqxScheduler. The return value is an Array of objects. Each object has the appointmentDataFields. See appointmentDataFields property. - `getDataAppointments` (Arguments: None, Return Type: Array): Gets the appointments loaded in jqxScheduler. The return value is an Array of objects. Each object has the fields defined in the dataAdapter's source object. - `hideAppointmentsByResource` (Arguments: resourcesId, Return Type: None): Hides appointments by given resourceId. - `openMenu` (Arguments: left, top, Return Type: None): Opens the context menu. - `openDialog` (Arguments: left, top, Return Type: None): Opens the edit dialog. - `selectAppointment` (Arguments: appointmentId, Return Type: None): Selects an appointment. - `setAppointmentProperty` (Arguments: appointmentId, name, value, Return Type: None): Sets the value of an appointment's property. The from and to properties also accept a Date or a date string, read like the dates of the data source. The change does not raise appointmentChanging or appointmentChange. - `selectCell` (Arguments: date, allday, resourceId, Return Type: None): Selects a cell. - `showAppointmentsByResource` (Arguments: resourceId, Return Type: None): Shows appointments by given resourceId. - `scrollWidth` (Arguments: None, Return Type: Number): Returns the scrollable width. - `scrollHeight` (Arguments: None, Return Type: Number): Returns the scrollable height. - `scrollLeft` (Arguments: left, Return Type: None): Scrolls horizontally to a given position. - `scrollTop` (Arguments: top, Return Type: None): Scrolls vertically to a given position. - `scrollToTime` (Arguments: time, Return Type: Boolean): Scrolls the day or week view so that a time of day is at its top, for example the start of the working day. The time is hours (8, 13.5), a "HH:mm" string, or a Date or jqxDate of which only the time counts. - `undo` (Arguments: None, Return Type: Boolean): Takes back the last recorded change. Returns true, or false when there is nothing to undo or an appointmentAdding, appointmentChanging or appointmentDeleting handler cancels it. See the undoRedo property. - `redo` (Arguments: None, Return Type: Boolean): Applies again the last change that undo took back. Returns true, or false when there is nothing to redo or a handler cancels it. A new change clears what there is to redo. - `canUndo` (Arguments: None, Return Type: Boolean): Returns whether there is a change to undo. - `canRedo` (Arguments: None, Return Type: Boolean): Returns whether there is a change to redo. - `clearUndoRedo` (Arguments: None, Return Type: None): Clears the history of changes, for example after the changes are saved. --- ### Getting started with the Vue ScrollBar Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollbar/vue-scrollbar-getting-started.htm > Vue ScrollBar getting started: install jQWidgets, add jqxScrollBar to your app, see a complete example, handle its events and call its methods. The Vue ScrollBar provides a scroll bar that has a sliding thumb whose position corresponds to a value. This guide adds the Vue ScrollBar (`jqxScrollBar`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue` - **Demos:** [Vue ScrollBar demos](https://www.jqwidgets.com/vue/vue-scrollbar/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollbar/vue-scrollbar-api.htm) #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `valueChanged`: This event is triggered when the value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `isScrolling`: Returns true, if the user is scrolling. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ScrollBar API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollbar/vue-scrollbar-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollbar/vue-scrollbar-styling-and-appearance.htm): themes and CSS classes. - [Vue ScrollBar demos](https://www.jqwidgets.com/vue/vue-scrollbar/): live examples with their source code. --- ### Vue ScrollBar Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollbar/vue-scrollbar-styling-and-appearance.htm > Style the Vue ScrollBar: the jqxScrollBar CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxScrollBar. - jqx-widget - applied to jqxScrollBar. - jqx-scrollbar - applied to jqxScrollBar. - jqx-scrollbar-state-normal - applied to the scrollbar in default state. - jqx-scrollbar-button-state-normal - applied to the scrollbar buttons in default state. - jqx-scrollbar-button-state-hover - applied to the scrollbar buttons in hovered state. - jqx-fill-state-hover - applied to the scrollbar buttons and thumb in hovered state. - jqx-scrollbar-button-state-pressed - applied to the scrollbar buttons in pressed state. - jqx-fill-state-pressed - applied to the scrollbar buttons and thumb in pressed state. - jqx-scrollbar-thumb-state-normal-horizontal - applied to the horizontal scrollbar thumb in default state. - jqx-scrollbar-thumb-state-hover-horizontal - applied to the horizontal scrollbar thumb in hovered state. - jqx-scrollbar-thumb-state-pressed-horizontal - applied to the horizontal scrollbar thumb in default state. - jqx-scrollbar-thumb-state-normal - applied to the vertical scrollbar thumb in default state. - jqx-scrollbar-thumb-state-hover - applied to the vertical scrollbar thumb in default state. - jqx-scrollbar-thumb-state-pressed - applied to the vertical scrollbar thumb in default state. - jqx-fill-state-disabled - applied to the scrollbar when it is disabled. When you create a custom style with colors and backgrounds for jqxScrollBar, you need to do the following: - Add the above CSS classes related to jqxScrollBar - After each CSS class, add your theme name. For example: jqx-scrollbar-summer - To apply your custom style to jqxScrollBar, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue ScrollBar API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollbar/vue-scrollbar-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxscrollbar.txt #### Properties - `disabled` (Type: Boolean, Default: false): Sets or gets whether the scrollbar is disabled. - `height` (Type: Number | String, Default: null): Sets or gets height of the scroll bar. - `largestep` (Type: Number, Default: 50): Sets or gets the scrollbar's largestep. The value is increased/decreased with this largestep when the user presses the left mouse button in the area between a scrollbar button and thumb. - `min` (Type: Number, Default: 0): Sets or gets the scrollbar's minimum value. - `max` (Type: Number, Default: 1000): Sets or gets the scrollbar's maximum value. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `step` (Type: Number, Default: 10): Sets or gets the scrollbar's step. The value is increased/decreased with this step when the user presses a scrollbar button. - `showButtons` (Type: Boolean, Default: true): Sets or gets whether the scrollbar displays the increase and decrease arrow buttons. - `thumbMinSize` (Type: Number, Default: 10): Specifies the scrollbar thumb's minimum size. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `vertical` (Type: Boolean, Default: false): Sets or gets the scrollbar's orientation. - `value` (Type: Number, Default: 0): Sets or gets the scrollbar's value. - `width` (Type: Number | String, Default: null): Sets or gets width of the scroll bar. #### Events - `valueChanged` (Type: Event): This event is triggered when the value is changed. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `isScrolling` (Arguments: None, Return Type: Boolean): Returns true, if the user is scrolling. Otherwise, returns false. - `setPosition` (Arguments: index, Return Type: None): Sets the thumb's position --- ### Getting started with the Vue ScrollView Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollview/vue-scrollview-getting-started.htm > Vue ScrollView getting started: install jQWidgets, add jqxScrollView to your app, see a complete example, handle its events and call its methods. The Vue ScrollView can be used for viewing content which is wider than the visible area outlined by the device's screen. This guide adds the Vue ScrollView (`jqxScrollView`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollview.vue` - **Demos:** [Vue ScrollView demos](https://www.jqwidgets.com/vue/vue-scrollview/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollview/vue-scrollview-api.htm) jqxScrollView in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxscrollview/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxScrollView from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollview.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `pageChanged`: This event is triggered when the current page is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Refreshes the widget. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ScrollView API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollview/vue-scrollview-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollview/vue-scrollview-styling-and-appearance.htm): themes and CSS classes. - [Vue ScrollView demos](https://www.jqwidgets.com/vue/vue-scrollview/): live examples with their source code. --- ### Vue ScrollView Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollview/vue-scrollview-styling-and-appearance.htm > Style the Vue ScrollView: the jqxScrollView CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of CSS files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxScrollView: - .jqx-scrollview - applying to the jqxScrollView widget. - .jqx-scrollview-button - applying to the navigation buttons. When you create a custom style with colors and backgrounds for jqxScrollView, you need to do the following: - Add the above CSS classes related to jqxScrollView - After each CSS class, add your theme name. For example: jqx-scrollview-summer - To apply your custom style to jqxScrollView, you need to set its 'theme' property(option) to point to your theme name string. - The sample below demonstrates how to set the 'Summer' theme to jqxScrollView. --- ### Vue ScrollView API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxscrollview/vue-scrollview-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxscrollview.txt #### Properties - `animationDuration` (Type: Number, Default: 30): Sets or gets the animationDuration property. Specifies the duration of the animation which starts when the current page is changed. - `bounceEnabled` (Type: Boolean, Default: true): Sets or gets whether the bounce effect is enabled when pages are changed. - `buttonsOffset` (Type: Array, Default: [0, 0]): Sets or gets the jqxScrollView's buttonsOffset property. This property sets the offset from the default location of the navigation buttons. - `currentPage` (Type: Number, Default: 0): Sets or gets the jqxScrollView's currentPage property. The currentPage specifies the displayed element. - `disabled` (Type: Boolean, Default: false): Sets or gets the jqxScrollView's disabled property. - `height` (Type: Number | String, Default: 320): Sets or gets the jqxScrollView's height. - `moveThreshold` (Type: Number, Default: 0.5): Sets or gets the jqxScrollView's moveThreshold property. The moveThreshold property specifies how much the user should drag the current element to navigate to next/previous element. - `showButtons` (Type: Boolean, Default: true): Sets or gets whether the navigation buttons are visible. - `slideShow` (Type: Boolean, Default: false): Indicates whether the slideShow mode is enabled. In this mode, pages are changed automatically in a time interval. - `slideDuration` (Type: Number, Default: 3000): Sets or gets the duration in milliseconds of a time interval. The current page is changed when the time interval is elapsed. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: 320): Sets or gets the jqxScrollView's width. #### Events - `pageChanged` (Type: Event): This event is triggered when the current page is changed. #### Methods - `back` (Arguments: None, Return Type: None): Navigates to the previous page. - `changePage` (Arguments: index, Return Type: None): Navigates to a page. - `forward` (Arguments: None, Return Type: None): Navigates to the next page. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. --- ### Getting started with the Vue Slider Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxslider/vue-slider-getting-started.htm > Vue Slider getting started: install jQWidgets, add jqxSlider to your app, see a complete example, handle its events and call its methods. The Vue Slider represents a flexible Slider that lets the user select from a range of values by moving a thumb along a track. This guide adds the Vue Slider (`jqxSlider`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue` - **Demos:** [Vue Slider demos](https://www.jqwidgets.com/vue/vue-slider/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxslider/vue-slider-api.htm) jqxSlider in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxslider/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value of the slider is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Slider API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxslider/vue-slider-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxslider/vue-slider-styling-and-appearance.htm): themes and CSS classes. - [Vue Slider demos](https://www.jqwidgets.com/vue/vue-slider/): live examples with their source code. --- ### Vue Slider Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxslider/vue-slider-styling-and-appearance.htm > Style the Vue Slider: the jqxSlider CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of CSS files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxSlider. - jqx-widget – applied to jqxSlider widget. - jqx-slider – applied to jqxSlider widget. - jqx-slider-tick – applied to the slider ticks which. - jqx-slider-tick-horizontal - applied to the ticks when the slider is in horizontal mode. - jqx-slider-tick-vertical - applied to the ticks when the slider is in vertical mode. - jqx-slider-tickscontainer – applied to the ticks container. - jqx-slider-slider – applied to the slider's thumb. - jqx-slider-slider-vertical - applied to the thumb when the slider is in vertical mode. - jqx-slider-slider-horizontal - applied to the thumb when the slider is in horizontal mode. - jqx-slider-track – applied to the slide track. - jqx-slider-track-horizontal - applied to the track when the slider is in horizontal mode. - jqx-slider-track-vertical - applied to the track when the slider is in vertical mode. - jqx-slider-rangebar – applied to the slider to indicate the selected value. In range slider mode is applied to the space between the slider thumbs to indicate the selected values. - jqx-fill-state-pressed – applied to the slider to indicate the selected value. In range slider mode is applied to the space between the slider thumbs to indicate the selected values. - jqx-fill-state-hover - applied to a slider element under the mouse cursor. - jqx-fill-state-focus - applied to the slider's elements when the widget is on focus. - jqx-fill-state-disabled - applied to the slider when it is disabled. When you create a custom style with colors and backgrounds for jqxSlider, you need to do the following: - Add the above CSS classes related to jqxSlider - After each CSS class, add your theme name. For example: jqx-slider-summer - To apply your custom style to jqxSlider, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Slider API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxslider/vue-slider-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxslider.txt #### Properties - `buttonsPosition` (Type: String, Default: both): Sets or gets scroll buttons position. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the slider is disabled. - `height` (Type: Number | String, Default: 35): Sets or gets the slider's height. - `layout` (Type: String, Default: "normal"): Sets or gets the slider's layout. - `mode` (Type: String, Default: default): Sets or gets slider's mode. - `minorTicksFrequency` (Type: Number, Default: 1): Sets or gets slider's minor ticks frequency. - `minorTickSize` (Type: Number, Default: 4): Sets or gets slider's minor ticks size. - `max` (Type: Number, Default: 10): Sets or gets slider's maximum value. - `min` (Type: Number, Default: 0): Sets or gets slider's minimum value. - `orientation` (Type: String, Default: 'horizontal') - `rangeSlider` (Type: Boolean, Default: false): Sets or gets whether the slider is displayed as a range slider and has 2 thumbs. This allows the user to select a range of values. By default, end-users can select only a single value. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `step` (Type: Number, Default: 1): Sets or gets the slider's step when the user is using the keyboard arrows, slider increment and decrement buttons or the mouse wheel for changing the slider's value. - `showTicks` (Type: Boolean, Default: true): Sets or gets whether ticks will be shown. - `showMinorTicks` (Type: Boolean, Default: false): Sets or gets whether minor ticks will be shown. - `showTickLabels` (Type: Boolean, Default: false): Sets or gets whether major tick labels will be shown. - `showButtons` (Type: Boolean, Default: true): Sets or gets whether the scroll buttons will be shown. - `showRange` (Type: Boolean, Default: true): Sets or gets whether the slider range background is displayed. This is the fill between the slider's left button and the slider's thumb to indicate the selected value. - `template` (Type: String, Default: 'default'): Determines the template as an alternative of the default styles. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `ticksPosition` (Type: String, Default: both): Sets or gets slider's ticks position. - `ticksFrequency` (Type: Number, Default: 2): Sets or gets slider's major ticks frequency. - `tickSize` (Type: Number, Default: 7): Sets or gets slider's major ticks size. - `tickLabelFormatFunction` (Type: Function, Default: null): Sets or gets the major ticks labels formatting function. - `tooltip` (Type: Boolean, Default: false): Sets or gets whether the slider tooltip will be shown. - `tooltipHideDelay` (Type: Number, Default: 500): Sets or gets the tooltip's hide delay. - `tooltipPosition` (Type: String, Default: "near"): Sets or gets the tooltip's position. Possible values: "near", "far" - `tooltipFormatFunction` (Type: Function, Default: null): Sets or gets the tooltip's tooltip formatting. - `value` (Type: Number, Default: 0): Sets or gets slider's value. This property will be an object with the following structure { rangeStart: range_start, rangeEnd: range_end } if the slider is range slider otherwise it's going to be a number. - `values` (Type: Array, Default: [0, 10]): Sets or gets range slider's values.The 'rangeSlider' property should be set to true. - `width` (Type: Number | String, Default: 300): Sets or gets the slider's width. #### Events - `change` (Type: Event): This event is triggered when the value of the slider is changed. - `slide` (Type: Event): This event is triggered when the user is dragging the sliders thumb. - `slideStart` (Type: Event): This event is triggered when the user start dragging slider's thumb. - `slideEnd` (Type: Event): This event is triggered when the user have dragged the slider's thumb and drop it. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `decrementValue` (Arguments: None, Return Type: None): Decreases the jqxSlider's value with the value of the 'step' property. - `disable` (Arguments: None, Return Type: None): Disabling the slider. - `enable` (Arguments: None, Return Type: None): Enables the slider. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `getValue` (Arguments: None, Return Type: Number): Gets the slider's value. The returned value is a number or an object. - `incrementValue` (Arguments: None, Return Type: None): Increases the jqxSlider's value with the value of the 'step' property. - `setValue` (Arguments: index, Return Type: None): Sets the jqxSlider's value. When the slider is not in range slider mode, the required parameter for the value is a number which should be in the 'min' - 'max' range. - `val` (Arguments: value, Return Type: String): Sets or gets the value. --- ### Getting started with the Vue Sortable Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsortable/vue-sortable-getting-started.htm > Vue Sortable getting started: install jQWidgets, add jqxSortable to your app, see a complete example, handle its events and call its methods. The Vue Sortable enables users to change the position of elements through drag and drop. This guide adds the Vue Sortable (`jqxSortable`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxsortable.vue` - **Demos:** [Vue Sortable demos](https://www.jqwidgets.com/vue/vue-sortable/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsortable/vue-sortable-api.htm) jqxSortable in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxsortable/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxSortable from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsortable.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the DOM position of an item is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Refresh the items. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Sortable API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsortable/vue-sortable-api.htm): every property, event and method, with examples. - [Vue Sortable demos](https://www.jqwidgets.com/vue/vue-sortable/): live examples with their source code. --- ### Vue Sortable API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsortable/vue-sortable-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxsortable.txt #### Properties - `appendTo` (Type: String, Default: 'parent'): Defines where the helper that moves with the mouse is being appended to during the drag (for example, to resolve overlap/zIndex issues). - `axis` (Type: String, Default: null): If defined, the items can be dragged only horizontally or vertically. - `cancel` (Type: String, Default: 'input,textarea,button,select,option'): Prevents sorting if you start on elements matching the selector. - `connectWith` (Type: String, Default: true): A selector of other sortable elements that the items from this list should be connected to. - `containment` (Type: String, Default: false): Defines a bounding box that the sortable items are constrained to while dragging. - `cursor` (Type: String, Default: 'auto'): Defines the cursor that is being shown while sorting. - `cursorAt` (Type: Object, Default: false): Moves the sorting element or helper so the cursor always appears to drag from the same position. Coordinates can be given as a hash using a combination of one or two keys: { top, left, right, bottom }. - `delay` (Type: Number, Default: 0): Time in milliseconds to define when the sorting should start. Adding a delay helps preventing unwanted drags when clicking on an element. - `disabled` (Type: Boolean, Default: false): Disables the widget if set to true. - `distance` (Type: Number, Default: 1): Tolerance, in pixels, for when sorting should start. If specified, sorting will not start until after mouse is dragged beyond distance. Can be used to allow for clicks on elements within a handle. - `dropOnEmpty` (Type: Boolean, Default: true): If false, items from this sortable can't be dropped on an empty connect sortable. - `forceHelperSize` (Type: Boolean, Default: false): If true, forces the helper to have a size. - `forcePlaceholderSize` (Type: Boolean, Default: false): Sets or gets the displaying of the popover's arrow. - `grid` (Type: Array, Default: [ 0, 0 ]): Snaps the sorting element or helper to a grid, every x and y pixels. - `handle` (Type: String, Default: false): Restricts sort start click to the specified element. - `helper` (Type: String, Default: 'original'): Allows for a helper element to be used for dragging display. - `items` (Type: String, Default: '> *'): Specifies which items inside the element should be sortable. - `opacity` (Type: Number, Default: false): Defines the opacity of the helper while sorting. From 0.01 to 1. - `placeholderShow` (Type: String, Default: "original"): A class name that gets applied to the otherwise white space. - `revert` (Type: Boolean, Default: false): Whether the sortable items should revert to their new positions using a smooth animation. - `scroll` (Type: Boolean, Default: true): If set to true, the page scrolls when coming to an edge. - `scrollSensitivity` (Type: Number, Default: 20): Defines how near the mouse must be to an edge to start scrolling. - `scrollSpeed` (Type: Number, Default: 20): Allows for a helper element to be used for dragging display. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `tolerance` (Type: String, Default: 'intersect'): Specifies which mode to use for testing whether the item being moved is hovering over another item. - `zIndex` (Type: Number, Default: 1000): Allows for a helper element to be used for dragging display. #### Events - `activate` (Type: Event): This event is triggered on drag start when are used connected lists. - `beforeStop` (Type: Event): This event is triggered when sorting stops, but when the placeholder/helper is still available. - `change` (Type: Event): This event is triggered when the DOM position of an item is changed. - `deactivate` (Type: Event): This event is triggered when sorting was stopped, is propagated to all possible connected lists. - `out` (Type: Event): This event is triggered when a sortable item is moved away from a sortable list. - `over` (Type: Event): This event is triggered when a sortable item is moved into a sortable list. - `receive` (Type: Event): This event is triggered when an item from a connected sortable list has been dropped into another list. - `remove` (Type: Event): This event is triggered when a sortable item from the list has been dropped into another. - `sort` (Type: Event): This event is triggered during sorting. - `start` (Type: Event): This event is triggered when sorting starts. - `stop` (Type: Event): This event is triggered when sorting has stopped. - `update` (Type: Event): This event is triggered when the user stopped sorting and the DOM position has changed. #### Methods - `cancel` (Arguments: None, Return Type: None): Cancels a change in the current sortable and reverts it to the state prior to when the current sort was started. - `cancelMethod` (Arguments: None, Return Type: None): Cancels a change in the current sortable and reverts it to the state prior to when the current sort was started. - `destroy` (Arguments: None, Return Type: None): Removes the sortable functionality. - `disable` (Arguments: None, Return Type: None): Disables the widget. - `enable` (Arguments: None, Return Type: None): Enable the widget. - `refresh` (Arguments: None, Return Type: None): Refresh the items. - `refreshPositions` (Arguments: None, Return Type: None): Refresh the cached positions of the sortable items. - `serialize` (Arguments: object, Return Type: String): Serializes the jqxSortable item ids into a form/ajax submittable string. Calling this method produces a hash that can be appended to any url to easily submit a new item order back to the server. - `toArray` (Arguments: None, Return Type: Array): Serializes the jqxSortable item ids into an array of strings. --- ### Getting started with the Vue Splitter Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsplitter/vue-splitter-getting-started.htm > Vue Splitter getting started: install jQWidgets, add jqxSplitter to your app, see a complete example, handle its events and call its methods. The Vue Splitter splits a container into resizable, collapsible panels, side by side or one above the other. This guide adds the Vue Splitter (`jqxSplitter`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue` - **Demos:** [Vue Splitter demos](https://www.jqwidgets.com/vue/vue-splitter/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsplitter/vue-splitter-api.htm) jqxSplitter in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxsplitter/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `collapsed`: This event is triggered when a panel is collapsed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `expand`: Expands a panel. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Splitter API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsplitter/vue-splitter-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsplitter/vue-splitter-styling-and-appearance.htm): themes and CSS classes. - [Vue Splitter demos](https://www.jqwidgets.com/vue/vue-splitter/): live examples with their source code. --- ### Vue Splitter Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsplitter/vue-splitter-styling-and-appearance.htm > Style the Vue Splitter: the jqxSplitter CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of CSS files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxSlider. - jqx-widget - applied to the Splitter widget. - jqx-splitter-splitbar-horizontal – split bar's class when the jqxSplitter is with horizontal orientation. - jqx-splitter-splitbar-vertical – split bar's class when the jqxSplitter is with vertical orientation. - jqx-fill-state-normal - applied to the split bar. - jqx-fill-state-hover - applied to the split bar when it is hovered. - jqx-splitter-invalid – This class is applied to the splitter when it's dragged to it's max left/right boundary. - jqx-splitter-collapse-button-vertical – This class is added to split bar's collapse button when the splitter is with vertical orientation. - jqx-splitter-collapse-button-horizontal – This class is added to split bar's collapse button when the splitter is with horizontal orientation. - jqx-fill-state-pressed - applied to the collapse button. Adds border and background. - jqx-splitter-panel – applied to the jqxSplitter's panels. - jqx-widget-content - applied to the jqxSplitter's panels. - jqx-fill-state-disabled - applied to the splitter when it is disabled. When you create a custom style with colors and backgrounds for jqxSplitter, you need to do the following: - Add the above CSS classes related to jqxSplitter - After each CSS class, add your theme name. For example: jqx-splitter-summer - To apply your custom style to jqxSplitter, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Splitter API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxsplitter/vue-splitter-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxsplitter.txt #### Properties - `disabled` (Type: Boolean, Default: false): Sets or gets the disabled property. - `height` (Type: Number | String, Default: 300): Sets or gets the jqxSplitter's height. - `orientation` (Type: String, Default: 'vertical'): Sets or gets the orientation property. - `panels` (Type: Array, Default: []): Sets or gets the panels property. - `resizable` (Type: Boolean, Default: true): Sets or gets the resizable property. When this property is set to false, the user will not be able to move the split bar. - `splitBarSize` (Type: Number, Default: 5): Sets or gets the size of the split bar. - `showSplitBar` (Type: Boolean, Default: true): Sets or gets whether the split bar is displayed. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: 300): Sets or gets the jqxSplitter's width. #### Events - `collapsed` (Type: Event): This event is triggered when a panel is collapsed. - `expanded` (Type: Event): This event is triggered when a panel is expanded. - `resize` (Type: Event): This event is triggered when the 'resize' operation has ended. - `resizeStart` (Type: Event): This event is triggered when the 'resizeStart' operation has started. #### Methods - `collapse` (Arguments: None, Return Type: None): Collapse a panel. - `destroy` (Arguments: None, Return Type: None): Destroys the jqxSplitter. This method will remove the jqxSplitter from the DOM and will remove all internal event handlers and styles. - `disable` (Arguments: None, Return Type: None): Disables the jqxSplitter. - `enable` (Arguments: None, Return Type: None): Enables the jqxSplitter. - `expand` (Arguments: None, Return Type: None): Expands a panel. - `render` (Arguments: None, Return Type: None): Renders the jqxSplitter. - `refresh` (Arguments: None, Return Type: None): Refreshes the jqxSplitter. This method will perform a layout and will arrange the split panels. --- ### Getting started with the Vue SwitchButton Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxswitchbutton/vue-switchbutton-getting-started.htm > Vue SwitchButton getting started: install jQWidgets, add jqxSwitchButton to your app, see a complete example, handle its events and call its methods. The Vue SwitchButton toggles between an on and an off state with a sliding switch. This guide adds the Vue SwitchButton (`jqxSwitchButton`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxswitchbutton.vue` - **Demos:** [Vue SwitchButton demos](https://www.jqwidgets.com/vue/vue-buttons/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxswitchbutton/vue-switchbutton-api.htm) #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxSwitchButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxswitchbutton.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the switch button's state changes from one state to another. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [SwitchButton API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxswitchbutton/vue-switchbutton-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxswitchbutton/vue-switchbutton-styling-and-appearance.htm): themes and CSS classes. - [Vue SwitchButton demos](https://www.jqwidgets.com/vue/vue-buttons/): live examples with their source code. --- ### Vue SwitchButton Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxswitchbutton/vue-switchbutton-styling-and-appearance.htm > Style the Vue SwitchButton: the jqxSwitchButton CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxButtons. - jqxButton, jqxRepeatButton, jqxLinkButton and jqxToggleButton Style - jqx-button - applied to jqxButton's outer div element. - jqx-link - applied to the jqxLinkButton's anchor element. - jqx-fill-state-normal - applied to button when it's state is default/normal. - jqx-fill-state-hover - applied to button when it's state is hovered i.e the mouse cursor is over the button. - jqx-fill-state-pressed - applied to button when it's state is pressed i.e the mouse button is down. - jqx-fill-state-disabled - applied to button it is disabled. When you create a custom style with colors and backgrounds for jqxButton, jqxRepeatButton, jqxLinkButton and jqxToggleButton, you need to do the following: - Add the above CSS classes related to jqxButtons - After each CSS class, add your theme name. For example: jqx-button-energyblue - To apply your custom style to jqxButtons, you need to set its 'theme' property(option) to point to your theme name string. - The sample below demonstrates how to set the 'Energy Blue' theme to jqxButtons. --- ### Vue SwitchButton API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxswitchbutton/vue-switchbutton-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxswitchbutton.txt #### Properties - `checked` (Type: Boolean, Default: false): Sets or gets the check state. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the switch button is disabled. - `height` (Type: Number | String, Default: null): Sets or gets the height. - `orientation` (Type: String, Default: 'horizontal'): Determines the jqxSwitchButton's orientation. - `onLabel` (Type: String, Default: 'On'): Sets or gets the string displayed when the button is checked. - `offLabel` (Type: String, Default: 'Off'): Sets or gets the string displayed when the button is unchecked. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `thumbSize` (Type: String, Default: '40%'): Sets or gets the size of the thumb in percentages. - `rtl` (Type: Boolean, Default: false) - `width` (Type: Number | String, Default: null): Sets or gets the width. #### Events - `checked` (Type: Event): This event is triggered when the switch button is checked. - `change` (Type: Event): This event is triggered when the switch button's state changes from one state to another. - `unchecked` (Type: Event): This event is triggered when the switch button is unchecked. #### Methods - `check` (Arguments: None, Return Type: None): Checks the button. - `disable` (Arguments: None, Return Type: None): Disables the switch button. - `enable` (Arguments: None, Return Type: None): Enables the switch button. - `toggle` (Arguments: None, Return Type: None): Toggles the check state. This method is automatically called when the user clicks the switch button. - `uncheck` (Arguments: None, Return Type: None): Unchecks the button. - `val` (Arguments: value, Return Type: Boolean): Sets or gets the value. --- ### Getting started with the Vue Tabs Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtabs/vue-tabs-getting-started.htm > Vue Tabs getting started: install jQWidgets, add jqxTabs to your app, see a complete example, handle its events and call its methods. The Vue Tabs splits content into tabbed sections, with scrolling, closable and reorderable tabs. This guide adds the Vue Tabs (`jqxTabs`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxtabs.vue` - **Demos:** [Vue Tabs demos](https://www.jqwidgets.com/vue/vue-tabs/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtabs/vue-tabs-api.htm) jqxTabs in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtabs/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxTabs from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtabs.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `add`: This event is triggered when a new tab is added to the jqxTabs. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the selected tab. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Tabs API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtabs/vue-tabs-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtabs/vue-tabs-styling-and-appearance.htm): themes and CSS classes. - [Vue Tabs demos](https://www.jqwidgets.com/vue/vue-tabs/): live examples with their source code. --- ### Vue Tabs Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtabs/vue-tabs-styling-and-appearance.htm > Style the Vue Tabs: the jqxTabs CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxTabs. - jqxTabs Style - jqx-widget - applied to jqxTabs. - jqx-tabs - applied to jqxTabs. - jqx-tabs-close-button - applied to the tab close button. - jqx-tabs-close-button-selected - applied to the tab close button when the tab is selected. - jqx-tabs-close-button-hover - applied to the tab close button when the mouse is over the tab. - jqx-tabs-arrow-left - applied to the tab's left scroll arrow. - jqx-tabs-arrow-right - applied to the tab's right scroll arrow. - jqx-tabs-arrow-background - applied to the tab's scroll arrows. - jqx-tabs-title - applied to the tab's title. - jqx-tabs-title-bottom - applied to the tab's title when the 'position' is 'bottom'. - jqx-tabs-title a:link - applied to the anchor in tab's title. - jqx-tabs-title a:hover - jqx-tabs-title a:active - jqx-tabs-title a:visited - jqx-tabs-title-selected-top - applied to the tab's title when the tab is selected and the jqxTab's position property is set to 'top' - jqx-tabs-title-selected-bottom - applied to the tab's title when the tab is selected and the jqxTab's position property is set to 'bottom' - jqx-fill-state-pressed - applied to a selected tab. - jqx-tabs-title-hover-top - applied to the tab's title when the tab is hovered and the jqxTab's position property is set to 'top' - jqx-tabs-title-hover-bottom - applied to the tab's title when the tab is hovered and the jqxTab's position property is set to 'bottom' - jqx-fill-state-hover - applied to a hovered tab. - jqx-tabs-title-disable - applied to the tab's title when the tab is disabled - jqx-tabs-header - applied to the tab's header - jqx-widget-header - applied to the tab's header - jqx-tabs-header-bottom - applied to the tab's header when the position is bottom - jqx-tabs-header-collapsed - applied to the tab's header when the tab is collapsed - jqx-tabs-header-collapsed-bottom - applied to the tab's header when the position is bottom and tab is collapsed - jqx-tabs-collapsed - applied to the tabs when the 'collapsed' is true. - jqx-tabs-collapsed-bottom - applied to the tabs when the 'collapsed' is true and 'position' is bottom. - jqx-tabs-selection-tracker-container - applied to the tab's selection tracker container element. - jqx-tabs-selection-tracker-top - applied to the tab's selection tracker when the jqxTab's position property is set to 'top'. - jqx-tabs-selection-tracker-bottom - applied to the tab's selection tracker when the jqxTab's position property is set to 'bottom'. - jqx-tabs-content - applied to the tab's content element which represents a DIV element. - jqx-widget-content - applied to the tab's content element which represents a DIV element. - jqx-fill-state-disabled - applied to the jqxTabs when it is disabled. When you create a custom style with colors and backgrounds for jqxtabs, you need to do the following: - Add the above CSS classes related to jqxtabs - After each CSS class, add your theme name. For example: jqx-tabs-summer - To apply your custom style to jqxtabs, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Tabs API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtabs/vue-tabs-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtabs.txt #### Properties - `animationType` (Type: String, Default: none): Sets or gets the animation type of switching tabs. - `autoHeight` (Type: Boolean, Default: true): Sets or gets whether the jqxTabs header's height will be equal to the item with max height. - `closeButtonSize` (Type: Number, Default: 16): Sets or gets the close button size. - `collapsible` (Type: Boolean, Default: false): Enables or disables the collapsible feature. - `contentTransitionDuration` (Type: Number, Default: 450): Sets or gets the duration of the content's fade animation which occurs when the user selects a tab. This setting has effect when the 'animationType' is set to 'fade'. - `disabled` (Type: Boolean, Default: false): Enables or disables the jqxTabs widget. - `enabledHover` (Type: Boolean, Default: true): Enables or disables the tabs hover effect. - `enableScrollAnimation` (Type: Boolean, Default: true): Sets or gets whether the scroll animation is enabled. - `enableDropAnimation` (Type: Boolean, Default: false): Sets or gets whether the drop animation is enabled. - `height` (Type: Number | String, Default: auto): Sets or gets widget's height. - `initTabContent` (Type: Function, Default: null): Callback function that the tab calls when a content panel needs to be initialized. - `keyboardNavigation` (Type: Boolean, Default: true): Enables or disables the keyboard navigation. - `next` (Type: Object, Default: null) - `previous` (Type: Object, Default: null) - `position` (Type: String, Default: top): Sets or gets whether the tabs are positioned at 'top' or 'bottom. - `reorder` (Type: Boolean, Default: false): Enables or disables the reorder feature. When this feature is enabled, the end-user can drag a tab and drop it over another tab. As a result the tabs will be reordered. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `scrollAnimationDuration` (Type: Number, Default: 250): Sets or gets the duration of the scroll animation. - `selectedItem` (Type: Number, Default: 0): Sets or gets selected tab. - `selectionTracker` (Type: Boolean, Default: false): Sets or gets whether the selection tracker is enabled. - `scrollable` (Type: Boolean, Default: true): Sets or gets whether the scrolling is enabled. - `scrollPosition` (Type: String, Default: 'right'): Sets or gets the position of the scroll arrows. - `scrollStep` (Type: Number, Default: 70): Sets or gets the scrolling step. - `showCloseButtons` (Type: Boolean, Default: false): Sets or gets whether a close button is displayed in each tab. - `toggleMode` (Type: String, Default: click): Sets or gets user interaction used for switching the different tabs. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: auto): Sets or gets widget's width. #### Events - `add` (Type: Event): This event is triggered when a new tab is added to the jqxTabs. - `collapsed` (Type: Event): This event is triggered when any tab is collapsed. - `dragStart` (Type: Event): This event is triggered when the drag operation started. - `dragEnd` (Type: Event): This event is triggered when the drag operation ended. - `expanded` (Type: Event): This event is triggered when any tab is expanded. - `removed` (Type: Event): This event is triggered when a tab is removed. - `selecting` (Type: Event): This event is triggered when the user selects a tab. This event is cancelable. You can cancel the selection by setting the 'event.cancel = true' in the event callback. - `selected` (Type: Event): This event is triggered when the user selects a new tab. - `tabclick` (Type: Event): This event is triggered when the user click a tab. You can retrieve the clicked tab's index. - `unselecting` (Type: Event): This event is triggered when the user selects a tab. The last selected tab is going to become unselected. This event is cancelable. You can cancel the selection by setting the 'event.cancel = true' in the event callback. - `unselected` (Type: Event): This event is triggered when the user selects a tab. The last selected tab becomes unselected. #### Methods - `addAt` (Arguments: index, title, content, Return Type: None): Adding tab at indicated position. - `addFirst` (Arguments: htmlElement1, htmlElement2, Return Type: None): Adding tab at the beginning. - `addLast` (Arguments: htmlElement1, htmlElement2, Return Type: None): Adding tab at the end. - `collapse` (Arguments: None, Return Type: None): Collapsing the current selected tab. - `disable` (Arguments: None, Return Type: None): Disabling the widget. - `disableAt` (Arguments: index, Return Type: None): Disabling tab with indicated index. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `ensureVisible` (Arguments: index, Return Type: None): This method is ensuring the visibility of item with indicated index. If the item is currently not visible the method is scrolling to it. - `enableAt` (Arguments: index, Return Type: None): Enabling tab with indicated index. - `expand` (Arguments: None, Return Type: None): Expanding the current selected tab. - `enable` (Arguments: None, Return Type: None): Enabling the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `getTitleAt` (Arguments: index, Return Type: String): Gets the title of a Tab. The returned value is a "string". - `getContentAt` (Arguments: index, Return Type: Object): Gets the content of a Tab. The returned value is a HTML Element. - `getDisabledTabsCount` (Arguments: None, Return Type: Object): Method: getDisabledTabsCount - `hideCloseButtonAt` (Arguments: index, Return Type: None): Hiding a close button at a specific position. - `hideAllCloseButtons` (Arguments: None, Return Type: None): Hiding all close buttons. - `length` (Arguments: None, Return Type: Number): Returning the tabs count. - `removeAt` (Arguments: index, Return Type: None): Removing tab with indicated index. - `removeFirst` (Arguments: None, Return Type: None): Removing the first tab. - `removeLast` (Arguments: None, Return Type: None): Removing the last tab. - `select` (Arguments: index, Return Type: None): Selecting tab with indicated index. - `setContentAt` (Arguments: index, htmlElement, Return Type: None): Sets the content of a Tab. - `setTitleAt` (Arguments: index, htmlElement, Return Type: None): Sets the title of a Tab. - `showCloseButtonAt` (Arguments: index, Return Type: None): Showing close button at a specific position. - `showAllCloseButtons` (Arguments: None, Return Type: None): Showing all close buttons. - `val` (Arguments: value, Return Type: String): Sets or gets the selected tab. --- ### Getting started with the Vue TagCloud Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtagcloud/vue-tagcloud-getting-started.htm > Vue TagCloud getting started: install jQWidgets, add jqxTagCloud to your app, see a complete example, handle its events and call its methods. The Vue TagCloud displays a collection of user-generated tags accompanying the articles, posts, or videos on your website. This guide adds the Vue TagCloud (`jqxTagCloud`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue` - **Demos:** [Vue TagCloud demos](https://www.jqwidgets.com/vue/vue-tagcloud/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtagcloud/vue-tagcloud-api.htm) jqxTagCloud in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtagcloud/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `bindingComplete`: This event is triggered when the widget has completed binding to a dataAdapter. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `findTagIndex`: Returns the index of the first tag with the specified label (displayMember). ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [TagCloud API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtagcloud/vue-tagcloud-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtagcloud/vue-tagcloud-styling-and-appearance.htm): themes and CSS classes. - [Vue TagCloud demos](https://www.jqwidgets.com/vue/vue-tagcloud/): live examples with their source code. --- ### Vue TagCloud Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtagcloud/vue-tagcloud-styling-and-appearance.htm > Style the Vue TagCloud: the jqxTagCloud CSS classes, the theme stylesheets it uses and how to change its appearance. The jqxTagCloud allows for a number of different options to style the elements of the cloud. In order to fit various needs we have provided options to: - Set the **min** and **max fontSize** depending on the value(weight) of the element. - Set the tag **text color** for all elements using textColor. Here is an example of tags with mountain Peaks with their fontsize scaled by their height and text color set to brown. #### jqxTagCloud CSS class styles jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxTagCloud. - jqx-widget - applied to jqxTagCloud widget. - jqx-tag-cloud - applied to jqxTagCloud's ul element. - jqx-tag-cloud-item - applied to the jqxTagCloud li element. - You can use these classes to style your own widget. The sample below demonstrates how you can use the above mentioned classes to style it as a list of tags. #### jqxTagCloud Theme support Should you need to have **separate themes** for the jqxTagCloud, you can use the following method: - Add the above CSS classes related to jqxTagCloud - After each CSS class, add your theme name. For example: jqx-jqxTagCloud-shinyblack - To apply your custom style to jqxTagCloud, you need to set its **theme** property(option) to point to your theme name string. - The sample below demonstrates how to set the 'Shiny Black' theme to jqxTagCloud. --- ### Vue TagCloud API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtagcloud/vue-tagcloud-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtagcloud.txt #### Properties - `alterTextCase` (Type: String, Default: 'none'): Sets or gets the alterTextCase property used to specify the field by which tags should be sorted. Possible values are 'none', 'allLower', 'allUpper', 'firstUpper', 'titleCase' - `disabled` (Type: Boolean, Default: false): Enables or disables the ability to follow tag links in jqxTagCloud. - `displayLimit` (Type: Number, Default: null): Sets or gets the displayLimit property used to filter highest values tags up to the number specified. - `displayMember` (Type: String, Default: 'label'): Sets or gets the field name used for the tag label. - `displayValue` (Type: Boolean, Default: false): Sets or gets the displayValue property used to specify whether to add the tag value field after the text. - `fontSizeUnit` (Type: String, Default: 'px'): Sets or gets the fontSizeUnit property used to set the font size unit possible values 'px', 'em', '%' - `height` (Type: Number | String, Default: null): Sets or gets the jqxTagCloud's height. - `maxColor` (Type: String, Default: null): Sets or gets the maxColor property used to specify color of the tags for the elements with highest value attribute. - `maxFontSize` (Type: Number, Default: 24): Sets or gets the maxFontSize property used to set the font size of the tags with the highest value attribute. - `maxValueToDisplay` (Type: Number, Default: 0): Sets or gets the maxValueToDisplay property used to filter tags with value higher than the specified. - `minColor` (Type: String, Default: null): Sets or gets the minColor property used to specify color of the tags for the elements with lowest value attribute. - `minFontSize` (Type: Number, Default: 10): Sets or gets the minFontSize property used to set the font size of the tags with the lowest value attribute. - `minValueToDisplay` (Type: Number, Default: 0): Sets or gets the minValueToDisplay property used to filter tags with value lower than the specified. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `sortBy` (Type: String, Default: 'none'): Sets or gets the sortBy property used to specify the field by which tags should be sorted. Possible values are 'none', 'label', 'value' - `sortOrder` (Type: String, Default: 'ascending'): Sets or gets the sortOrder property used to specify the direction in which tags should be sorted. Possible values are 'ascending', 'descending' - `source` (Type: Object, Default: {}) - `tagRenderer` (Type: Function, Default: null): A callback function used for custom tags rendering. - `takeTopWeightedItems` (Type: Boolean, Default: false): Sets or gets the takeTopWeightedItems property. Property indicates if **displayLimit** will prioritize highest value members - `textColor` (Type: String, Default: null): Sets or gets the textColor property used to specify color of the tags in the case where the minColor and maxColor properties are not set. Possible values: all browser supported colors including rgba. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `urlBase` (Type: String, Default: ''): Sets or gets the field name used for common base URL path for all tags. - `urlMember` (Type: String, Default: 'url'): Sets or gets the field name used by the anchor element. - `valueMember` (Type: String, Default: 'value'): Sets or gets the field name used for value/weight. - `width` (Type: Number | String, Default: null): Sets or gets the jqxTagCloud's width. #### Events - `bindingComplete` (Type: Event): This event is triggered when the widget has completed binding to a dataAdapter. - `itemClick` (Type: Event): This event is triggered when a tag element is clicked. Event Arguments: #### Methods - `destroy` (Arguments: None, Return Type: None): Calls the widget's destroy function. - `findTagIndex` (Arguments: tag, Return Type: Number): Returns the index of the first tag with the specified label (displayMember). - `getHiddenTagsList` (Arguments: None, Return Type: Array): Returns an array with indices of all hidden tags. - `getRenderedTags` (Arguments: None, Return Type: Array): Returns an array with a copy of all tags that have been rendered in the order that they have been rendered. This array excludes filtered values. But includes hidden ones. - `getTagsList` (Arguments: None, Return Type: Array): Returns an array with a copy of all tags. This list is used before any filtering/sorting/hiding is done. - `hideItem` (Arguments: index, Return Type: None): Hides an element with specified index. - `insertAt` (Arguments: index, item, Return Type: None): Inserts an element before an element with specified index - `removeAt` (Arguments: index, Return Type: None): Deletes an element with specified index. - `updateAt` (Arguments: index, item, Return Type: None): Updates an element with specified index. - `showItem` (Arguments: index, Return Type: None): Reveals a hidden element with specified index. --- ### Getting started with the Vue TextArea Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtextarea/vue-textarea-getting-started.htm > Vue TextArea getting started: install jQWidgets, add jqxTextArea to your app, see a complete example, handle its events and call its methods. The Vue TextArea is a multi-line text input with auto-complete and a styled scrollbar. This guide adds the Vue TextArea (`jqxTextArea`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue` - **Demos:** [Vue TextArea demos](https://www.jqwidgets.com/vue/vue-textarea/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtextarea/vue-textarea-api.htm) jqxTextArea in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtextarea/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `change`: This event is triggered when the value is changed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the value. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [TextArea API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtextarea/vue-textarea-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtextarea/vue-textarea-styling-and-appearance.htm): themes and CSS classes. - [Vue TextArea demos](https://www.jqwidgets.com/vue/vue-textarea/): live examples with their source code. --- ### Vue TextArea Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtextarea/vue-textarea-styling-and-appearance.htm > Style the Vue TextArea: the jqxTextArea CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxTextArea. - jqx-text-area - applied to the widget. - jqx-panel - applied to the widget. - jqx-widget - applied to the widget and its pop-up. - jqx-widget-content - applied to the widget, its inner textarea and the pop-up. - jqx-rc-all - applied to the widget, its pop-up and the pop-up items if the property **roundedCorners** is set to *true*. Adds rounded corners to the widget. - jqx-text-area-element - applied to the widget's inner textarea. - jqx-text-area-element-rtl - applied to the widget's inner textarea if the property **rtl** is set to *true*. - jqx-fill-state-disabled - applied to the widget when it is disabled. - jqx-fill-state-focus - applied to the widget's inner textarea when it is focused. - jqx-fill-state-pressed - applied to the selected item in the widget's pop-up. - jqx-popup - applied to the widget's pop-up. - jqx-input-popup - applied to the widget's pop-up. - jqx-menu - applied to the widget's pop-up. - jqx-menu-vertical - applied to the widget's pop-up. - jqx-menu-dropdown - applied to the widget's pop-up. - jqx-menu-item - applied to the widget's pop-up items. - jqx-item - applied to the widget's pop-up items. When you create a custom style with colors and backgrounds for jqxTextArea, you need to do the following: - Add the above CSS classes related to jqxTextArea - After each CSS class, add your theme name. For example: jqx-textarea-summer - To apply your custom style to jqxTextArea, you need to set its 'theme' property (option) to point to your theme name string. --- ### Vue TextArea API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtextarea/vue-textarea-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtextarea.txt #### Properties - `disabled` (Type: Boolean, Default: false): Enables or disables the jqxTextArea. - `displayMember` (Type: String, Default: ''): Sets or gets the displayMember of the Items. The displayMember specifies the name of an object property to display. The name is contained in the collection specified by the 'source' property. - `dropDownWidth` (Type: Number, Default: null): Sets or gets the jqxTextArea's dropdown (pop-up) width. - `height` (Type: Number | String, Default: null): Sets or gets the jqxTextArea's height. - `items` (Type: Number, Default: 8): Sets or gets the maximum number of items to display in the popup menu. - `maxLength` (Type: Number, Default: null): Sets or gets the maximum character length of the textarea. - `minLength` (Type: Number, Default: 1): Sets or gets the minimum character length needed before triggering auto-complete suggestions. - `opened` (Type: Boolean, Default: false): Gets a value indicating whether the auto-suggest popup is opened. - `placeHolder` (Type: String, Default: ''): Sets or gets the textarea's placeholder. - `popupZIndex` (Type: Number, Default: 20000): Sets or gets the auto-suggest popup's z-index. - `query` (Type: String, Default: ''): Determines the textarea's query. - `renderer` (Type: Function, Default: null): Enables you to update the textarea's value, after a selection from the auto-complete popup. - `roundedCorners` (Type: Boolean, Default: true): Enables or disables the rounded corners functionality. This property setting has effect in browsers which support CSS border-radius. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `scrollBarSize` (Type: Number, Default: 15): Sets or gets the size of the scrollbar. - `searchMode` (Type: String, Default: 'default'): Sets or gets the search mode. When the user types into the textarea, the widget tries to find the searched item using the entered text and the selected search mode. - `source` (Type: Array | Function | Object, Default: []): Sets the widget's data source. The 'source' function is passed two arguments, the textarea's value and a callback function. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `valueMember` (Type: String, Default: ''): Sets or gets the valueMember of the Items. The valueMember specifies the name of an object property to set as a 'value' of the list items. The name is contained in the collection specified by the 'source' property. - `width` (Type: Number | String, Default: null): Sets or gets the jqxTextArea's width. #### Events - `change` (Type: Event): This event is triggered when the value is changed. - `close` (Type: Event): This event is triggered when the auto-suggest popup is closed. - `open` (Type: Event): This event is triggered when the auto-suggest popup is opened. - `select` (Type: Event): This event is triggered when an item is selected from the auto-suggest popup. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. - `render` (Arguments: None, Return Type: None): Renders the widget. - `selectAll` (Arguments: None, Return Type: None): Selects the text in the textarea. - `val` (Arguments: value, Return Type: String): Sets or gets the value. --- ### Getting started with the Vue ToolBar Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtoolbar/vue-toolbar-getting-started.htm > Vue ToolBar getting started: install jQWidgets, add jqxToolBar to your app, see a complete example, handle its events and call its methods. The Vue ToolBar displays a bar with tools such as buttons, drop-downs and others. This guide adds the Vue ToolBar (`jqxToolBar`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxtoolbar.vue` - **Demos:** [Vue ToolBar demos](https://www.jqwidgets.com/vue/vue-toolbar/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtoolbar/vue-toolbar-api.htm) jqxToolBar in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtoolbar/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtoolbar.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `open`: This event is triggered when the minimize pop-up menu is opened. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Refreshes the widget. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [ToolBar API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtoolbar/vue-toolbar-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtoolbar/vue-toolbar-styling-and-appearance.htm): themes and CSS classes. - [Vue ToolBar demos](https://www.jqwidgets.com/vue/vue-toolbar/): live examples with their source code. --- ### Vue ToolBar Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtoolbar/vue-toolbar-styling-and-appearance.htm > Style the Vue ToolBar: the jqxToolBar CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxToolBar. - jqx-toolbar - applied to the jqxToolBar widget. - jqx-widget - applied to the jqxToolBar widget. - jqx-fill-state-normal - applied to the jqxToolBar widget and its minimize pop-up menu. - jqx-rc-all - applied to the jqxToolBar widget. - jqx-fill-state-disabled - applied to the jqxToolBar widget when it is disabled. - jqx-toolbar-tool - applied to tools in the jqxToolBar. - jqx-toolbar-tool-minimized - applied to minimized tools in the jqxToolBar. - jqx-toolbar-tool-rtl - applied to tools in the jqxToolBar when the property **rtl** is set to *true*. - jqx-toolbar-minimized-button - applied to the jqxToolBar minimize button. - jqx-menu-minimized-button - applied to the jqxToolBar minimize button. - jqx-toolbar-minimized-button-rtl - applied to the jqxToolBar minimize button when the property **rtl** is set to *true*. - jqx-toolbar-minimized-popup - applied to the jqxToolBar minimize pop-up menu. - jqx-toolbar-minimized-popup-separator - applied to horizontal separators in the jqxToolBar minimize pop-up menu. When you create a custom style with colors and backgrounds for jqxToolBar, you need to do the following: - Add the above CSS classes related to jqxToolBar - After each CSS class, add your theme name. For example: jqx-toolbar-summer - To apply your custom style to jqxToolBar, you need to set its 'theme' property(option) to point to your theme name string. The theme is automatically applied to all non-custom tools in jqxToolBar. --- ### Vue ToolBar API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtoolbar/vue-toolbar-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtoolbar.txt #### Properties - `disabled` (Type: Boolean, Default: false): Enables or disables the jqxToolBar and all its tools. - `height` (Type: Number | String, Default: 35): Sets or gets the jqxToolBar's height. - `initTools` (Type: Function, Default: null): A callback function where settings can be made to the tools specified in the `tools` property. The `initTools` callback function is called twice for each tool. - `minimizeWidth` (Type: Number, Default: 200): Sets or gets the width of the minimize pop-up menu. - `minWidth` (Type: Number, Default: null): Sets or gets the minimum width of the jqxToolBar. - `maxWidth` (Type: Number, Default: null): Sets or gets the maximum width of the jqxToolBar. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `tools` (Type: String, Default: ''): Sets or gets the types of tools in the jqxToolBar in the order they appear. The value of `tools` is a string representing a list of space-separated tool types. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: null): Sets or gets the jqxToolBar's width. #### Events - `close` (Type: Event): This event is triggered when the minimize pop-up menu is closed. - `open` (Type: Event): This event is triggered when the minimize pop-up menu is opened. #### Methods - `addTool` (Arguments: type, position, separator, menuToolIninitialization, Return Type: None): Adds a tool to the jqxToolBar. - `disableTool` (Arguments: index, disable, Return Type: None): Disables a tool. - `destroy` (Arguments: None, Return Type: None): Destroys the toolbar and all its tools. - `destroyTool` (Arguments: index, Return Type: None): Destroys a tool. - `getTools` (Arguments: None, Return Type: Array): Returns an array of all tools in the jqxToolBar. - `render` (Arguments: None, Return Type: None): Renders the widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the widget. --- ### Getting started with the Vue Tooltip Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtooltip/vue-tooltip-getting-started.htm > Vue Tooltip getting started: install jQWidgets, add jqxTooltip to your app, see a complete example, handle its events and call its methods. The Vue Tooltip enables users to display a popup message. This guide adds the Vue Tooltip (`jqxTooltip`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxtooltip.vue` - **Demos:** [Vue Tooltip demos](https://www.jqwidgets.com/vue/vue-tooltip/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtooltip/vue-tooltip-api.htm) jqxTooltip in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtooltip/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxTooltip from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtooltip.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `open`: This event is triggered when the tooltip is opened (shown). ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `open`: Opens the tooltip. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Tooltip API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtooltip/vue-tooltip-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtooltip/vue-tooltip-styling-and-appearance.htm): themes and CSS classes. - [Vue Tooltip demos](https://www.jqwidgets.com/vue/vue-tooltip/): live examples with their source code. --- ### Vue Tooltip Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtooltip/vue-tooltip-styling-and-appearance.htm > Style the Vue Tooltip: the jqxTooltip CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxTooltip. - jqx-widget - applied to the tooltip. - jqx-tooltip - applied to the tooltip. - jqx-fill-state-normal - applied to the tooltip. Adds border and background. - jqx-tooltip-main - applied to the tooltip body (sans arrow). - jqx-tooltip-text - applied to the tooltip content (text). - jqx-tooltip-arrow - applied to the tooltip arrow. - jqx-tooltip-arrow-t-b - applied to the tooltip arrow when it is shown at the top or bottom. In this class you can only edit the following css parameters to change the color of the tooltip arrow: `border-top-color` and `border-bottom-color`. - jqx-tooltip-arrow-l-r - applied to the tooltip arrow when it is shown at the left or right. In this class you can only edit the following css parameters to change the color of the tooltip arrow: `border-left-color` and `border-right-color`. When you create a custom style with colors and backgrounds for jqxTooltip, you need to do the following: - Add the above CSS classes related to jqxTooltip - After each CSS class, add your theme name. For example: jqx-tooltip-shinyblack - To apply your custom style to jqxTooltip, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Tooltip API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtooltip/vue-tooltip-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtooltip.txt #### Properties - `absolutePositionX` (Type: Number, Default: 0): Sets or gets the tooltip's horizontal position if the position property is set to 'absolute'. - `absolutePositionY` (Type: Number, Default: 0): Sets or gets the tooltip's vertical position if the position property is set to 'absolute'. - `autoHide` (Type: Boolean, Default: true): Sets or gets whether the tooltip will automatically hide after duration equal to the autoHideDelay property. - `autoHideDelay` (Type: Number, Default: 3000): Sets or gets the duration after which the tooltip automatically hides (works only if the autoHide property is set to true). - `animationShowDelay` (Type: Number, Default: 'fast'): Sets or gets the duration of the tooltip animation at show. - `animationHideDelay` (Type: Number, Default: 'fast'): Sets or gets the duration of the tooltip animation at hide. - `content` (Type: String, Default: ''): Sets or gets the content of jqxTooltip. It can be either plain text or HTML code. - `closeOnClick` (Type: Boolean, Default: true): Sets or gets whether the tooltip will close if it is clicked. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the tooltip is disabled. - `enableBrowserBoundsDetection` (Type: Boolean, Default: true): Sets or gets whether jqxTooltip will be hidden if it leaves the browser bounds or will be offset so that it is always within the browser's bounds and visible. - `height` (Type: Number | String, Default: 'auto'): Sets or gets the height of jqxTooltip. - `left` (Type: Number, Default: 0): Sets or gets the horizontal offset of jqxTooltip based on the position property. - `name` (Type: String, Default: ''): Sets or gets the name of the tooltip's group. Only one tooltip from a group can be shown at a time. By default, all tooltips are in a single group. - `opacity` (Type: Number, Default: 0.9): Sets or gets the tooltip's opacity.The value must be between 0 and 1. - `position` (Type: String, Default: 'default'): Sets or gets the position of jqxTooltip. - `rtl` (Type: Boolean, Default: false): Sets or gets whether the jqxTooltip's right-to-left support is enabled. - `showDelay` (Type: Number, Default: 100): Sets or gets the duration after which the tooltip will be shown. - `showArrow` (Type: Boolean, Default: true): Sets or gets whether the tooltip's arrow will be shown. - `top` (Type: Number, Default: 0): Sets or gets the vertical offset of jqxTooltip based on the position property. - `trigger` (Type: String, Default: 'hover'): Sets or gets the way of triggering the tooltip. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: 'auto'): Sets or gets the width of jqxTooltip. #### Events - `close` (Type: Event): This event is triggered when the tooltip is closed (hidden). - `closing` (Type: Event): This event is triggered when the tooltip is closing. - `open` (Type: Event): This event is triggered when the tooltip is opened (shown). - `opening` (Type: Event): This event is triggered when the tooltip is opening. #### Methods - `close` (Arguments: index, Return Type: None): Specifies a time before the tooltip closes. If it is not set, the tooltip closes immediately. - `destroy` (Arguments: None, Return Type: None): Destroys the tooltip by removing it from the DOM. - `open` (Arguments: left, top, Return Type: None): Opens the tooltip. - `refresh` (Arguments: None, Return Type: None): Refreshes the tooltip. --- ### Getting started with the Vue Tree Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtree/vue-tree-getting-started.htm > Vue Tree getting started: install jQWidgets, add jqxTree to your app, see a complete example, handle its events and call its methods. The Vue Tree shows a hierarchical collection of items, with check boxes, drag-and-drop and load-on-demand. This guide adds the Vue Tree (`jqxTree`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxtree.vue` - **Demos:** [Vue Tree demos](https://www.jqwidgets.com/vue/vue-tree/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtree/vue-tree-api.htm) jqxTree in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtree/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxTree from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtree.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `select`: This event is triggered when the user selects a tree item. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `val`: Sets or gets the selected item. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Tree API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtree/vue-tree-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtree/vue-tree-styling-and-appearance.htm): themes and CSS classes. - [Vue Tree demos](https://www.jqwidgets.com/vue/vue-tree/): live examples with their source code. --- ### Vue Tree Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtree/vue-tree-styling-and-appearance.htm > Style the Vue Tree: the jqxTree CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxTree. - jqxTree Style - jqx-widget - applied to the jqxTree widget. - jqx-tree - applied to the jqxTree widget. - jqx-tree-dropdown-root - applied to the jqxTree root UL element. - jqx-tree-dropdown - applied to the jqxTree UL elements. - jqx-tree-item-li - applied to the jqxTree LI elements. - jqx-tree-item-u-last - applied to the last LI elements in an UL element. - jqx-tree-item - applied to a tree item. - jqx-item - applied to a tree item. - jqx-tree-item a:link - applied to the anchor element of a tree item. - jqx-tree-item a:visited - applied to the anchor element of a tree item. - jqx-tree-item a:hover - applied to the anchor element of a tree item when the mouse cursor is over the anchor. - jqx-tree-item-hover - applied to a tree item when the mouse is over the item. - jqx-fill-state-hover - applied to a tree item when the mouse is over the item. - jqx-tree-item-selected - applied to a tree item when the item is selected. - jqx-fill-state-pressed - applied to a tree item when the item is selected. - jqx-tree-item-disabled - applied to a tree item when the item is disabled. - jqx-tree-item-arrow-collapse - applied to a tree item when it has sub items and is collapsed. Displays an arrow icon next to the item. - jqx-tree-item-arrow-expand - applied to a tree item when it has sub items and is expanded. Displays an arrow icon next to the item. - jqx-tree-item-arrow-expand-hover - applied to a tree item when it has sub items and is expanded and the mouse is over the arrow icon. - jqx-tree-item-arrow-collapse-hover - applied to a tree item when it has sub items and is collapsed and the mouse is over the arrow icon. - jqx-tree-disabled - applied to the tree when it is disabled - jqx-tree-disabled a:link - applied to the anchor elements in a tree when it is disabled. - jqx-tree-disabled a:visited - applied to the anchor elements in a tree when it is disabled and the anchor is visited. - jqx-tree-disabled a:hover - applied to the anchor elements in a tree when it is disabled and mouse is over the anchor. - jqx-fill-state-disabled - applied to the Tree widget when it is disabled and to a disabled tree item. When you create a custom style with colors and backgrounds for jqxTree, you need to do the following: - Add the above CSS classes related to jqxtree - After each CSS class, add your theme name. For example: jqx-tree-summer - To apply your custom style to jqxTree, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Tree API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtree/vue-tree-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtree.txt #### Properties - `animationShowDuration` (Type: Number, Default: 350): Sets or gets the duration of the show animation. - `animationHideDuration` (Type: Number, Default: fast): Sets or gets the duration of the hide animation. - `allowDrag` (Type: Boolean, Default: false): Enables the dragging of Tree Items. - `allowDrop` (Type: Boolean, Default: false): Enables the dropping of Tree Items. - `checkboxes` (Type: Boolean, Default: false): Sets or gets whether the tree should display a checkbox next to each item. In order to use this feature, you need to include the jqxcheckbox.js. - `dragStart` (Type: Function, Default: null): Callback function which is called when a drag operation starts. - `dragEnd` (Type: Function, Default: null): Callback function which is called when a drag operation ends. - `disabled` (Type: Boolean, Default: false): Gets or sets whether the tree is disabled. - `easing` (Type: String, Default: 'easeInOutCirc'): Sets or gets the animation's easing to one of the JQuery's supported easings. - `enableHover` (Type: Boolean, Default: true): Enables or disables the hover state. - `height` (Type: Number | String, Default: null): Sets or gets the tree's height. - `hasThreeStates` (Type: Boolean, Default: false): Sets or gets whether the tree checkboxes have three states - checked, unchecked and indeterminate. - `incrementalSearch` (Type: Boolean, Default: true): Determines whether the incremental search is enabled. The feature allows you to quickly find and select items by typing when the widget is on focus. - `keyboardNavigation` (Type: Boolean, Default: true): Enables or disables the key navigation. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `source` (Type: Array | Object, Default: null): Specifies the jqxTree's data source. Use this property to populate the jqxTree. - `toggleIndicatorSize` (Type: Number, Default: 16): Sets or gets the size of the expand/collapse arrows. - `toggleMode` (Type: String, Default: dblclick): Sets or gets user interaction used for expanding or collapsing any item. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `width` (Type: Number | String, Default: null): Sets or gets the tree's width. #### Events - `added` (Type: Event): This event is triggered when the user adds a new tree item. - `checkChange` (Type: Event): This event is triggered when the user checks, unchecks or the checkbox is in indeterminate state. - `collapse` (Type: Event): This event is triggered when the user collapses a tree item. - `dragStart` (Type: Event): This event is triggered when the user starts a drag operation. - `dragEnd` (Type: Event): This event is triggered when the user drops an item. - `expand` (Type: Event): This event is triggered when the user expands a tree item. - `itemClick` (Type: Event): This event is triggered when the user clicks a tree item. - `removed` (Type: Event): This event is triggered when the user removes a tree item. - `select` (Type: Event): This event is triggered when the user selects a tree item. #### Methods - `addBefore` (Arguments: item, id, Return Type: None): Adds an item as a sibling of another item. - `addAfter` (Arguments: item, id, Return Type: None): Adds an item as a sibling of another item. - `addTo` (Arguments: item, id, Return Type: None): Adds an item. - `clear` (Arguments: None, Return Type: None): Removes all elements. - `checkAll` (Arguments: None, Return Type: None): Checks all tree items. - `checkItem` (Arguments: item, checked, Return Type: None): Checks a tree item. - `collapseAll` (Arguments: None, Return Type: None): Collapses all items. - `collapseItem` (Arguments: item, Return Type: None): Collapses a tree item by passing an element as parameter. - `destroy` (Arguments: None, Return Type: None): Destroy the jqxTree widget. The destroy method removes the jqxTree widget from the web page. - `disableCheckbox` (Arguments: item, Return Type: None): Disables a tree item checkbox. - `disableItem` (Arguments: item, Return Type: None): Disables a tree item. - `ensureVisible` (Arguments: item, Return Type: None): Ensures the visibility of an element. - `enableCheckbox` (Arguments: item, Return Type: None): Enables a tree item checkbox. - `enableItem` (Arguments: item, Return Type: None): Enables a tree item. - `enableAll` (Arguments: None, Return Type: None): Enables all items. - `expandAll` (Arguments: None, Return Type: None): Expands all items. - `expandItem` (Arguments: item, Return Type: None): Expands a tree item by passing an element as parameter. - `focus` (Arguments: None, Return Type: None): Sets the focus to the widget. - `getCheckedItems` (Arguments: None, Return Type: Array): Gets an array with all checked tree items. - `getUncheckedItems` (Arguments: None, Return Type: Array): Gets an array with all unchecked tree items. - `getItems` (Arguments: None, Return Type: Array): Gets an array with all tree items. - `getItem` (Arguments: element, Return Type: Object): Gets the tree item associated to a LI tag passed as parameter. The returned value is an object. - `getSelectedItem` (Arguments: None, Return Type: Object): Gets the selected tree item. - `getPrevItem` (Arguments: item, Return Type: Object): Gets the item above another item. The returned value is an object. - `getNextItem` (Arguments: item, Return Type: Object): Gets the item below another item. The returned value is an object. - `hitTest` (Arguments: left, top, Return Type: Object): Gets an item at specific position. The method expects 2 parameters - left and top. The coordinates are relative to the document. - `removeItem` (Arguments: item, Return Type: None): Removes an item. - `render` (Arguments: None, Return Type: None): Renders the jqxTree widget. - `refresh` (Arguments: None, Return Type: None): Refreshes the jqxTree widget. The refresh method will update the jqxTree's layout and size. - `selectItem` (Arguments: item, Return Type: None): Selects an item. - `uncheckAll` (Arguments: None, Return Type: None): Unchecks all tree items. - `uncheckItem` (Arguments: item, Return Type: None): Unchecks a tree item. - `updateItem` (Arguments: item, newItem, Return Type: None): Updates an item. - `val` (Arguments: value, Return Type: String): Sets or gets the selected item. --- ### Getting started with the Vue TreeGrid Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreegrid/vue-treegrid-getting-started.htm > Vue TreeGrid getting started: install jQWidgets, add jqxTreeGrid to your app, see a complete example, handle its events and call its methods. The Vue TreeGrid represents data in a tree-like structure. This guide adds the Vue TreeGrid (`jqxTreeGrid`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxtreegrid.vue` - **Demos:** [Vue TreeGrid demos](https://www.jqwidgets.com/vue/vue-treegrid/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreegrid/vue-treegrid-api.htm) jqxTreeGrid in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxTreeGrid from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtreegrid.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `bindingComplete`: This event is triggered when the jqxTreeGrid binding is completed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `refresh`: Performs a layout and updates the HTML elements position and size. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [TreeGrid API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreegrid/vue-treegrid-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreegrid/vue-treegrid-styling-and-appearance.htm): themes and CSS classes. - [Vue TreeGrid demos](https://www.jqwidgets.com/vue/vue-treegrid/): live examples with their source code. --- ### Vue TreeGrid Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreegrid/vue-treegrid-styling-and-appearance.htm > Style the Vue TreeGrid: the jqxTreeGrid CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxTreeGrid. - jqx-widget - applied to the TreeGrid widget. - jqx-tree-grid-indent - applied to the TreeGrid indent elements. Adds horizontal spacing between the tree levels. - jqx-tree-grid-title - applied to the Tree column cells. - jqx-tree-grid-expand-button - applied to the expand button in the Tree column. - jqx-tree-grid-collapse-button - applied to the collapse button in the Tree column. - jqx-tree-grid-checkbox - applied to the TreeGrid checkboxes. - jqx-tree-grid-checkbox-tick - applied to the Tick element in the TreeGrid checkboxes. - jqx-tree-grid-icon - applied to the TreeGrid icon container elements. - jqx-tree-grid-icon-rtl - applied to the TreeGrid icon container elements in RTL mode. - jqx-tree-grid-icon-size - applied to the TreeGrid icon IMG elements. - jqx-grid - applied to TreeGrid container element. - jqx-grid-pager - applied to the TreeGrid Pager. - jqx-grid-header- applied to TreeGrid Columns container element. - jqx-grid-column-header - applied to a TreeGrid column. - jqx-widget-header - applied to a TreeGrid column, Toolbar, Statusbar and Groups Header. - jqx-widget-content - applied to the TreeGrid's content area. - jqx-grid-content - applied to the TreeGrid's content area. - jqx-grid-toolbar - applied to the toolbar. - jqx-grid-statusbar - applied to the statusbar. - jqx-cell - applied to the TreeGrid cells. - jqx-grid-cell - applied to the TreeGrid cells. - jqx-grid-cell-locked - applied to TreeGrid cells in a locked row. - jqx-grid-cell-sort - applied to the TreeGrid cells in the sort column. - jqx-grid-cell-filter - applied to the TreeGrid cells in the filter column. - jqx-grid-cell-alt - alternating cells style. This is applied to the cells in the alternating rows. - jqx-grid-cell-pinned - applied to the cells in a pinned column. - jqx-grid-cell-selected - applied to a selected cell. - jqx-fill-state-pressed - applied to a selected cell. - jqx-grid-cell-hover - applied to a hovered cell. - jqx-fill-state-hover - applied to a hovered cell. - jqx-grid-column-resizeline - applied to the column's resize line. - jqx-grid-column-resizestartline - applied to the column's resize start line. - jqx-fill-state-disabled - applied to the widget when it is disabled. - jqx-grid-group-drag-line - applied to the drop line indicators displayed in the grouping header. - jqx-grid-group-column-line - applied to the lines between the group columns. - jqx-right-align - applied to the content in cells depending on the column's `cellsAlign` value. Aligns the cell's content to the right. - jqx-left-align - applied to the content in cells depending on the column's `cellsAlign` value. Aligns the cell's content to the left. - jqx-center-align - applied to the content in cells depending on the column's `cellsAlign` value. Aligns the cell's content to the center. When you create a custom style with colors and backgrounds for jqxTreeGrid, you need to do the following: - Add the above CSS classes related to jqxTreeGrid - After each CSS class, add your theme name. For example: jqx-grid-energyblue - To apply your custom style to jqxTreeGrid, you need to set its 'theme' property(option) to point to your theme's name. --- ### Vue TreeGrid API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreegrid/vue-treegrid-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtreegrid.txt #### Properties - `altRows` (Type: Boolean, Default: false): Sets or gets whether the jqxTreeGrid automatically alternates row colors. - `autoRowHeight` (Type: Boolean, Default: true): Sets or gets whether the jqxTreeGrid automatically calculates the rows height and wraps the cell text. - `aggregatesHeight` (Type: Number, Default: 34): Sets or gets the height of the aggregates bar. Aggregates bar is displayed after setting `showAggregates` to true. - `autoShowLoadElement` (Type: Boolean, Default: true): Sets or gets whether the loading html element with animated gif is automatically displayed by the widget during the data binding process. - `checkboxes` (Type: Boolean, Default: false): Determines whether checkboxes are displayed or not. - `columnsHeight` (Type: Number, Default: 30): Sets or gets the height of the columns header. - `columns` (Type: Array, Default: []): Sets the jqxTreeGrid's columns. - `columnGroups` (Type: Array, Default: []): Sets the jqxTreeGrid's column groups. - `columnsResize` (Type: Boolean, Default: false): Sets or gets the jqxTreeGrid's columnsResize. - `columnsReorder` (Type: Boolean, Default: false): Sets or gets the jqxTreeGrid's columnsReorder. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the jqxTreeGrid is disabled. - `editable` (Type: Boolean, Default: false): Sets or gets whether the jqxTreeGrid editing is enabled. - `editSettings` (Type: Object, Default: { saveOnPageChange: true, saveOnBlur: true, saveOnSelectionChange: true, cancelOnEsc: true, saveOnEnter: true, editSingleCell: false, editOnDoubleClick: true, editOnF2: true }): Sets or gets the jqxTreeGrid's edit settings. - `exportSettings` (Type: Object, Default: {columnsHeader: true, hiddenColumns: false, serverURL: null, characterSet: null, collapsedRecords: false, recordsInView: true,fileName: "jqxTreeGrid"}): Determines the Data Export settings used by jqxTreeGrid when `exportData` is called. See also the `exportData` method. - `enableHover` (Type: Boolean, Default: true): Sets or gets whether row highlighting is enabled. - `enableBrowserSelection` (Type: Boolean, Default: false): Enables or disables the default text selection of the web browser. - `filterable` (Type: Boolean, Default: false): Enables/Disables the filtering feature. - `filterHeight` (Type: Number, Default: 30): Sets or gets the Filter Element's height. - `filterMode` (Type: String, Default: "default"): Determines the Filter's mode. Possible values: `"default"`, `"simple"` and `"advanced"` - `height` (Type: Number | String, Default: null): Sets or gets the jqxTreeGrid's height. - `hierarchicalCheckboxes` (Type: Boolean, Default: false): Determines whether changing a checkbox state affects the parent/child records check state. Note: "checkboxes" property value is expected to be true. - `icons` (Type: Boolean | Function, Default: false): Determines whether icons are displayed or not. - `incrementalSearch` (Type: Boolean, Default: 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. - `localization` (Type: Object, Default: default localization strings.): Applies a localization to the jqxTreeGrid's strings. - `pagerHeight` (Type: Number, Default: 28): Sets or gets the height of the jqxTreeGrid's Pager(s). Pager(s) is(are) displayed after setting `pageable` to true. - `pageSize` (Type: Number, Default: 10): Sets or gets the rows count per page when paging is enabled. - `pageSizeOptions` (Type: Array, Default: ['5', '10', '20']): Sets or gets the jqxTreeGrid's page size options when paging is enabled and the `pagerMode` property is set to `"advanced"`. - `pageable` (Type: Boolean, Default: false): Determines whether the jqxTreeGrid is in paging mode. - `pagerPosition` (Type: String, Default: "bottom"): Sets or gets the Pager's position. Possible values: `'top'`, `'bottom'` and `'both'` - `pagerMode` (Type: String, Default: "default"): Sets or gets the Pager's mode. Possible values: `"default"` and `"advanced"` - `pageSizeMode` (Type: String, Default: "default"): Sets or gets the Pager Size's mode. Possible values: `"default"` and `"root"` - `pagerButtonsCount` (Type: Number, Default: 5): Sets or gets the count of the buttons displayed on the Pager when `pagerMode` is set to `"default"`. - `pagerRenderer` (Type: Function, Default: null): Enables custom rendering of the Pager. - `ready` (Type: Function, Default: null): Callback function which is called when the jqxTreeGrid is rendered and data binding is completed.. - `rowDetails` (Type: Boolean, Default: false): Sets or gets whether the jqxTreeGrid rows have details. See the `rowDetailsRenderer` for rendering of the row details. - `rowDetailsRenderer` (Type: Function, Default: null): Callback function which is used for rendering of the row's details. - `renderToolbar` (Type: Function, Default: null): Enables custom rendering of the Toolbar. - `renderStatusBar` (Type: Function, Default: null): Enables custom rendering of the Statusbar. - `rendering` (Type: Function, Default: null): Callback function which is called before the rendering of the jqxTreeGrid's rows. - `rendered` (Type: Function, Default: null): Callback function which is called after the rendering of the jqxTreeGrid's row. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `source` (Type: Object, Default: null): Determines the jqxTreeGrid's data source. The `source` property is expected to point to an instance of jqxDataAdapter. For more information about jqxDataAdapter, visit: jquery-data-adapter.htm. - `sortable` (Type: Boolean, Default: false): Enables/Disables the sorting feature. - `showAggregates` (Type: Boolean, Default: false): Determines whether the jqxTreeGrid's Aggregates bar is visible. - `showSubAggregates` (Type: Boolean, Default: false): Determines whether jqxTreeGrid would calculate summary values for all values within a group of records and would display the result inside footer cell after each group. - `showToolbar` (Type: Boolean, Default: false): Determines whether the jqxTreeGrid's Toolbar is visible. - `showStatusbar` (Type: Boolean, Default: false): Determines whether the jqxTreeGrid's Statusbar is visible. - `statusBarHeight` (Type: Number, Default: 34): Sets or gets the height of the Statusbar. Statusbar is displayed after setting `showStatusbar` to true. - `scrollBarSize` (Type: Number, Default: 17): Sets or gets the size of the scrollbars. - `selectionMode` (Type: String, Default: "multipleRows"): Sets or gets the selection mode. Possible values: `"multipleRows"`, `"singleRow"` and `"custom"`. In the "custom" mode, rows could be selected/unselected only through the API. - `showHeader` (Type: Boolean, Default: true): Sets or gets the jqxTreeGrid's columns visibility. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `toolbarHeight` (Type: Number, Default: 34): Sets or gets the height of the Toolbar. Toolbar is displayed after setting `showToolbar` to true. - `width` (Type: Number | String, Default: null): Sets or gets the jqxTreeGrid's width. - `virtualModeCreateRecords` (Type: Function, Default: null): By defining that function you can load data into jqxTreeGrid dynamically. For each record only when required, jqxTreeGrid calls `virtualModeCreateRecords` function and this allows you to provide records on demand. - `virtualModeRecordCreating` (Type: Function, Default: null): By defining that function you can initialize the dynamic data that you load into jqxTreeGrid. In order to enable the load on demand feature, you should also define `virtualModeCreateRecords` function. #### Events - `bindingComplete` (Type: Event): This event is triggered when the jqxTreeGrid binding is completed. *Bind to that event before the jqxTreeGrid's initialization. - `cellBeginEdit` (Type: Event): This is triggered when a cell edit begins. Note: To turn on cell editing, you should set the `editSettings` property and make sure that its `editSingleCell` sub property is set to `true`. - `cellEndEdit` (Type: Event): This is triggered when a cell edit ends. Note: To turn on cell editing, you should set the `editSettings` property and make sure that its `editSingleCell` sub property is set to `true`. - `cellValueChanged` (Type: Event): This event is triggered when a cell value is changed. - `columnResized` (Type: Event): This event is triggered when a column is resized. - `columnReordered` (Type: Event): This event is triggered when the column's order is changed. - `filter` (Type: Event): This event is triggered when the jqxTreeGrid's rows filter is changed. - `pageChanged` (Type: Event): This is triggered when the jqxTreeGrid's current page is changed. - `pageSizeChanged` (Type: Event): This is triggered when the jqxTreeGrid's page size is changed. - `rowClick` (Type: Event): This is triggered when a row is clicked. - `rowDoubleClick` (Type: Event): This is triggered when a row is double-clicked. - `rowSelect` (Type: Event): This is triggered when a row is selected. - `rowUnselect` (Type: Event): This is triggered when a row is unselected. - `rowBeginEdit` (Type: Event): This is triggered when a row edit begins. - `rowEndEdit` (Type: Event): This is triggered when a row edit ends. - `rowExpand` (Type: Event): This is triggered when a row is expanded. - `rowCollapse` (Type: Event): This is triggered when a row is collapsed. - `rowCheck` (Type: Event): This is triggered when a row is checked. - `rowUncheck` (Type: Event): This is triggered when a row is unchecked. - `sort` (Type: Event): This event is triggered when the jqxTreeGrid sort order or sort column is changed. #### Methods - `addRow` (Arguments: rowKey, rowData, rowPosition, parent, Return Type: None): Adds a new row. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation. - `addFilter` (Arguments: dataField, filerGroup, Return Type: None): Adds a new filter. - `applyFilters` (Arguments: None, Return Type: None): Applies the added/removed filters. - `beginUpdate` (Arguments: None, Return Type: None): Begins an update and stops all refreshes. - `beginRowEdit` (Arguments: rowKey, Return Type: None): Begins a row edit operation when `editable` is set to true. - `beginCellEdit` (Arguments: rowKey, dataField, Return Type: None): Begins a cell edit operation when `editable` is set to true. - `clearSelection` (Arguments: None, Return Type: None): Clears the selection. - `clearFilters` (Arguments: None, Return Type: None): Clears the filters. - `clear` (Arguments: None, Return Type: None): Clears the jqxTreeGrid. - `checkRow` (Arguments: rowKey, Return Type: None): Checks a row when `checkboxes` is set to true. - `collapseRow` (Arguments: rowKey, Return Type: None): Collapses a row. - `collapseAll` (Arguments: None, Return Type: None): Collapses all rows. - `destroy` (Arguments: None, Return Type: None): Destroys jqxTreeGrid and removes it from the DOM. - `deleteRow` (Arguments: rowKey, Return Type: None): Deletes a row. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation. - `expandRow` (Arguments: rowKey, Return Type: None): Expands a row. - `expandAll` (Arguments: None, Return Type: None): Expands all rows. - `endUpdate` (Arguments: None, Return Type: None): Ends the update and resumes all refreshes. - `ensureRowVisible` (Arguments: rowKey, Return Type: None): Moves the vertical scrollbar to a row. - `endRowEdit` (Arguments: rowKey, cancelChanges, Return Type: None): Ends a row edit when `editable` is set to true. - `endCellEdit` (Arguments: rowKey, dataField, cancelChanges, Return Type: None): Ends a cell edit operation when `editable` is set to true. - `exportData` (Arguments: exportDataType, Return Type: Object(optional)): Exports TreeGrid Data to Excel, HTML, XML, JSON, CSV or TSV. See also the `exportSettings` property - `focus` (Arguments: None, Return Type: None): Focus jqxTreeGrid. - `getColumnProperty` (Arguments: dataField, propertyName, Return Type: Object): Gets a property value of a column. - `goToPage` (Arguments: pageIndex, Return Type: None): Navigates to a page when `pageable` is set to true. - `goToPrevPage` (Arguments: None, Return Type: None): Navigates to a previous page when `pageable` is set to true. - `goToNextPage` (Arguments: None, Return Type: None): Navigates to a next page when `pageable` is set to true. - `getSelection` (Arguments: None, Return Type: Array): Returns an array of selected rows. - `getKey` (Arguments: row, Return Type: String): Returns the Row's Key. If the row's key is not found, returns null. - `getRow` (Arguments: rowKey, Return Type: Object): Returns an object. If the row is not found, returns null. - `getRows` (Arguments: None, Return Type: Array): Returns an array of all rows loaded into jqxTreeGrid. - `getCheckedRows` (Arguments: None, Return Type: Array): Returns a flat array of all checked rows. - `getView` (Arguments: None, Return Type: Array): Returns an array of all rows loaded into jqxTreeGrid. The method takes into account the applied Filtering and Sorting. - `getCellValue` (Arguments: rowKey, dataField, Return Type: Object): Returns a value of a cell. - `hideColumn` (Arguments: dataField, Return Type: None): Hides a column. - `isBindingCompleted` (Arguments: None, Return Type: Boolean): Returns whether the binding is completed and if the result is true, this means that you can invoke methods and set properties. - `lockRow` (Arguments: rowKey, Return Type: None): Locks a row i.e editing of the row would be disabled. - `refresh` (Arguments: None, Return Type: None): Performs a layout and updates the HTML elements position and size. - `render` (Arguments: None, Return Type: None): Renders jqxTreeGrid. - `removeFilter` (Arguments: dataField, Return Type: None): Removes a filter. - `scrollOffset` (Arguments: top, left, Return Type: Object): Scrolls to a position or gets the scroll position. - `setColumnProperty` (Arguments: dataField, propertyName, propertyValue, Return Type: None): Sets a property of a column. See the `columns` property for more information. - `showColumn` (Arguments: dataField, Return Type: None): Shows a column. - `selectRow` (Arguments: rowId, Return Type: None): Selects a row. - `setCellValue` (Arguments: rowId, dataField, cellValue, Return Type: None): Sets a value of a cell. - `sortBy` (Arguments: dataField, sortOrder, Return Type: None): Sorts a column, if `sortable` is set to true. - `updating` (Arguments: None, Return Type: Boolean): Gets a boolean value which determines whether jqxTreeGrid is in update state i.e the `beginUpdate` method was called and the `endUpdate` method is not called yet. - `updateBoundData` (Arguments: None, Return Type: None): Performs a data bind and updates jqxTreeGrid with the new data. - `unselectRow` (Arguments: rowId, Return Type: None): Unselects a row. - `uncheckRow` (Arguments: rowId, Return Type: None): Unchecks a row when `checkboxes` is set to true. - `updateRow` (Arguments: rowId, data, Return Type: None): Updates the row's data. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation. - `unlockRow` (Arguments: rowId, Return Type: None): Unlocks a row. --- ### Getting started with the Vue TreeMap Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreemap/vue-treemap-getting-started.htm > Vue TreeMap getting started: install jQWidgets, add jqxTreeMap to your app, see a complete example, handle its events and call its methods. The Vue TreeMap displays hierarchical data as a set of nested rectangles. This guide adds the Vue TreeMap (`jqxTreeMap`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxtreemap.vue` - **Demos:** [Vue TreeMap demos](https://www.jqwidgets.com/vue/vue-treemap/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreemap/vue-treemap-api.htm) jqxTreeMap in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreemap/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxTreeMap from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtreemap.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `bindingComplete`: This event is triggered when the jqxTreeMap's source property is set to point to jqxDataAdapter instance and the jqxDataAdapter's binding is finished. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `destroy`: Destroy the jqxTreeMap widget. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [TreeMap API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreemap/vue-treemap-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreemap/vue-treemap-styling-and-appearance.htm): themes and CSS classes. - [Vue TreeMap demos](https://www.jqwidgets.com/vue/vue-treemap/): live examples with their source code. --- ### Vue TreeMap Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreemap/vue-treemap-styling-and-appearance.htm > Style the Vue TreeMap: the jqxTreeMap CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxTreeMap. - jqxTreeMap Style - jqx-widget - applied to the jqxTreeMap widget. - jqx-treemap-rectangle - applied to each sector. - jqx-treemap-rectangle-hover - applied to the hovered/selected sectors. - jqx-treemap-label - applied to the sector's label. - jqx-treemap-rectangle-parent - applied to a sector which has nested sectors. - jqx-treemap-legend - applied to the legend. - jqx-treemap-legend-label - applied to the legend's title. - jqx-treemap-legend-color - applied to each item in the legend's bar. - jqx-treemap-legend-value - applied to the values in the legend's bar. - jqx-treemap-legend-min-value - applied to the values in the legend's bar. Determines the position of the left part of the value. - jqx-treemap-legend-min-value - applied to the values in the legend's bar. Determines the position of the right part of the value. When you create a custom style with colors and backgrounds for jqxTreeMap, you need to do the following: - Add the above CSS classes related to jqxTreeMap. - After each CSS class, add your theme name. For example: jqx-treemap-custom - To apply your custom style to jqxTreeMap, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue TreeMap API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtreemap/vue-treemap-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtreemap.txt #### Properties - `baseColor` (Type: String, Default: '#C2EEFF'): Sets or gets the default color used when the `colorMode` property is set to `"autoColors"`. - `colorRanges` (Type: Array | Object, Default: [ { color: '#aa9988', min: 0, max: 10 }, { color: '#ccbbcc', min: 11, max: 50 }, { color: '#000', min: 50, max: 100 } ];): Sets or gets the color ranges used when the `colorMode` property is set to `"rangeColors"` - `colorRange` (Type: Number, Default: 100): Sets or gets the range in which the base colors can vary. The value is expected to be from 0 to 255. - `colorMode` (Type: String, Default: 'parent'): Sets or gets the sectors rendering behavior. - `displayMember` (Type: String, Default: ""): Sets or gets the `displayMember` property. The `displayMember` determines the name of an object property to display. - `height` (Type: Number | String, Default: 600): Sets or gets the jqxTreeMap's height. - `hoverEnabled` (Type: Boolean, Default: false): Sets or gets whether a sector will be outlined when the mouse cursor is over it. - `headerHeight` (Type: Number, Default: 25): Sets or gets the height of the parent sector's header. - `legendLabel` (Type: String, Default: "Legend"): Sets or gets the Legend's label. - `legendPosition` (Type: Object, Default: { x: 0, y: -5 }): Sets or gets the Legend's position. The `x` determines the X offset of the Legend from the left side of the jqxTreeMap. The `y` determines the Y offset of the Legend from the bottom side of jqxTreeMap. - `legendScaleCallback` (Type: Function, Default: null): Sets or gets a callback function which formats the values displayed in the jqxTreeMap's Legend. - `renderCallbacks` (Type: Object, Default: null): Sets or gets callback function(s) which enable you to customize the rendering of any sector in the jqxTreeMap. To define a callback function for all sectors, use the "*": function(sectorHtmlElement, sectorData) syntax. - `selectionEnabled` (Type: Boolean, Default: true): Sets or gets whether a sector will be outlined when it is clicked.. - `showLegend` (Type: Boolean, Default: true): Determines whether the jqxTreeMap's Legend is displayed. Legend is possible to be displayed when the `colorMode` property is set to `"autoColors"` or `"rangeColors"`. - `source` (Type: Object | Array, Default: null): Specifies the jqxTreeMap's data source. Use this property to populate the jqxTreeMap. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `valueMember` (Type: String, Default: ""): Sets or gets the `valueMember` property. The `valueMember` determines the name of an object property to set as a `value` of the treemap sectors. The name is contained in the collection specified by the `source` property. - `width` (Type: Number | String, Default: 600): Sets or gets the jqxTreeMap's width. #### Events - `bindingComplete` (Type: Event): This event is triggered when the jqxTreeMap's `source` property is set to point to jqxDataAdapter instance and the jqxDataAdapter's binding is finished. #### Methods - `destroy` (Arguments: None, Return Type: None): Destroy the jqxTreeMap widget. The destroy method removes the jqxTreeMap widget from the web page. - `render` (Arguments: None, Return Type: None): Renders the jqxTreeMap widget. --- ### Getting started with the Vue Validator Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxvalidator/vue-validator-getting-started.htm > Vue Validator getting started: install jQWidgets, add jqxValidator to your app, see a complete example, handle its events and call its methods. The Vue Validator checks form input against rules and shows a hint next to each invalid field. This guide adds the Vue Validator (`jqxValidator`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxvalidator.vue` - **Demos:** [Vue Validator demos](https://www.jqwidgets.com/vue/vue-validator/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxvalidator/vue-validator-api.htm) jqxValidator in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxvalidator/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxValidator from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxvalidator.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `validationError`: This is triggered when the form is validated with some errors. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `hideHint`: Hide all hints for a specific input. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Validator API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxvalidator/vue-validator-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxvalidator/vue-validator-styling-and-appearance.htm): themes and CSS classes. - [Vue Validator demos](https://www.jqwidgets.com/vue/vue-validator/): live examples with their source code. --- ### Vue Validator Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxvalidator/vue-validator-styling-and-appearance.htm > Style the Vue Validator: the jqxValidator CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second CSS file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxValidator. - jqxValidator Style - jqx-validator-hint - applied to every error popup. - jqx-validator-hint-arrow - applied to the arrow of the popup (if the arrow is allowed). When you create a custom style with colors and backgrounds for jqxValidator, you need to do the following: - Add the above CSS classes related to jqxValidator - After each CSS class, add your theme name. For example: jqx-validator-hint-summer - To apply your custom style to jqxValidator, you need to set its 'theme' property (option) to point to your theme name string. --- ### Vue Validator API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxvalidator/vue-validator-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxvalidator.txt #### Properties - `arrow` (Type: Boolean, Default: true): Sets or gets whether the arrow of the hints will be shown. - `animation` (Type: String, Default: 'fade'): Sets or gets the animation of showing, hiding the hints. - `animationDuration` (Type: Number, Default: 150): Sets or gets the duration of the animation used for showing/hiding the hints. - `closeOnClick` (Type: Boolean, Default: true): Sets or gets whether the hints will be closed when the user click on them. - `focus` (Type: Boolean, Default: true): Sets or gets whether the jqxValidator will focus the first invalid input. - `hintType` (Type: String, Default: "tooltip"): Sets or gets the hint type. Possible values: 'tooltip' and 'label'. - `onError` (Type: Function, Default: null): Sets or gets callback which will be called on validation error. - `onSuccess` (Type: Function, Default: null): Sets or gets the callback which will be executed on success. - `position` (Type: String, Default: 'right'): Sets or gets the default position of the hints. - `rules` (Type: Array, Default: []): Sets jqxValidator rules. Format of a single rule is as follows: - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether the validation messages are displayed from the left side instead of the right. - `theme` (Type: String, Default: ''): Sets the widget's theme. #### Events - `validationError` (Type: Event): This is triggered when the form is validated with some errors. - `validationSuccess` (Type: Event): This is triggered when the form is validated without any errors. #### Methods - `hideHint` (Arguments: id, Return Type: None): Hide all hints for a specific input. - `hide` (Arguments: None, Return Type: None): Hiding all hints for the current form. - `updatePosition` (Arguments: None, Return Type: None): Updating the positions of all hints. This is useful for example on window resize. - `validate` (Arguments: htmlElement, Return Type: None): Validating the whole form. - `validateInput` (Arguments: id, Return Type: None): Validates a single input. This method accepts a single parameter which is selector of the input you want to validate. Notice that this selector should be the same like the one you've passed in the rules array. --- ### Getting started with the Vue Window Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxwindow/vue-window-getting-started.htm > Vue Window getting started: install jQWidgets, add jqxWindow to your app, see a complete example, handle its events and call its methods. The Vue Window enables you to direct a user’s attention to a particular activity in your web application, such as entering data or viewing information. This guide adds the Vue Window (`jqxWindow`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-scripts` - **Import:** `jqwidgets-scripts/jqwidgets-vue3/vue_jqxwindow.vue` - **Demos:** [Vue Window demos](https://www.jqwidgets.com/vue/vue-window/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxwindow/vue-window-api.htm) jqxWindow in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxwindow/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In a Vue 3 project (to start one, see [Getting started with Vue](https://www.jqwidgets.com/vue-components-documentation/index.htm)), add the package: ```bash npm install jqwidgets-scripts ``` #### 2. Import the component and a theme ```typescript import JqxWindow from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxwindow.vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; ``` With ` ``` Options are attributes. Bind values from the script with `:`, for example `:width="850"`. #### 4. Handle events Listen to an event with `@` and its name. For example, `open`: This event is triggered when the window is displayed. ```vue ``` #### 5. Call methods Call methods through a template ref. For example, `open`: Opening/showing the current window. ```vue ``` Every component also has `setOptions({ … })` and `getOptions('name')`. #### Next steps - [Window API reference](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxwindow/vue-window-api.htm): every property, event and method, with examples. - [Styling and appearance](https://www.jqwidgets.com/vue-components-documentation/documentation/jqxwindow/vue-window-styling-and-appearance.htm): themes and CSS classes. - [Vue Window demos](https://www.jqwidgets.com/vue/vue-window/): live examples with their source code. --- ### Vue Window Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxwindow/vue-window-styling-and-appearance.htm > Style the Vue Window: the jqxWindow CSS classes, the theme stylesheets it uses and how to change its appearance. jQWidgets uses a pair of CSS files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxWindow. - jqx-widget – applied to the jqxWindow. - jqx-window – applied to the jqxWindow. - jqx-window-disabled – applied to the jqxWindow when it’s disabled. - jqx-window-header – applied to the window’s header. - jqx-widget-header – applied to the window’s header. - jqx-window-content – applied to the window’s content. - jqx-widget-content – applied to the window’s content. - jqx-window-close-button – applied to the window’s close button. - jqx-window-collapse-button – applied to the window’s collapse button. - jqx-window-modal – setting styles of the modal window’s background. When you create a custom style with colors and backgrounds for jqxWindow, you need to do the following: - Add the above CSS classes related to jqxWindow - After each CSS class, add your theme name. For example: jqx-window-summer - To apply your custom style to jqxWindow, you need to set its 'theme' property(option) to point to your theme name string. --- ### Vue Window API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxwindow/vue-window-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxwindow.txt #### Properties - `autoOpen` (Type: Boolean, Default: true): Sets or gets whether the window will be shown after it's creation. - `animationType` (Type: String, Default: fade): Sets or gets window's close and show animation type. - `collapsed` (Type: Boolean, Default: false): Determines whether the window is collapsed. - `collapseAnimationDuration` (Type: Number, Default: 150): Determines the duration in milliseconds of the expand/collapse animation. - `content` (Type: String, Default: ''): Sets or gets window's content's html content. - `closeAnimationDuration` (Type: Number, Default: 350): Sets or gets window's close animation duration. - `closeButtonSize` (Type: Number, Default: 16): Sets or gets window's close button size. - `closeButtonAction` (Type: String, Default: hide): This setting specifies what happens when the user clicks the jqxWindow's close button. - `cancelButton` (Type: Object | String, Default: null): Sets or gets cancel button. When a cancel button is specified you can use this button to interact with the user. - `dragArea` (Type: Object, Default: null): Sets or gets the screen area which is available for dragging(moving) the jqxWindow. Example value: { left: 300, top: 300, width: 600, height: 600 }. - `draggable` (Type: Boolean, Default: true): Sets or gets whether the window is draggable. - `disabled` (Type: Boolean, Default: false): Sets or gets whether the window is disabled. - `height` (Type: Number | String, Default: null): Sets or gets the window's height. - `initContent` (Type: Function, Default: null): Initializes the jqxWindow's content. - `isModal` (Type: Boolean, Default: false): Sets or gets whether the window is displayed as a modal dialog. If the jqxWindow's mode is set to modal, the window blocks user interaction with the underlying user interface. - `keyboardCloseKey` (Type: Number, Default: 'esc'): Sets or gets the key which could be used for closing the window when it's on focus. Possible value is every keycode and the 'esc' string (for the escape key). - `keyboardNavigation` (Type: Boolean, Default: true): Determines whether the keyboard navigation is enabled or disabled. - `minHeight` (Type: Number, Default: 50): Sets or gets window's minimum height. - `maxHeight` (Type: Number, Default: 600): Sets or gets window's maximum height. - `minWidth` (Type: Number, Default: 50): Sets or gets window's minimum width. - `maxWidth` (Type: Number, Default: 600): Sets or gets window's maximum width. - `modalOpacity` (Type: Number | String, Default: 0.3): Sets or gets the jqxWindow's background displayed over the underlying user interface when the window is in modal dialog mode. - `modalZIndex` (Type: Number, Default: 18000): Sets or gets the jqxWindow's z-index when it is displayed as a modal dialog. - `modalBackgroundZIndex` (Type: Number, Default: 12990): Sets or gets the jqxWindow overlay's z-index when it is displayed as a modal dialog. - `okButton` (Type: String | Object, Default: null): Sets or gets submit button. When a ok/submit button is specified you can use this button to interact with the user. - `position` (Type: String | Object, Default: center): Sets or gets window's position. The value could be in the following formats: 'center', 'top, left', '{ x: 300, y: 500 }', '[300, 500]'. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `resizable` (Type: Boolean, Default: true): Enables or disables whether the end-user can resize the window. - `showAnimationDuration` (Type: Number, Default: 350): Sets or gets window's show animation duration. - `showCloseButton` (Type: Boolean, Default: true): Sets or gets whether a close button will be visible. - `showCollapseButton` (Type: Boolean, Default: false): Sets or gets whether the collapse button will be visible. - `theme` (Type: String, Default: ''): Sets the widget's theme. - `title` (Type: String, Default: ''): Sets or gets window's title content. - `width` (Type: Number | String, Default: null): Sets or gets the window's width. - `zIndex` (Type: Number, Default: 9001): Sets or gets the jqxWindow z-index. #### Events - `close` (Type: Event): This event is triggered when the window is closed. - `collapse` (Type: Event): This event is triggered when the window is collapsed. - `expand` (Type: Event): This event is triggered when the window is expanded. - `moving` (Type: Event): This event is triggered when the window is dragging by the user. - `moved` (Type: Event): This event is triggered when the window is dropped by the user. - `open` (Type: Event): This event is triggered when the window is displayed. - `resizing` (Type: Event): This event is triggered when the end-user is resizing the window. - `resized` (Type: Event): This event is triggered when the end-user has resized the window. #### Methods - `bringToFront` (Arguments: None, Return Type: None): Bringing the window to the front. - `close` (Arguments: None, Return Type: None): Hiding/closing the current window (the action - hide or close depends on the closeButtonAction). - `collapse` (Arguments: None, Return Type: None): Collapse the current window. - `closeAll` (Arguments: None, Return Type: None): Closing all open windows which are not modal. - `disable` (Arguments: None, Return Type: None): Disabling the window. - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `enable` (Arguments: None, Return Type: None): Enabling the window - `expand` (Arguments: None, Return Type: None): Expand the current window. - `focus` (Arguments: None, Return Type: None): Focuses the window. - `isOpen` (Arguments: None, Return Type: Boolean): Returns true when jqxWindow is opened and false when the jqxWindow is closed - `move` (Arguments: top, left, Return Type: None): Moving the current window. - `open` (Arguments: None, Return Type: None): Opening/showing the current window. - `openConfirm` (Arguments: None, Return Type: None): Opening/showing the current window's confirm. - `openAlert` (Arguments: None, Return Type: None): Opening/showing the current window's Alert. - `hide` (Arguments: None, Return Type: None): Hiding the current window. - `resize` (Arguments: top, left, Return Type: None): Resizes the window. The 'resizable' property is expected to be set to "true". - `setTitle` (Arguments: title, Return Type: None): Setting window's title - `setContent` (Arguments: content, Return Type: None): Setting window's content. --- ### Vue ToggleButton API Reference Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtogglebutton/vue-togglebutton-api.htm · Full reference: https://www.jqwidgets.com/vue-components-documentation/llms/jqxtogglebutton.txt #### Properties - `disabled` (Type: Boolean, Default: false): Enables or disables the button. - `height` (Type: Number | String, Default: null): Sets or gets the button's height. - `imgSrc` (Type: String, Default: ""): Sets or gets the button's image source. - `imgWidth` (Type: Number, Default: 16): Sets or gets the button's image width. - `imgHeight` (Type: Number, Default: 16): Sets or gets the button's image height. - `imgPosition` (Type: String, Default: 'center'): Sets or gets the button's image position. Possible values: "left", "top", "center", "bottom", "right", "topLeft", "bottomLeft", "topRight", "bottomRight". - `roundedCorners` (Type: String, Default: all): Enables or disables the rounded corners functionality. This property setting has effect in browsers which support CSS border-radius. - `rtl` (Type: Boolean, Default: false): Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. - `textPosition` (Type: String, Default: ''): Sets or gets the button's text position. Possible values: "left", "top", "center", "bottom", "right", "topLeft", "bottomLeft", "topRight", "bottomRight". - `textImageRelation` (Type: String, Default: 'overlay'): Sets or gets the button's text image relation. Possible values: "imageBeforeText", "imageAboveText", "textAboveImage", "textBeforeImage" and "overlay". - `theme` (Type: String, Default: ''): Sets the widget's theme. - `template` (Type: String, Default: 'default'): Determines the button's template as an alternative of the default styles. - `toggled` (Type: Boolean, Default: false): Sets or gets the button's toggle state. (available in jqxToggleButton). - `width` (Type: Number | String, Default: null): Sets ot gets the button's width. - `value` (Type: String, Default: ""): Sets or gets the button's value. #### Events - `click` (Type: Event): This event is triggered when the button is clicked. #### Methods - `check` (Arguments: None, Return Type: None): Checks the button. (available in jqxToggleButton). - `destroy` (Arguments: None, Return Type: None): Destroys the widget. - `focus` (Arguments: None, Return Type: None): Focuses the widget. - `render` (Arguments: None, Return Type: None): Renders the widget. - `toggle` (Arguments: None, Return Type: None): Toggles the button's checked state. (available in jqxToggleButton). - `unCheck` (Arguments: None, Return Type: None): Unchecks the button. (available in jqxToggleButton). - `val` (Arguments: value, Return Type: String): Sets or gets the value. --- ### Styling and Appearance Source: https://www.jqwidgets.com/vue-components-documentation/documentation/jqxtogglebutton/vue-togglebutton-styling-and-appearance.htm > jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. Below is the list of CSS classes used by jqxButtons. - jqxButton, jqxRepeatButton, jqxLinkButton and jqxToggleButton Style - jqx-button - applied to jqxButton's outer div element. - jqx-link - applied to the jqxLinkButton's anchor element. - jqx-fill-state-normal - applied to button when it's state is default/normal. - jqx-fill-state-hover - applied to button when it's state is hovered i.e the mouse cursor is over the button. - jqx-fill-state-pressed - applied to button when it's state is pressed i.e the mouse button is down. - jqx-fill-state-disabled - applied to button it is disabled. When you create a custom style with colors and backgrounds for jqxButton, jqxRepeatButton, jqxLinkButton and jqxToggleButton, you need to do the following: - Add the above CSS classes related to jqxButtons - After each CSS class, add your theme name. For example: jqx-button-energyblue - To apply your custom style to jqxButtons, you need to set its 'theme' property(option) to point to your theme name string. ## Guides --- ### jQWidgets Vue starter project Source: https://www.jqwidgets.com/vue-components-documentation/documentation/create-jqwidgets-vue-app/index.htm > create-vue plus jqwidgets-scripts replaces the old create-jqwidgets-vue-app package, which was built on Vue CLI and Vue 2. create-vue plus `jqwidgets-scripts` replaces the old `create-jqwidgets-vue-app` package, which was built on Vue CLI and Vue 2. Vue CLI is in maintenance mode, and create-vue is the tool the Vue team recommends. This page sets up a ready-to-edit project with Vite, Vue 3.5, TypeScript, the jQWidgets styles and a working Grid, the same starting point the old package produced. #### Quick overview ```bash npm create vue@latest my-app cd my-app npm install npm install jqwidgets-scripts npm run dev ``` Then open `http://localhost:5173`. To see a Grid, replace the two files described below. #### Creating the app `npm create vue@latest` asks which features to include. For this starter, answer **Yes** to TypeScript. Vue Router, Pinia, Vitest, Playwright and ESLint are optional; add them if your app needs them. The command creates a folder called `my-app`: ```bash my-app/ ├── node_modules/ ├── public/ # files served as-is, such as the favicon ├── src/ │ ├── assets/ # CSS and images imported from code │ ├── components/ # example components you can delete │ ├── App.vue # the root component │ └── main.ts # creates the app and loads global styles ├── env.d.ts # types for Vite features such as import.meta.env ├── index.html # the page Vite serves; it loads src/main.ts ├── package.json ├── tsconfig.json # references tsconfig.app.json and tsconfig.node.json ├── tsconfig.app.json # compiler options for the code in src/ ├── tsconfig.node.json # compiler options for vite.config.ts └── vite.config.ts ``` The exact files depend on the features you pick and can change a little between create-vue versions. #### Configure Vite Two additions to `vite.config.ts` make jqwidgets-scripts versions before 27.1.0 work with Vite, and do no harm in 27.1.0. Without them, `npm run dev` stops with *Cannot set properties of undefined (setting 'Globalize')* as soon as a Grid, Calendar, DateTimeInput, Form or Scheduler is on the page, and `npm run build` fails with *Unexpected token Semicolon*. With 27.1.0 the dev server works without the plugin, and the build fails only with the `light-ie` and `dark-ie` themes. Keep the rest of the file create-vue wrote; the additions are the plugin and the `css` setting: ```typescript import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin } from 'vite' import vue from '@vitejs/plugin-vue' import vueDevTools from 'vite-plugin-vue-devtools' // Before jqwidgets-scripts 27.1.0: globalize.js, which the Grid, Calendar, DateTimeInput, Form and // Scheduler components load, hands its code `this` as the window. The dev server serves it as // an ES module, where `this` is undefined; this passes the window instead. const jqwidgetsGlobalize: Plugin = { name: 'jqwidgets-globalize-window', transform(code, id) { if (id.includes('jqwidgets-scripts/jqwidgets/globalization/globalize.js')) { return code.replace(/\}\(this\)\);/, '}(window));') } }, } // https://vite.dev/config/ export default defineConfig({ plugins: [ vue(), vueDevTools(), jqwidgetsGlobalize, ], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, // Some jQWidgets themes still contain Internet Explorer CSS hacks (*zoom: 1; in 27.1.0 only // light-ie and dark-ie), which Vite's // CSS minifier rejects: errorRecovery drops those lines instead of stopping the build. css: { lightningcss: { errorRecovery: true } }, }) ``` The plugin changes one line of `globalize.js`, the culture library those five components load: before 27.1.0 it was written for a classic script, where `this` is the window, and the dev server serves it as an ES module, where `this` is undefined. The production build is not affected. In 27.1.0 the file finds the window itself, and the plugin changes nothing. `errorRecovery` lets Vite's CSS minifier drop the Internet Explorer hacks (`*zoom: 1`) that some themes still contain (in 27.1.0 `light-ie` and `dark-ie`), instead of stopping the build. #### Add the jQWidgets styles Replace `src/main.ts`. Every component needs `jqx.base.css`; the second import is the theme: ```typescript import { createApp } from 'vue'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css'; import App from './App.vue'; createApp(App).mount('#app'); ``` The Vue components are plain JavaScript files, so TypeScript's strict mode rejects importing them (`TS7016: Could not find a declaration file`). Declare them once in a new file, `src/jqwidgets-vue3.d.ts`: ```typescript // src/jqwidgets-vue3.d.ts declare module 'jqwidgets-scripts/jqwidgets-vue3/*.vue' { import type { DefineComponent } from 'vue'; const component: DefineComponent, Record, any>; export default component; } ``` Other themes are in the same folder, for example `jqx.fluent.css`, `jqx.material.css`, `jqx.light.css` and `jqx.dark.css`. Pass the theme name to each component's `theme` prop. #### Add the starter Grid Replace `src/App.vue`: ```vue ``` You can delete `src/components` and `src/assets` now; the new files no longer use them. #### Commands | Command | What it does | | --- | --- | | `npm run dev` | Starts the development server on `http://localhost:5173`. The page updates as you save files. | | `npm run build` | Type-checks the project with `vue-tsc`, then writes an optimized production build to `dist/`. | | `npm run preview` | Serves the `dist/` folder locally so you can test the production build. | #### Where to go next - [Grid walkthrough](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxgrid.htm): sorting, filtering, events and methods. - [Chart walkthrough](https://www.jqwidgets.com/vue-components-documentation/documentation/vue-cli/vue-cli-jqxchart.htm). - [Vite and Vue 3 with \