Source File
compo.go
Belonging Package
github.com/pancsta/cview/tcell-livepage
package tcelllivepageimport (amhlp)// compo renders the tcell grid as a livepage component.type compo struct {lp.Compos *Screen}var _ lp.CompoLiveApi = (*compo)(nil)// Mach implements [lp.CompoLiveApi].func ( *compo) () *am.Machine {return .s.mach}// Render implements [h.Composer].func ( *compo) () h.UI {, := .s.Size()return h.Div().ID(screenID).Class("tcell-screen").TabIndex(0).Aria("label", "terminal").DataSet("cols", strconv.Itoa()).DataSet("rows", strconv.Itoa()).Body(h.Raw(.s.gridHTML()))}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |