-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Allow UfAlert style customization #634
Comments
Or, we can just have a Handlebars template in the DOM (wrapped in a For example, the Handlebars template for the "user info" cell of the users table:
This is a Handlebars template, so |
I looked at Handlebar doc and I guess it would be the easiest way to do this. The actual Handlebar template should be in a separate At the same time, I was thinking about splitting multiple alert into different alert box instead of a I'll assign this to myself since I do want to try out and learn how Handlebar work. Might be useful in my own project ;) |
This is implemented in commit above. Alerts style can be customized by overwriting |
Currently the alerts are rendered by uf-alerts.js, which doesn't allow style customization through a sprinkle and/or Twig template. A Twig template file should be used to define the html code of the full alert. The alert should then be rendered using Handlebar.js or a rendered version should be loaded via Ajax instead of loading only the son data.
Fixing this should probably fix #621 at the same time.
The text was updated successfully, but these errors were encountered: