Documentation
¶
Index ¶
- Constants
- type C
- type D
- type Dialog
- type InputDialog
- type Menu
- type MenuOption
- type Message
- type MetadataDialog
- type Nav
- type NavButton
- type Notification
- type Selector
- func (p *Selector) Any(items ...SelectorItem) bool
- func (p *Selector) AnyValue(values ...string) bool
- func (p *Selector) Clear()
- func (p *Selector) Clicked(gtx layout.Context) bool
- func (p *Selector) Item() SelectorItem
- func (p *Selector) Items() []SelectorItem
- func (p *Selector) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
- func (p *Selector) Select(items ...SelectorItem)
- func (p *Selector) Value() string
- func (p *Selector) Values() (values []string)
- type SelectorItem
- type Switcher
- type T
- type Widget
Constants ¶
View Source
const ( Success string = "success" Info string = "info" Warn string = "warn" Error string = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type D ¶
type D = layout.Dimensions
type Dialog ¶
type InputDialog ¶
type InputDialog struct {
Title i18n.Key
Body i18n.Key
Hint i18n.Key
Input component.TextField
OnClick func(ok bool)
// contains filtered or unexported fields
}
func (*InputDialog) Layout ¶
func (p *InputDialog) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
type Menu ¶
type Menu struct {
Title i18n.Key
Options []MenuOption
OnClick func(ok bool)
OnAdd func()
Multiple bool
// contains filtered or unexported fields
}
type MenuOption ¶
type MenuOption struct {
Key i18n.Key
Name string
Value string
DescKey i18n.Key
Desc string
Selected bool
// contains filtered or unexported fields
}
func (*MenuOption) Layout ¶
func (p *MenuOption) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
type MetadataDialog ¶
type MetadataDialog struct {
K component.TextField
V component.TextField
OnClick func(ok bool)
// contains filtered or unexported fields
}
func (*MetadataDialog) Layout ¶
func (p *MetadataDialog) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
type NavButton ¶
type NavButton struct {
// contains filtered or unexported fields
}
func NewNavButton ¶
type Notification ¶
type Notification struct {
// contains filtered or unexported fields
}
func NewNotification ¶
func NewNotification(d time.Duration, callback func()) *Notification
func (*Notification) Show ¶
func (p *Notification) Show(message Message)
type Selector ¶
func (*Selector) Any ¶
func (p *Selector) Any(items ...SelectorItem) bool
func (*Selector) Item ¶
func (p *Selector) Item() SelectorItem
func (*Selector) Items ¶
func (p *Selector) Items() []SelectorItem
func (*Selector) Select ¶
func (p *Selector) Select(items ...SelectorItem)
Click to show internal directories.
Click to hide internal directories.