vue-notifyjs icon indicating copy to clipboard operation
vue-notifyjs copied to clipboard

Passing props to message component

Open m3hari opened this issue 6 years ago • 2 comments

I have encountered a use case where I want to pass props to the message component. I haven't seen a way to do that currently.
I was able to work around like the following

[
           this.title !== undefined &&
             h("span", { class: "title" }, [
               h("b", null, [this.title, h("br", null, [])])
             ]),
           this.message !== undefined && this.message,
           this.component !== undefined &&
             h(this.component, { props: this.componentProps }, [])
         ]
       )

I can make a PR if this feature does not conflict with the direction and design decisions of the project.

m3hari avatar May 19 '18 12:05 m3hari

@m3hari pls do a PR for this enhancement.

amandiobm avatar Nov 05 '21 05:11 amandiobm

lol it's been 3 years I don't remember any of this

m3hari avatar Nov 09 '21 08:11 m3hari