-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Enhance QueryString in blazor #22388
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
Comments
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
I have created a library called |
I wonder if the @code {
[QueryParameter("q", IsTwoWay=true, ReplaceHistory=true)]
string Query { get; set; }
[QueryParameter(IsTwoWay=true)]
int Page { get; set; }
} Now imagine my search form's input is data bound to the Further imagine I have paging buttons that handle navigating to different pages in my result. Again, just updating the |
@terrajobst This looks good! |
Sometimes we might need to have dynamic name of querystring, that was api to allow that var jobj = JObject.Parse(@"{ "name0" : "value0","name1" : "value1","name2" : "value2" }"); // actually got from RPC
foreach(var prop in jobj.Properties())
navManager.SetQuery(prop.Name,prop.Value); |
Thanks for contacting us. We're moving this issue to the |
That makes sense to. Sadly, it seems the team isn't going to prioritize this 😢 |
@terrajobst I think they have planned alright. It actually pretty solid so there are not much to talk about but I don't think they missed it |
Nice! I just misunderstood the comment from the bot. Please ignore me, I don't know what I'm talking about :-) |
Related querystring work has been completed as tracked in #33338. |
Uh oh!
There was an error while loading. Please reload this page.
I would like blazor to provide better management and handler for querystring of current page url
[FromQuery] attribute for two way binding
It should allow binding to a field and/or property, so that it would always binded with query string with the same name as the property
NavigationManager
Should provide API for URI manipulation and history
Underlyingly should just call
history.pushState
if availableThe text was updated successfully, but these errors were encountered: