Documentation
¶
Overview ¶
Package params carries nekit chat settings through the widget's components. Hosts use it only through nekit.ChatFeature.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature uint8
Feature is a part of the chat UI that can be hidden; hosts use the constants nekit re-exports, such as nekit.ChatTokens, in Chat.Disable.
type Params ¶
type Params struct {
MaxAttachmentSize int
MaxAttachments int
AttachmentTimeout time.Duration
AsideRight bool
Framed bool
ThemeDark css.Theme
ThemeLight css.Theme
Layout css.Layout
GreetingTitle any
GreetingBody any
ID string
// contains filtered or unexported fields
}
Params are the widget settings shared by the nekit chat components. The exported fields mirror the Chat fields of the same name; ID is a random per-widget id set by InitDefault.
func (*Params) InitDefault ¶
func (p *Params) InitDefault()
InitDefault fills zero attachment limits and nil greeting parts with their defaults and assigns a fresh ID.
Click to show internal directories.
Click to hide internal directories.