-
Notifications
You must be signed in to change notification settings - Fork 78
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
How to prepend LabelText with some text #425
Comments
there is a
Perhaps I miunderstand the question. If that's the case, please provide a bit more details using an example. What's the value of DisplayAttribute, and what's the exact desired outcome. |
I don't think customizing BMVC to allow this would be the best solution. It seems like a very custom use case. However, it's not hard to achieve. Check out this question/answer on stackoverflow. |
thank you for help. |
I have:
Html.Bootstrap().FormGroup().TextBoxFor(model => model.SomeProperty).Label()
SomeProperty has DisplayAttribute. I need to prepend Display.Name text with some other text. How can I write custom method (extension method?) to have sth like this:
Html.Bootstrap().FormGroup().TextBoxFor(model => model.SomeProperty).Label().PrependText("some text")
Thanks in advance.
The text was updated successfully, but these errors were encountered: