Editor: Custom Template and Checkbox
Editor: Custom Template and Checkbox
I have a table with a large number of columns that are rendered with checkbox.
The editor dialog becomes so long and does not fix on the screen. So, I have decided to use template and put several of the checkbox on a line.
Now, is there anyway to display the checkbox before the label? for several checkbox on the same line with the label before the box, it is difficult to see which label is for which box.
Also, it here a way to get rid of the Visual Studio's invalid HTML5 warnings from using the custom tag <editor-field name=""/>? I wished it is a simple tag like <span data-editorfield="name"></span>.
NOTE: Using Bootstrap
This question has an accepted answers - jump to answer
Answers
Report a bug to the VS team ;-). The custom tag is valid HTML5. However, I can see that the warning would be annoying and I doubt it will be changed in VS. I'll take a look at the options for using an attribute.
Can you mock up an example of what you mean based on this example. The checkboxes are shown before the label for the checkbox itself, although not for the field as a whole.
Allan
Thanks Allan, I will try it and get back to you soon.
Quick update on this topic. Editor 1.6.2 will support template insertion through
data-editor-template
attributes which can be attached to the elements where you want the fields to appear.The existing functionality of a custom tag is also supported, so either option can be used.
Allan