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

Custom bootstrap css #414

Closed
carlhoogstoel opened this issue Nov 28, 2020 · 2 comments
Closed

Custom bootstrap css #414

carlhoogstoel opened this issue Nov 28, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@carlhoogstoel
Copy link

Is there any chance we can get an overload on this to inject our own bootstrap css? We use an updated bootstrap css with custom colors. Or is there another way we haven't discovered yet?:)

setBootstrapCss: function (theme, version) { if (link === undefined) { link = document.createElement('link'); document.head.insertBefore(link, document.head.firstChild); link.type = 'text/css'; link.rel = 'stylesheet'; } if (theme === 'bootstrap') { link.href = "https://stackpath.bootstrapcdn.com/bootstrap/" + version + "/css/bootstrap.min.css"; } else { link.href = "https://stackpath.bootstrapcdn.com/bootswatch/" + version + "/" + theme + "/bootstrap.min.css"; } return true; },

@chanan
Copy link
Owner

chanan commented Nov 28, 2020

Yes that can be added. If you wish to submit a PR that will help! :)

In the meantime, you don't have to use that function at all. Just add your style sheet in the head

@chanan chanan added the enhancement New feature or request label Nov 28, 2020
@carlhoogstoel
Copy link
Author

Ah sweet, will do that then. Sorry I haven't pulled your code otherwise !'d do the pull request. Just started rebuilding our app in Blazor. If your code works out good, i'll happily pull the code and do the PR.

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

No branches or pull requests

2 participants