wtopts

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	// Styling
	// 256 Colors
	AccentColor    uint8
	TextColor      uint8
	SecondaryColor uint8

	MaxCols int
	MaxRows int
	Style   string
	Loop    bool

	// If you're using Standalone components
	LeftPadding int

	// Checkbox
	DefaultCheckbox []bool

	// Confirm
	DefaultConfirm bool
	Affirmative    string
	Negative       string

	// Number Picker
	DefaultNumber float64
	Decimals      int
	Increment     float64
	Maximum       float64
	Minimum       float64

	// RGB/RGBA Picker
	DefaultRed     uint8
	DefaultGreen   uint8
	DefaultBlue    uint8
	DefaultOpacity uint8

	// Combobox
	CaseSensitive bool

	// Table
	DefaultColLength    int
	ColumnMaxLength     []int
	Spacer              bool
	FirstRowAccentColor bool
}

func DefaultOpts

func DefaultOpts() Opts

func GetOpts

func GetOpts(customOpts ...Opts) Opts

Jump to

Keyboard shortcuts

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