Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkTarget ¶
type LinkTarget string
LinkTarget 链接打开目标类型
const ( LinkTargetSelf LinkTarget = "_self" LinkTargetBlank LinkTarget = "_blank" LinkTargetParent LinkTarget = "_parent" LinkTargetTop LinkTarget = "_top" )
链接打开目标
type TextSnippet ¶
type TextSnippet struct {
Type TextSnippetType `json:"type"` // 类型(默认text)
Text string `json:"text,omitempty"` // 文本
Icon string `json:"icon,omitempty"` // 图标
Link string `json:"link,omitempty"` // 链接
Style TextSnippetStyle `json:"style,omitempty"` // 样式
Target LinkTarget `json:"target,omitempty"` // 目标
}
TextSnippet 文本片段
type TextSnippetStyle ¶
type TextSnippetStyle string
TextSnippetStyle 文本片段样式
const ( TextSnippetStyleSecondary TextSnippetStyle = "secondary" TextSnippetStyleSuccess TextSnippetStyle = "success" TextSnippetStyleWarning TextSnippetStyle = "warning" TextSnippetStyleDanger TextSnippetStyle = "danger" )
文本样式
type TextSnippetType ¶
type TextSnippetType string
TextSnippetType 文本片段类型
const ( TextSnippetTypeText TextSnippetType = "text" // 文本 TextSnippetTypeIcon TextSnippetType = "icon" // 图标 )
文本类型
Click to show internal directories.
Click to hide internal directories.