Comments (1)
Thank you for the proposal!
Hi, what do you think to do to support:
or for <style>?
Maybe as already you know, manipulating "<link ...>" elements in a head element are supported by this library.
"<style>" elements are not supported but it can be alternated by "".
Alternatively, you can also add <script> so that it loads in the footer, sometimes we want to quickly add a script or a ready-made library, e.g. "datatables"
Add support for adding "<script>" elements is hard work for me because it will cause numerous side effects.
So I have no plan to add support for adding "<script>" elements at this time.
I appreciate your understanding.
Another idea is to add a constant variable to title,
Yes, this is the request I most receive. :)
I understand so many people request this feature for me, but this means there are so many various versions of those requests.
So I think it's hard to make all those people satisfied with this topic.
Fortunately, adding a constant variable to the title by the user's hand is easy.
One of the examples, you can write a simple Blazor component to do it like this:
@* CustomTitle.razor *@
<Title>@PageName - site name</Title>
@code {
[Parameter] public string PageName {get;set;}
}
After doing that, you can use this your custom component in your Blazor app.
<CustomTitle PageName="Home" />
Above sample code is just one of the examples. There are so many various solutions to do it.
Therefore, the feature adding a constant variable to the title is not planed yet.
Anyway, thanks for many suggestions!
from toolbelt.blazor.headelement.
Related Issues (20)
- After update to 6.0.0 the tab text will not automatically update HOT 1
- Add Meta Element without overwriting the existing one HOT 1
- Can only include one HrefLang tag (cannot implement recommended pattern) HOT 5
- Could not find 'Toolbelt.Head.Title.query' ('Toolbelt' was undefined) but on Blazor WASM and DisableClientScriptAutoInjection = true HOT 4
- Should I reapply <Meta> tags on each page of the app? HOT 1
- System.ObjectDisposedException showing up in Production Logs HOT 2
- [Feature Request] Options to supply Type, Hreflang, Title and other options in Link Element
- [Feature Request] Discriminate <Meta> overrides base on other attributes too HOT 5
- [Bug] 7.1.0 - <meta> content attribute value becomes empty and gets replaced by media attribute which gives unexpected results in browser HOT 8
- Changelogs not found HOT 1
- Allowing multiple og:image elements HOT 1
- Consider falling back on setAttribute when HTMLMetaElement.prototype.media doesn't exist HOT 2
- Performance issue HOT 14
- <Link> creates forece reload HOT 4
- Change Html base tag HOT 2
- [Feature Request] Ability to inject script tag into head element? HOT 7
- [Feature Request] HOT 1
- Unhandled exception in circuit HOT 4
- HeadElement depends on Toolbelt.Blazor.HotKeys? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toolbelt.blazor.headelement.