Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Remove "final" from the properties. (message ant title, at least) #94

Closed
renenucci opened this issue Oct 31, 2019 · 1 comment
Closed

Comments

@renenucci
Copy link

Would be nice if we have a possibility to override some parameters or configuration, eg.;

1 - Create a unique template notification object (flushbar) with all properties default seted.
2 - Replace text/title and some other properties according the type or subject of the notification.

Like this:

var myTemplateNotification = getReferenceFromSomeWhere(AlertType.Warning); //Could be a clone object too
myTemplateNotification.message = 'lorem ipsum';'
myTemplateNotification.title = 'title';

Even if I want to translate the message/title after the flushbar object was constructed, I can't.

I think that's would be very nice! Ty

@AndreHaueisen
Copy link
Owner

That is a bad idea. If you want a text, create a new Flushbar. It is meant to be immutable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants