Closed zabulus closed 9 years ago
I think this is a misunderstanding maybe? .WithoutLabel
means don't use the label element rather than don't show a label at all?
Hm that makes sense. Maybe it should be named WithoutLabelTag? Or maybe add clarification to the documentation. BTW I thought field configuration should specify what generate and not how generate.
I agree that WithoutLabel
is misleading. The xmldoc should make it clear what it does.
I'm hesitant to make a breaking rename change because this code is called from razor views which most people don't compile. We could create an alias name that is easier to understand though (but simply calls WithoutLabel
). We could even mark WithoutLabel
obsolete so people don't use it from now on?
As to what the method should be called. What about WithoutLabelElement
?
Fix according to last comment
Here is a test in DefaultFieldGeneratorTest that fails: