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

Add js and css urls arguments to Dash.__init__. #302

Closed
T4rk1n opened this issue Jul 24, 2018 · 0 comments
Closed

Add js and css urls arguments to Dash.__init__. #302

T4rk1n opened this issue Jul 24, 2018 · 0 comments
Assignees

Comments

@T4rk1n
Copy link
Contributor

T4rk1n commented Jul 24, 2018

We should add keywords arguments to add javascript urls and stylesheets to the Dash.__init__ instead of relying on app.scripts.append_scripts and app.css.append_css.

Example:

import dash

app = dash.Dash(
    js_scripts_urls=['https://cdn.google.com/google-analytics.js'],
    css_stylesheet_urls=['https://cdn.bootstrap.com/bootstrap.css']
)

Basically just lists of urls that are added as external_url to the appropriate resources (app.css or app.scripts).

@T4rk1n T4rk1n self-assigned this Jul 24, 2018
@T4rk1n T4rk1n closed this as completed Aug 2, 2018
AnnMarieW pushed a commit to AnnMarieW/dash that referenced this issue Jan 6, 2022
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

1 participant