Is there a function in purescript-halogen
to select an element by it's id
, or do I need to custom role it (which would seem very strange to me).
I'm reading through the documentation on Pursuit, and I see a selectElement
function in Util
, but nowhere do I see something that lets me select by id
.
I can use getElementById :: ElementId -> NonElementParentNode -> Eff () (Nullable Element)
to get an Element
, but I do not know how to turn this Element
into an HTMLElement
.
The type search feature in Pursuit is also lacking, so I apologize for this naive question.