text

package
v0.20.16 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(text *Text)

Option represents an option that can be used to configure a text panel.

func Description added in v0.13.2

func Description(content string) Option

Description annotates the current visualization with a human-readable description.

func HTML

func HTML(content string) Option

HTML sets the content of the panel, to be rendered as HTML.

func Height

func Height(height string) Option

Height sets the height of the panel, in pixels. Example: "400px".

func Markdown

func Markdown(content string) Option

Markdown sets the content of the panel, to be rendered as markdown.

func Span

func Span(span float32) Option

Span sets the width of the panel, in grid units. Should be a positive number between 1 and 12. Example: 6.

func Transparent added in v0.12.9

func Transparent() Option

Transparent makes the background transparent.

type Text

type Text struct {
	Builder *sdk.Panel
}

Text represents a text panel.

func New

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

New creates a new text panel.

Jump to

Keyboard shortcuts

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