Documentation ¶
Index ¶
- type Application
- type Container
- type ContainerCol
- type ContainerRow
- type ContainerText
- type ContainerWindow
- type Element
- func (e *Element[T]) GetAttribute(key string) string
- func (e *Element[T]) ID(id string) T
- func (e *Element[T]) Marshal() string
- func (e *Element[T]) MarshalIndent(prefix string) string
- func (e *Element[T]) OnClick(a *Application, fn func()) T
- func (e *Element[T]) SetAttribute(key string, value string) T
- type ElementButton
- type IBridge
- type IElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(bridge IBridge) *Application
func (*Application) ExecuteGo ¶
func (a *Application) ExecuteGo(s string) error
func (*Application) NewWindow ¶
func (a *Application) NewWindow() *ContainerWindow
type Container ¶
func (*Container[T]) MarshalIndent ¶
type ContainerCol ¶
type ContainerCol struct { *Container[*ContainerCol] }
func Col ¶
func Col(children ...IElement) *ContainerCol
type ContainerRow ¶
type ContainerRow struct { *Container[*ContainerRow] }
func Row ¶
func Row(children ...IElement) *ContainerRow
type ContainerText ¶
type ContainerText struct { *Container[*ContainerText] }
func Text ¶
func Text(s string) *ContainerText
type ContainerWindow ¶
type ContainerWindow struct { *Container[*ContainerWindow] // contains filtered or unexported fields }
func Window ¶
func Window(app *Application, children ...IElement) *ContainerWindow
func (*ContainerWindow) Show ¶
func (w *ContainerWindow) Show() *ContainerWindow
type Element ¶
func (*Element[T]) GetAttribute ¶
func (*Element[T]) MarshalIndent ¶
func (*Element[T]) OnClick ¶
func (e *Element[T]) OnClick(a *Application, fn func()) T
func (*Element[T]) SetAttribute ¶
type ElementButton ¶
type ElementButton struct { *Element[*ElementButton] }
Click to show internal directories.
Click to hide internal directories.