Skip to content

Custom class is not working. #72

New issue

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

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

Already on GitHub? # to your account

Open
rachitpant opened this issue May 28, 2020 · 1 comment
Open

Custom class is not working. #72

rachitpant opened this issue May 28, 2020 · 1 comment

Comments

@rachitpant
Copy link

I am trying to use a customClass for the buttons like this:

this.$dialog
        .confirm('Are you sure you want to delete the selected users.', {
          okText: 'Delete',
          cancelText: 'Cancel',
          customClass: {
            cancel: 'btn btn-light btn-sm'
          }
        })
        .then(function(dialog) {
          this.deleteSelectedUsers()
        })

However I do not see the classes mentioned above applied to the cancel button. I am using bootstrap and these classes are part of it. I can manually change the class of cancel button through inspector and see the desired result , but the above code is not resulting in the above classes applied.

@rmuraliananth
Copy link

rmuraliananth commented Nov 3, 2020

I am trying to use a customClass for the buttons like this:

this.$dialog
        .confirm('Are you sure you want to delete the selected users.', {
          okText: 'Delete',
          cancelText: 'Cancel',
          customClass: {
            cancel: 'btn btn-light btn-sm'
          }
        })
        .then(function(dialog) {
          this.deleteSelectedUsers()
        })

However I do not see the classes mentioned above applied to the cancel button. I am using bootstrap and these classes are part of it. I can manually change the class of cancel button through inspector and see the desired result , but the above code is not resulting in the above classes applied.

@rachitpant , I am also having same issue & it is not working,

@hjortzen - any idea?

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

No branches or pull requests

3 participants