2
要素の属性値(特にid)を文字列として取得する方法はありますか?次の行は、 "()" をもたらす。例えば :Threepenny-GUI:属性値を文字列として取得
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)
attr
はWriteAttr
を返すので、get
は作動されない場合があります。回避策はありますか?
ありがとうございます!
挨拶三文-GUI v0.8.1.0のよう