tgcomp

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Box create a box container.

View Source
var Button = tcinput.Button

Button create a button and return true if it's clicked.

View Source
var ButtonWithConf = tcinput.ButtonWithConf

ButtonWithConf create a button and return true if it's clicked.

View Source
var Checkbox = tcinput.Checkbox

Checkbox create a checkbox and return true if it's clicked.

View Source
var CheckboxWithConf = tcinput.CheckboxWithConf

CheckboxWithConf create a checkbox and return true if it's clicked.

Code create a code block with syntax highlight.

View Source
var CodeWithConf = tccontent.CodeWithConf

CodeWithConf create a code block with syntax highlight.

View Source
var Column = tclayout.Column

Column create N columns.

View Source
var Column1 = tclayout.Column1

Column create 1 column.

View Source
var Column2 = tclayout.Column2

Column2 create 2 columns.

View Source
var Column3 = tclayout.Column3

Column3 create 3 columns.

View Source
var Datepicker = tcinput.Datepicker

Datepicker create a datepicker and return its selected date.

View Source
var Datetimepicker = tcinput.Datetimepicker

Datetimepicker create a datetimepicker and return its selected datetime.

View Source
var Divider = tccontent.Divider

Divider create a horizontal line.

View Source
var DividerWithID = tccontent.DividerWithID

DividerWithID create a horizontal line with ID.

View Source
var DownloadButton = tcinput.DownloadButton

DownloadButton create a download button component.

View Source
var DownloadButtonWithConf = tcinput.DownloadButtonWithConf

DownloadButtonWithConf create a download button component with a user specific configuration.

View Source
var Echo = tcmisc.Echo

Echo will execute lambda and show the code in the lambda. To use Echo, we need to store the code in advance (usually by embedded).

//go:embed main.go
var code string
// ...
// ok, echo will execute and show `tccontent.Text(c, "hello echo")`
tcmisc.Echo(c, code, func() {
	tccontent.Text(c, "hello echo")
})

// panic, since Echo only parse code line by line
tcmisc.Echo(c, code, func() {tccontent.Text(c, "hello echo")})

// panic, since Echo only parse code that start from caller
myFunc := func() {
	tccontent.Text(c, "hello echo")
}
tcmisc.Echo(c, code, myFunc)
View Source
var EqColumn = tclayout.EqColumn

EqColumn create N columns with same width.

View Source
var EqColumn1 = tclayout.EqColumn1

EqColumn1 create 1 columns with same width.

View Source
var EqColumn2 = tclayout.EqColumn2

EqColumn2 create 2 columns with same width.

View Source
var EqColumn3 = tclayout.EqColumn3

EqColumn3 create 3 columns with same width.

View Source
var EqColumn4 = tclayout.EqColumn4

EqColumn4 create 4 columns with same width.

View Source
var EqColumn5 = tclayout.EqColumn5

EqColumn5 create 5 columns with same width.

View Source
var Expand = tclayout.Expand

Expand create a expandable component.

View Source
var Fileupload = tcinput.Fileupload

Fileupload create a fileupload and return its selected file.

View Source
var Form = tcinput.Form

Form create a form component.

View Source
var Html = tcmisc.Html

Html adds a html component to the container.

View Source
var HtmlWithID = tcmisc.HtmlWithID

HtmlWithID adds a html component to the container with a specific id.

View Source
var Iframe = tcmisc.Iframe

Iframe show a iframe. script is used to allow the iframe to run javascript. (notice that this is not secure)

View Source
var IframeWithID = tcmisc.IframeWithID

IframeWithID create a iframe component with a user specific id. script is used to allow the iframe to run javascript. (notice that this is not secure)

Image show a image.

View Source
var ImageWithConf = tccontent.ImageWithConf

ImageWithConf show a image with a custom configuration.

View Source
var JSON = tcdata.JSON

JSON create a JSON viewer for v.

Latex create a latex component.

View Source
var LatexWithID = tccontent.LatexWithID

