is there a way to get the attribute value (especially the id) of an element as a string? For instance the following lines result in "()":
field <- UI.new
# set (attr "id") "some text"
on UI.drop field $ \_ -> do
-- Some label to print the attribute value to
label <- getElementById window "labelID"
id <- get (attr "id") field
(element (fromJust label)) # set text (show id)
Since attr
returns a WriteAttr
, get
might not be working. Is there a workaround?
Thanks in advance!
Greetings