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
Custom Modal #105
Comments
Closing this thread as you already introduced PR #106 :-) |
Could you please check the current master and let me know, if it solved your issue? |
Yes, it fix it! :) |
Cool! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I notice that if you want to render a custom template for a button when calling
Drab.Modal.alert/4
from an umbrella app, you have to configure the full application path, because Drab doesn't prefix:templates_path
with the current application directory:so I've modify
lib/drab/config.ex
to read the app name from the configuration and add the right prefix to the template path:Furthermore, I've modified
Drab.Modal.alert/4
to support many different custom templates. Now you can pass the file name of the preferred custom template this way:Try to take a look, then if you like I can PR the branch
The text was updated successfully, but these errors were encountered: