Open jcvitug opened 3 years ago
Hi Jethro
Thanks for this, looks amazing stuff. Really like that controllers are proving valuable.
I think you have hit a limitation of the current version of the engine. We don't (at the moment) support background colours, along with borders, padding and margins on inline components. It's just complex for multiline scenarios, leading, partial lines etc.
However, if it works consistently for you, the you could add a class name to your bound td and then make the span a block.
<td class='notes' on-databound='parsed-note' >
</td>
And with your css
td.notes p>span {
display:block;
}
This would force every inner p>span to be a block which might cause an issue, but would at least support the background colours.
I will add the span block styles to the backlog, but it might be a while.
The reports I'm generating requires me to parse through an html string with inline CSS styles. I tried achieving this by parsing through the string after the data is bound to the table cell and storing it as a component, then adding it to the contents of the table cell.
Template
Controller
Example of an html string stored as a note to parse
The problem is that the inline CSS seems to be ignored. Desired outcome
Is there a way to do this with the css included?