Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: custom class as Vue.extend variable #42

Open
symonsoft opened this issue Aug 30, 2018 · 2 comments
Open

Feature request: custom class as Vue.extend variable #42

symonsoft opened this issue Aug 30, 2018 · 2 comments

Comments

@symonsoft
Copy link

symonsoft commented Aug 30, 2018

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)
  })
@kapdom
Copy link

kapdom commented Sep 21, 2018

Please add custom class as a variable.

@Godofbrowser
Copy link
Owner

Hello @symonsoft can you please help me understand better how this would work and it's use case? Looks interesting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants