BinarCode / vue-notifyjs

Minimalist 1kb Notification component
MIT License
170 stars 28 forks source link

Suggest to add message title to Notifyjs #7

Closed buildJava closed 7 years ago

buildJava commented 7 years ago

I think add a message title is a better way to show notify message, how do you think

cristijora commented 7 years ago

So your are suggesting

 this.$notify({
        title: 'Welcome'
})

Instead of

 this.$notify({
        message: 'Welcome'
})

If this is your question, then most likely I won't change it since this is just a preference and does not add too much to the plugin

I would be more open to rather support something like this

 this.$notify('Welcome')

In case you don't want to specify other options like position, color etc.

buildJava commented 7 years ago

I mean sometimes a 'notify' has a title and a message, like this: image then we can use like this.$notify({title: 'message title', message: 'message content'})

cristijora commented 7 years ago

Oh, I get your point. Yes, that could be an option to add

buildJava commented 7 years ago

thank you very much, this is a awesome component

cristijora commented 7 years ago

0.2.0 contains title option