Customise Notify action buttons with QBtn API props
-
Looking at the code for the
Notify
plugin I can see that it’s generating QBtn’s and appears to accept any QBtn prop for any notifyaction
that you can set either viaattrs
or...props
. However I can’t seem to make either work. Specifically I’d like to set the background color for an action button.this.$q.notify({ message: "some message, color: "white", textColor: "primary", avatar: this.logo, rounded: true, multiLine: true, timeout: 0, actions: [ { label: "OK", style: "background: primary; color: white" } ] });
-
@tohagan use
class
ie.this.$q.notify({ message: "some message, color: "white", textColor: "primary", avatar: this.logo, rounded: true, multiLine: true, timeout: 0, actions: [ { label: "OK", class: 'bg-primary', color: 'white' } ] });
-
Was an old app and turned out that I just needed to upgrade Quasar.