go-app icon indicating copy to clipboard operation
go-app copied to clipboard

how to use web components?

Open ystyle opened this issue 2 years ago • 1 comments

like wired-elements, it a web components ui.

can add hellper method, like this:

app.RawElement("wired-input").attr("placeholder", "Enter name")
app.RawElement("wired-button").attr("title", "Click Me').text("Click Me")

ystyle avatar Sep 13 '21 04:09 ystyle

Hi, Web components are currently not supported. The hack is to use App.Raw and put raw html in.

Whether its full implementation or syntax hack, I have to do some experiences to see what is possible in this area.

maxence-charriere avatar Sep 13 '21 04:09 maxence-charriere