Documentation ¶
Index ¶
- type Confirm
- type KeyMap
- type Option
- func WithDefaultYes() Option
- func WithDisableOutputResult() Option
- func WithDisplayHelp() Option
- func WithFocusInterval(s string) Option
- func WithFocusIntervalStyle(s *style.Style) Option
- func WithFocusSymbol(s string) Option
- func WithFocusSymbolStyle(s *style.Style) Option
- func WithKeyMap(keyMap KeyMap) Option
- func WithNotice(notice string) Option
- func WithNoticeStyle(style *style.Style) Option
- func WithPrompt(prompt string) Option
- func WithPromptStyle(style *style.Style) Option
- func WithPure() Option
- func WithUnFocusInterval(s string) Option
- func WithUnFocusIntervalStyle(s *style.Style) Option
- func WithUnFocusSymbol(s string) Option
- func WithUnFocusSymbolStyle(s *style.Style) Option
- func WithValueStyle(s *style.Style) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyMap ¶
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
type Option ¶
type Option func(confirm *Confirm)
func WithDefaultYes ¶
func WithDefaultYes() Option
WithDefaultYes the `confirm` default is no, adding this option will turn into yes.
func WithDisableOutputResult ¶
func WithDisableOutputResult() Option
WithDisableOutputResult disable output result
func WithFocusInterval ¶
WithFocusInterval default is theme.DefaultTheme#FocusInterval
func WithFocusIntervalStyle ¶
WithFocusIntervalStyle default is theme.DefaultTheme#FocusIntervalStyle
func WithFocusSymbol ¶
WithFocusSymbol default is theme.DefaultTheme#FocusSymbol
func WithFocusSymbolStyle ¶
WithFocusSymbolStyle default is theme.DefaultTheme#FocusSymbolStyle
func WithNotice ¶
WithNotice replace notice, default is " ( y/N ) ".
func WithNoticeStyle ¶
WithNoticeStyle replace notice style.
func WithPromptStyle ¶
WithPromptStyle change `confirm` default promptStyle.
func WithPure ¶
func WithPure() Option
WithPure do not use any beautification features, any options you customize will be cleared
func WithUnFocusInterval ¶
WithUnFocusInterval default is theme.DefaultTheme#UnFocusInterval
func WithUnFocusIntervalStyle ¶
WithUnFocusIntervalStyle default is theme.DefaultTheme#UnFocusIntervalStyle
func WithUnFocusSymbol ¶
WithUnFocusSymbol default is theme.DefaultTheme#UnFocusSymbol
func WithUnFocusSymbolStyle ¶
WithUnFocusSymbolStyle default is theme.DefaultTheme#UnFocusIntervalStyle