I want to create something like that :
<ul>
<li>menu1
<ul>
<li>sub-menu1</li>
</ul>
</li>
<li>menu2</li>
</ul>
So i write the following code using WebSharper :
let el =
UL [
LI [
Text "menu1"
UL [
LI [Text "sub-menu1"]
]
]
LI [Text "menu2"]
]
But it says that
UL [
LI [Text "sub-menu1"]
]
should have the type IPagelet
but currently have the type Element
.
Does anyone have an idea on how to put a text + something else under an li element using WebSharper ?
Edit: Just to say that I have a bug on stakc, I can't comment or accepted the answer of @Tarmil...
Strong
), I ended up using Span to wrap the text:[ LI [ Span [ Text "sub-menu1 "]; [ Strong [Text "is awesome" ] ] ] ]
– Nolannolana