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

ViewName Selector Inconsistent with other Widgets #2152

Open
ajones15 opened this issue Jan 23, 2018 · 0 comments
Open

ViewName Selector Inconsistent with other Widgets #2152

ajones15 opened this issue Jan 23, 2018 · 0 comments

Comments

@ajones15
Copy link

@foreach (var viewName in Html.GetViewNames("SearchBox", @"(?<viewName>^SearchBox.*)$"))

The filter seems to just look for any name starting with "SearchBox" then literally any characters thanks to the .* . This is inconsistent with other widgets like Navigation View with ViewName selectors like:

@foreach (var viewName in Html.GetViewNames("Navigation", @"NavigationView\.(?<viewName>\w*)$"))

which looks for "NavigationView." then just grabs the next word after as the view name instead of the entire name to be displayed as the option in the select.

A file name of "SearchBox.TestFile.cshtml" will display as "Search box. test file" instead of "Test file" like most other widgets process them. The same filter seems to be applied to Search Results so it's possible that there's a reason for this but it seems odd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants