text

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(constant *Text)

Option represents an option that can be used to configure a textbox variable.

func Hide

func Hide() Option

Hide ensures that the variable will not be displayed.

func HideLabel

func HideLabel() Option

HideLabel ensures that this variable's label will not be displayed.

func Label

func Label(label string) Option

Label sets the label of the variable.

type Text

type Text struct {
	Builder sdk.TemplateVar
}

Text represents a "textbox" templated variable.

func New

func New(name string, options ...Option) *Text

New creates a new "query" templated variable.

Jump to

Keyboard shortcuts

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