Pinia is a store library for Vue, it allows you to share a state across components/pages. To install pinia type this in command prompt. After installing pinia, enter the script in main.js file Given is the Javascript sample of pinia
Tag: webapp
Install and use PrimeFlex CSS utility library in Vue project.
Run the following command in your command line. Add provided code in main.js To use PrimeFlex classes, consider the font size need to be changed. ‘text-xs’ is a PrimeFlex property with font-size: .75rem;
Install and use PrimeVue Library in Vue project.
PrimeVue is a rich set of open source UI components for Vue. Run the following command in your command line. Add provided code in main.js To import components of Primevue to use it, add provided code in main.js. Take Button as example. Use the component in Vue file as provided.
Creating a Vue Application and run it.
Install latest version of Node.js. Run the following command in your command line. Then type Project name and Package name Select Yes/No Type following in command line. The dev server will be started. Paste ‘http://localhost:5174/’ on browser. Vue app is created.
How to avoid timezone offset shift when displaying a date input value in typescript
I was using javascript to show the date field in ‘mm-dd-yyyy’ format from the date input field in typescript. But since the input date value was only having the date and not time, when using the ‘new Date()’ function time was set to 00:00:00 hours GMT. This caused date to shift a day before in… Continue reading How to avoid timezone offset shift when displaying a date input value in typescript
Rendering web pages using free marker and Suite scripts
Render a web page using suitelet and HTML template.
Sales Pipeline for webapp
Sales pipeline web app which shows the number of customers and a Pie chart explains the sales.