Documentation ¶
Index ¶
- Variables
- func GetIdentityFromState(ctx app.Context) (identity *saltyim.Identity, err error)
- func GetStateFromState(ctx app.Context) (state *saltyim.State, err error)
- func NavigationUpdate(ctx app.Context)
- func PageBody(pageContent ...app.UI) app.UI
- func SetIdentityToState(ctx app.Context, identity *saltyim.Identity) (err error)
- func SetStateToState(ctx app.Context, state *saltyim.State) (err error)
- type AppUpdateBanner
- type ChatBox
- type ChatMessage
- type Configuration
- type ModalDialog
- type Navigation
- type NewChat
- type SaltyChat
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DesktopMode bool
)
View Source
var DrawerOpen bool
Functions ¶
func GetIdentityFromState ¶
func NavigationUpdate ¶
func PageBody ¶
PageBody applies the navigation, update banner, and demo page layout to the provided pageContent.
func SetIdentityToState ¶
Types ¶
type AppUpdateBanner ¶
AppUpdateBanner prompts the user to update the application when the version changes
func (*AppUpdateBanner) OnAppUpdate ¶
func (d *AppUpdateBanner) OnAppUpdate(ctx app.Context)
func (*AppUpdateBanner) OnMount ¶
func (d *AppUpdateBanner) OnMount(ctx app.Context)
func (*AppUpdateBanner) Render ¶
func (d *AppUpdateBanner) Render() app.UI
type ChatBox ¶
type ChatBox struct { app.Compo base.JsUtil // User is who we're conversing with User string // contains filtered or unexported fields }
func (*ChatBox) UpdateMessages ¶
type ChatMessage ¶
type ChatMessage struct { app.Compo Self bool Message *lextwt.SaltyText // contains filtered or unexported fields }
func (*ChatMessage) OnMount ¶
func (c *ChatMessage) OnMount(ctx app.Context)
func (*ChatMessage) Render ¶
func (c *ChatMessage) Render() app.UI
type Configuration ¶
type Configuration struct { app.Compo base.JsUtil // to support removal Contacts []string // contains filtered or unexported fields }
func (*Configuration) OnMount ¶
func (c *Configuration) OnMount(ctx app.Context)
func (*Configuration) Render ¶
func (c *Configuration) Render() app.UI
type ModalDialog ¶
func (*ModalDialog) Render ¶
func (m *ModalDialog) Render() app.UI
func (*ModalDialog) ShowDialog ¶
func (m *ModalDialog) ShowDialog(title string, msg ...string)
func (*ModalDialog) ShowError ¶
func (m *ModalDialog) ShowError(msg ...string)
type Navigation ¶
type Navigation struct { // contains filtered or unexported fields }
func (*Navigation) HasContact ¶
func (n *Navigation) HasContact(addr string) bool
func (*Navigation) LoadFromStorage ¶
func (n *Navigation) LoadFromStorage(ctx app.Context)
func (*Navigation) OnMount ¶
func (n *Navigation) OnMount(ctx app.Context)
func (*Navigation) Render ¶
func (n *Navigation) Render() app.UI
type SaltyChat ¶
SaltyChat ...
func (*SaltyChat) OnAppInstallChange ¶
func (*SaltyChat) OnPreRender ¶
Click to show internal directories.
Click to hide internal directories.