Ticket Created
over 2 years ago

feature-request: add label and separator to settings.xml

Please add a way to add labels and separators to settings.xml:

1. label is a 1 line, string-only element:

<label title="@String.section1Label"/>

The advantage of having a label is that we don't need to add a fake property, and we can have better user experience, because currently what we can do is something like:

<setting propertyKey="@Properties.s1t" title="@Strings.section1Label">
  <settingConfig type="alphaNumeric" readonly="true"/>
</setting>

But this has an "empty" line (the input) when rendered and we need to add a fake property which also increases code size even more.

2. separator is a 1 line element that separates sections. Optionally it can have text. The use case is that currently when I add a separator I use some string like:
-------- separator --------
But you never really know the amount of "----" you need. Sometimes it's only half screen wide, and sometimes on small screens it's cut to 2 lines:
-------- separator
--------
Having a separator element would fix this.
<separator title="@Strings.title1"/>
where title would be optional.

Probably with a little bit of brainstorming the 2 features could be implemented by adding just 1 "clever" label that gets separator:boolean or some enum to enable some formatting (labelOnly,labelLeft,labelRight,labelCenter):

<label title="@String.section1Label" separator="true"/>
<label title="@String.section1Label" separator="labelCenter"/>