You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to have line break in help description?
Following config does not work:
{
"fields": [
{
"label": "Working directory",
"key": "workingDir",
"type": "file",
"help": "Lorem ipsum dolor sit amet.\nVestibulum ante ipsum primis in faucibus."
},
]
}
The text was updated successfully, but these errors were encountered:
This is not possible by default. We don't parse the text as HTML. We just pass the text to react which renders it within a span element.
You could create a workaround where you add your custom CSS which adds the white-space: pre; attribute to the .help CSS class. This is the class that's used on the help span element.
I didn't try this, but I assume in that case your \n character will be interpreted as a new line.
I don't think so. We just pass the config variable on to the html tag in React. If you want to parse the variable as HTML, you need to use the dangerouslySetInnerHTML property.
It could be an option to make this work as the input is coming from devs, not from end-users so you can 'trust' the input. However, I think using the preformatted html tag is a better fit in this case.
Is it possible to have line break in help description?
Following config does not work:
The text was updated successfully, but these errors were encountered: