So I have some input fields which are repetitive to fill different data. For every repetition, I also have a delete button. If I click on this delete button, then all the input fields related to this delete button should be removed. But this delete button is not working. HTML JS code In the image, if I click the red
Tag: vue.js
include tailwind css in bundle js
How could I include tailwind css in bundle js ? this is the an example with vue 3 and tailwind 3 https://github.com/musashiM82/vue-webpack. running npm run build , it creates 3 files: app.js ABOUTPAGE.js app.6cba1802.css I want to include app.6cba1802.css into app.js, so the result should be: app.js ABOUTPAGE.js Thanks Answer You can use the css.extract option from vue cli :
How to add text around dynamically assigned aria labels with Vue JS
I am very new to vue.js and accessibility, I am trying to make an element be announced by the screen reader as (“This is ” + person.name). I was able to announce the person.name with :aria-label=”person.name” but I am not able to add text around this. How do I add text around the dynamically assigned :aria-label? Answer Did you try
How to return id of a row from v-data-table in VueJs
I’m currently struggling with returning the id of a specific field from each row. I need this id to use it as a parameter for a function that will be used in an action button to delete the row. This is how my table template is looking like: This is how my headers are looking like (my headers is dynamically
How to access Nuxt context inside of fetch() hook?
I want to access the props inside the async fetch() but I’m also using async fetch(context). So, I’m not sure how to access the props. Answer In Nuxt 2, you have 2 fetch hooks. The old one, before Nuxt 2.12, fetch(context) which acts a lot like asyncData. It’s executed before the component creation, so you don’t have access to it
Vuetify Table sortable column is not working
I have these vuetify table, this is how I configure the header As you can see I have sortable: true for Link Count column. Some how it is not working… How can I debug this further ? Answer By default, <v-data-table> comes with a sortable functionality for all the columns. By your question what I understood if that by default
Split array data from fetch data
I fetch this data from the api then i want to split this into two array i try using split function but it didn’t work, when i check for array.length, console said it undefined. when i console.log(array) it show like this Help me please. Answer First, This is not an array it’s an object. You can use Object.keys and Object.value
Vue 3 – can i avoid using .value everywhere?
I’m quite new to Vue 3 and i’m struggling a lot to understand some concepts of the composition API. I’m trying to port a library i’m using from vue 2 to vue 3, and in a parent element a reactive property called layout is passed to children components. So in the parent component i’m returning layout to the children like
Vue.js 3: Store videos offline in a Vue PWA
I am using Vue 3 with Typescript. I am trying to show a video in the PWA. It works online great but when i try it offline the video is not loading. I store the video in the assets folder and in the finished dist the videos are in the media folder. Thank you for your help. Answer I found
Changing placeholder depending on which selectbox option is selected
I have a select box which is getting a value I want my input to get the select box value if that option in selectbox is selected. I mean dynamically changing the input placeholder by which option is selected. sandbox link to my code Answer Try like following snippet (you can create method and find selected option):