go-admin: github.com/GoAdminGroup/go-admin/template/types/form/select Index | Files

package selection

import "github.com/GoAdminGroup/go-admin/template/types/form/select"

Index

Package Files

select.go

type Arg Uses

type Arg interface {
    Type() ArgType
    String() string
    Wrap(string) string
}

type ArgType Uses

type ArgType int
const (
    ArgInt ArgType = iota
    ArgString
    ArgOperation
)

type BaseArg Uses

type BaseArg string

func (BaseArg) String Uses

func (b BaseArg) String() string

func (BaseArg) Wrap Uses

func (b BaseArg) Wrap(s string) string

type Configuration Uses

type Configuration struct {
    AdaptContainerCssClass string                 `json:"adaptContainerCssClass,omitempty"`
    AdaptDropdownCssClass  string                 `json:"adaptDropdownCssClass,omitempty"`
    Ajax                   map[string]interface{} `json:"ajax,omitempty"`
    AllowClear             bool                   `json:"allowClear,omitempty"`
    AmdBase                string                 `json:"amdBase,omitempty"`
    AmdLanguageBase        string                 `json:"amdLanguageBase,omitempty"`
    CloseOnSelect          bool                   `json:"closeOnSelect,omitempty"`
    ContainerCss           map[string]interface{} `json:"containerCss,omitempty"`
    ContainerCssClass      string                 `json:"containerCssClass,omitempty"`
    Data                   Options                `json:"data,omitempty"`
    Debug                  bool                   `json:"debug,omitempty"`
    Disabled               bool                   `json:"disabled,omitempty"`

    DropdownAutoWidth bool                   `json:"dropdownAutoWidth,omitempty"`
    DropdownCss       map[string]interface{} `json:"dropdownCss,omitempty"`
    DropdownCssClass  string                 `json:"dropdownCssClass,omitempty"`
    DropdownParent    string                 `json:"dropdownParent,omitempty"`

    EscapeMarkup  func()      `json:"escapeMarkup,omitempty"`
    InitSelection func()      `json:"initSelection,omitempty"`
    Language      interface{} `json:"language,omitempty"`
    Matcher       func()      `json:"matcher,omitempty"`

    MaximumInputLength      int `json:"maximumInputLength,omitempty"`
    MaximumSelectionLength  int `json:"maximumSelectionLength,omitempty"`
    MinimumInputLength      int `json:"minimumInputLength,omitempty"`
    MinimumResultsForSearch int `json:"minimumResultsForSearch,omitempty"`

    Multiple      bool        `json:"multiple,omitempty"`
    Placeholder   interface{} `json:"placeholder,omitempty"`
    Query         func()      `json:"query,omitempty"`
    SelectOnClose bool        `json:"selectOnClose,omitempty"`
    Sorter        func()      `json:"sorter,omitempty"`
    Tags          bool        `json:"tags,omitempty"`

    TemplateResultFns    []Function
    TemplateResult       string `json:"templateResult,omitempty"`
    TemplateSelectionFns []Function
    TemplateSelection    string `json:"templateSelection,omitempty"`

    Theme             string   `json:"theme,omitempty"`
    Tokenizer         func()   `json:"tokenizer,omitempty"`
    TokenSeparators   []string `json:"tokenSeparators,omitempty"`
    Width             string   `json:"width,omitempty"`
    ScrollAfterSelect bool     `json:"scrollAfterSelect,omitempty"`
}

type Data Uses

type Data struct {
    Results    Options    `json:"results"`
    Pagination Pagination `json:"pagination"`
}

type Function Uses

type Function struct {
    Format string
    Args   []Arg
    Next   *Function
    P      func(f string, args []Arg, next *Function) string
}

func Add Uses

func Add(arg Arg) Function

func AddFront Uses

func AddFront(arg Arg) Function

func If Uses

func If(operation, arg Arg, next *Function) Function

func Return Uses

func Return() Function

type IntArg Uses

type IntArg BaseArg

func (IntArg) Type Uses

func (s IntArg) Type() ArgType

type OperationArg Uses

type OperationArg BaseArg

func (OperationArg) Type Uses

func (s OperationArg) Type() ArgType

type Option Uses

type Option struct {
    ID       interface{} `json:"id"`
    Text     string      `json:"text"`
    Selected bool        `json:"selected,omitempty"`
    Disabled bool        `json:"disabled,omitempty"`
}

type Options Uses

type Options []Option

type Pagination Uses

type Pagination struct {
    More bool `json:"more"`
}

type StringArg Uses

type StringArg BaseArg

func (StringArg) Type Uses

func (s StringArg) Type() ArgType

func (StringArg) Wrap Uses

func (s StringArg) Wrap(ss string) string

Package selection imports 1 packages (graph) and is imported by 4 packages. Updated 2020-03-18. Refresh now. Tools for package owners.