Notify
-
hi!
-
this.$q.notify({ message:"Good afternoon!", caption:`Welcome,${this.username}`, actions:[{icon:'fa fa-close',handler:()=>{console.log('click')},color:"#fff",label:"close"}] })
this is my code. the textColor likes doesn’t work.
notify:{ position:"top-right", color:"primary", timeout:1000 }
and this is default config.
my i just want add a default closeBtn with icon… emm…
Can you reply me? thank you. -
the ‘actions’ attr ,its color and background-color are same as the notify color,also ‘closeBtn’.
-
you need to use named color, not hex notation. Try:
actions:[{icon:'fa fa-close',handler:()=>{console.log('click')},color:"orange-5",label:"close"}]
see color palette here: https://quasar.dev/style/color-palette
-
@jraez thanks
-
@jesse please use edit function next time.