utils

package
v0.0.0-...-932f57c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CloseCustomDialog = "locals.customConfirmationDialog = false"
View Source
const I18nUtilsKey i18n.ModuleKey = "I18nUtilsKey"

Variables

View Source
var Messages_en_US = &Messages{
	OK:     "OK",
	Cancel: "Cancel",
}
View Source
var Messages_ja_JP = &Messages{
	OK:     "OK",
	Cancel: "キャンセル",
}
View Source
var Messages_zh_CN = &Messages{
	OK:     "确定",
	Cancel: "取消",
}

Functions

func ConfirmDialog

func ConfirmDialog(msg string, okAction string, msgr *Messages) h.HTMLComponent

func CustomDialog

func CustomDialog(title h.HTMLComponent, content h.HTMLComponent, okAction string, msgr *Messages) h.HTMLComponent

func DeleteDialog

func DeleteDialog(msg string, okAction string, msgr *Messages) h.HTMLComponent

func Install

func Install(b *presets.Builder)

func ParseTagOption

func ParseTagOption(str string) map[string]string

ParseTagOption parse tag options to hash

Types

type Messages

type Messages struct {
	OK     string
	Cancel string
}

func MustGetMessages

func MustGetMessages(ctx context.Context) *Messages

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL