text

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 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(text *Text)

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

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.

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