Vue Draggable

Vue component (Vue.js 2.0) or directive (Vue.js 1.0) allowing drag-and-drop and synchronization with view model array. Based on and offering all features of Sortable.js Description: Makes elements draggable and reorderable with Vue.js. Installation: npm install vuedraggable Example Usage <script setup> import { ref } from ‘vue’ import draggable from ‘vuedraggable’ const items = ref([‘Item 1’, ‘Item… Continue reading Vue Draggable

Vue Chart.js – Data Visualization

vue-chartjs is a wrapper for Chart.js in Vue. You can easily create reuseable Install this library with peer dependencies: pnpm add vue-chartjs chart.js # or yarn add vue-chartjs chart.js # or npm i vue-chartjs chart.js Then, import and use individual components: <template> <Bar :data=”data” :options=”options” /> </template> <script lang=”ts”> import { Chart as ChartJS, Title,… Continue reading Vue Chart.js – Data Visualization

Pinia Plugin Persistedstate

Features Persist Pinia stores with a friendly API inspired by vuex-persistedstate. Highly customizable (storage, serializer, paths picking/omitting). Out of the box SSR-friendly support for Nuxt. Very smol (<2kB minzipped). Quickstart Install with your favorite package manager: pnpm : pnpm add pinia-plugin-persistedstate npm : npm i pinia-plugin-persistedstate yarn : yarn add pinia-plugin-persistedstat Add the plugin to pinia: import { createPinia } from… Continue reading Pinia Plugin Persistedstate

Vue Router Navigating with Ease in Vue.js

Vue Router is the official routing library for Vue.js, enabling developers to build single-page applications (SPAs) with smooth navigation. It manages URL-based navigation and supports dynamic routes, nested routes, and lazy loading.

Retrieving the child item name, where the name contains special characters.

let itemSearch = search.create({   type: search.Type.ITEM,   columns: [‘internalid’, ‘name’, ‘parent’],   filters: [     [“type”, “anyof”, “InvtPart”],     “AND”,     [“isinactive”, “is”, “F”]   ] }); let pagedData = itemSearch.runPaged({ pageSize: 1000 }); pagedData.pageRanges.forEach(pageRange => {   let page = pagedData.fetch({ index: pageRange.index });   page.data.forEach(result => {     items.push({       id: result.getValue(‘internalid’),       name: result.getText(‘parent’) ? result.getValue(‘name’).replace(result.getText(‘parent’) + ‘ : ‘, ”) : result.getValue(‘name’),… Continue reading Retrieving the child item name, where the name contains special characters.

Creating a Pop-Up Page in Vue.js: A Step-by-Step Guide

In Vue.js, creating a pop-up page (or modal) from a main page is a common feature for many web applications. Whether it’s for displaying a form, image, or any other content, implementing a pop-up page is quite simple. In this guide, we’ll walk through how to create a pop-up page and how to manage its… Continue reading Creating a Pop-Up Page in Vue.js: A Step-by-Step Guide

Reducing Inventory Using Inventory Adjustment in NetSuite

Inventory adjustments in NetSuite allow businesses to correct stock levels, account for lost or damaged goods, and reconcile discrepancies. This ensures accurate inventory tracking and financial reporting. Steps to Reduce Inventory Using Inventory Adjustment Navigate to Inventory Adjustment Go to Transactions > Inventory > Adjust Inventory. Select Adjustment Account Choose the appropriate account to reflect… Continue reading Reducing Inventory Using Inventory Adjustment in NetSuite

Vue.js toggle/switch button.

Install npm install vue-js-toggle-button –save Import plugin: import ToggleButton from ‘vue-js-toggle-button’   Vue.use(ToggleButton) OR OR Import component: import { ToggleButton } from ‘vue-js-toggle-button’   Vue.component(‘ToggleButton’, ToggleButton) Use <toggle-button @change=”onChangeEventHandler”/>   <toggle-button v-model=”myDataVariable”/>   <toggle-button :value=”false”                color=”#82C7EB”                :sync=”true”                :labels=”true”/>   <toggle-button :value=”true”                :labels=”{checked: ‘Foo’, unchecked: ‘Bar’}”/>

vue3-blocks-tree

A simple organization structure tree view based on Vue3.x. It supports events, slots, horizontal vision and nodes manipulation Usage <template> <h1>Basic</h1> <div> <blocks-tree :data=”treeData” :horizontal=”treeOrientation==’1′” :collapsable=”true”></blocks-tree> </div> <h1>With slots</h1> <div> <blocks-tree :data=”treeData” :horizontal=”treeOrientation==’1′” :collapsable=”true”> <template #node=”{data,context}”> <span> <input type=”checkbox” :checked=”selected.indexOf(data.some_id)> -1″ @change=”(e)=>toggleSelect(data,e.target.checked)”/> {{data.label}} </span> <br/> <span v-if=”data.children && data.children.length”> <a href=”#” @click=”context.toggleExpand”>toggle expand</a> </span> </template>… Continue reading vue3-blocks-tree