Skip to content

vue dialog doesn’t close/hide

I can’t close or hide my vue-dialog and I don’t know why. This is my js file from which I call the dialog: and this is my Dialog: If I choose an item in the dialog the callback-method “onStockSelected” of the js file runs and self.showItemChooser is set to false but the dialog is still…

JSON can’t read value of field [Vue.js]

I have function Short explanation of function: I call it in <child-component :value=valueOfMeasurement(measurement)></child-component> to pass it value to child component. measurement is JSON object that I use to identify which component and data is used, measurement.fieldId have values 1,2,3&#823…

How can one use JS to add a draggable field?

What do I need to change in my code so that it generates draggable fields. This is what I have tried so far: The code currently generates the fields but they are not draggable while being clicked. Answer You’re trying to set ‘draggable’ on the elements before they exist. Try setting it (and …

Buttons with dynamic ajax text

In my php page I have a row of buttons which each have some values (5 in this example). These values shall be send into a ajax script which do some calculation to values and return the result for each button without reloading the homepage. In this example the result will be FRANK=5 (button 1) FRANK=frank (but…

Checks for defined data in component

Let’s say I have config-items for my component. If they are available they should be in the output – otherwise not. cfg = { name: “sam”, address: “NY”, age: 51 }; … <p *ngIf=&…