4 ms·
Is there an easy way to do represent something like this in Cell: <p>I will say this <em>emphatically</em></p> As far as I can tell, Cell doesn’t permit t
by Pitarou 9y ago
Is there an easy way to do represent something like this in Cell:
<p>I will say this <em>emphatically</em></p>
As far as I can tell, Cell doesn’t permit this. If you have multiple child nodes ($components), none of them can be text nodes, so you have to work around it like this:
<p><span>I will say this </span><em>emphatically</em></p>
Why not do away with the $text keyword entirely, and treat any strings in the $components list as text nodes? So instead of this:
$text: "Buy now!!".
you have this:
$components: ["Buy now!!"],
and instead of this:
$components: [
{$type: "span", $text: "Buy "},
{$type: "em", $text: "now!!},
],
you have this:
$components: [
"Buy ",
{$type: "em", $text: "now!!},
],
- gliechtenstein 9y agoYou'll see how to do this at the end of this section https://github.com/intercellular/tutorial#a-creating-a-simple-element https://github.com/intercellular/tutorial#a-creating-a-simpl... Hope this helps!
- Charles86 9y agoYes everynight someone is ISSUE hacking and really dont give a Care. Lieing is an ISSUE in Paris Texas instruments to an errors agurment with me about mine cash include an Lawsuit dragging mine phone will not let it go tell i give giving me an update on the same day i just updated it resticking mine stroge after i fix it. Report from Charles Lewis Nichols. ROYALIST PROFITABLE PRESIDENTCHARLESLEWISNICHOLS86@HMAIL.COM THEFT HAVE DID THID BEFORE I EVEN ACCEPT THEM LOUD OUT SINCE 2010.