Welcome!
This community is for professionals and enthusiasts of the Genio platform.
Share your questions and challenges, and help your partners!
How to divide the text label ?
How do I divide the label text to appear in a newline?
I want "pelas/os adolescentes na rádio comunitária" to appear in a new line
I think the solution "just empty out the label text and use the "static text" special control in the form definition" is the canonical answer. We should avoid manual code as much as possible.
Labels are meant to be small titles associated to input fields, not whole questions that are better represented as data than as interface text. The Label pattern does not offer that functionality.
One solution is to work with the css styles to create a class that will provide word-wrap and will force a max-width to the field. The minor details for respecting interface responsiveness to multiple screen sizes are hard to determine, but should be something like:
.multiline-label label {
overflow-wrap: break-word;
max-width: 150px;
}
Then in the form editor you can set the "style" property for those controls. But you will have to tweak things around, especially with the pixel width until you get acceptable results.
Another solution is to just empty out the label text and use the "static text" special control in the form definition. There you can try to control the line-breaks with html br elements. Remember to activate the "html?" option.
For the stylesheet you use the CSS_STYLE manwin of the MVC platform. For the html classname I already said it in the answer, you go to the form editor, select the field, and use the "style" property,
Keep Informed
About the Community
Question tools
Stats
Asked: 23/09/19, 13:59 |
Seen: 1586 times |
Last updated: 09/10/19, 13:36 |
Can you show me where I should put this code