LatexWithID create a latex component with a user specific id.

View Source
var LinkWithID = tccontent.LinkWithID

LinkWithID create a link component with a user specific id.

View Source
var Markdown = tccontent.Markdown

Markdown render markdown to html.

View Source
var MarkdownWithID = tccontent.MarkdownWithID

Markdown create a markdown-rendering part with a user-specific id.

View Source
var Message = tcmisc.Message

Message shows a message to the user.

View Source
var MessageDanger = tcmisc.MessageDanger

MessageDanger is a component that displays a message with danger color.

View Source
var MessageInfo = tcmisc.MessageInfo

MessageInfo is a component that displays a message with info color.

View Source
var MessageSuccess = tcmisc.MessageSuccess

MessageSuccess is a component that displays a message with success color.

View Source
var MessageWarning = tcmisc.MessageWarning

MessageWarning is a component that displays a message with warning color.

View Source
var MessageWithConf = tcmisc.MessageWithConf

MessageWithConf shows a message to the user with a specific configuration.

View Source
var NumberFloat64 = tcinput.Number[float64]

Number create a number input and return its value.

View Source
var NumberInt64 = tcinput.Number[int64]

NumberInt64 create a number input and return its value.

View Source
var NumberWithConfFloat64 = tcinput.NumberWithConf[float64]

NumberWithConf create a number input and return its value.

View Source
var NumberWithConfInt64 = tcinput.NumberWithConf[int64]

NumberWithConfInt64 create a number input and return its value.

View Source
var ProgressBar = tcmisc.ProgressBar

ProgressBar shows a progress bar to the user.

View Source
var Radio = tcinput.Radio

Radio create a group of radio items and return its selected value.

View Source
var Select = tcinput.Select

Select create a select dropdown list and return its selected value.

View Source
var Subtitle = tccontent.Subtitle

Subtitle create a subtitle.

View Source
var SubtitleWithID = tccontent.SubtitleWithID

SubtitleWithID create a subtitle component with a user specific id.

Tab create a tab component.

Tab2 create 2 tabs.

Tab3 create 3 tabs.

Tab4 create 4 tabs.

Tab5 create 5 tabs.

View Source
var Table = tcdata.Table

Table create a table by heading(head) and values(table).

Text show a text.

View Source
var TextWithID = tccontent.TextWithID

TextWithID create a text component with a user specific id.

View Source
var Textarea = tcinput.Textarea

Textarea create a textarea and return its value.

View Source
var TextareaWithConf = tcinput.TextareaWithConf

TextareaWithConf create a textarea and return its value.

View Source
var Textbox = tcinput.Textbox

Textbox create a textbox and return its value.

View Source
var TextboxWithConf = tcinput.TextboxWithConf

TextboxWithConf create a textbox and return its value.

View Source
var Timepicker = tcinput.Timepicker

Timepicker create a timepicker and return its selected time.

Title show a title.

View Source
var TitleWithID = tccontent.TitleWithID

TitleWithID create a title component with a user specific id.

Functions

This section is empty.

Types

type ButtonConf

type ButtonConf = tcinput.ButtonConf

ButtonConf store optional conf for Button

type CheckboxConf added in v0.2.2

type CheckboxConf = tcinput.CheckboxConf

CheckboxConf store optional conf for Checkbox

type CodeConf

type CodeConf = tccontent.CodeConf

type DownloadButtonConf

type DownloadButtonConf = tcinput.DownloadButtonConf

type ImageConf

type ImageConf = tccontent.ImageConf

ImageConf is the configuration for the Image component

type MessageConf

type MessageConf = tcmisc.MessageConf

MessageConf is the configuration for the Message component.

type TextareaConf added in v0.2.2

type TextareaConf = tcinput.TextareaConf

TextareaConf store optional conf for Textarea

type TextboxConf

type TextboxConf = tcinput.TextboxConf

TextboxConf store optional conf for Textbox

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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