Open symonsoft opened 6 years ago
Something like:
let customClass = Vue.extend({ template: ` <select v-model="selected"> <option disabled value="">Please select one</option> <option>A</option> <option>B</option> <option>C</option> </select> <span>Selected: {{ selected }}</span> `, data: function () { return { selected: null } } }) let options = { okText: 'Ok', cancelText: 'Cancel', customClass: customClass } this.$dialog.confirm('Custom class dialog', options) .then((dialog) => { console.log('Selected:' + dialog.data.selected) })
Please add custom class as a variable.
Hello @symonsoft can you please help me understand better how this would work and it's use case? Looks interesting
Something like: