package
0.1.1
Repository: https://github.com/johnsiilver/webgear.git
Documentation: pkg.go.dev

# Packages

Package builder provides a programatic way of building the HTML tree structure in a way that can be more easily read without the documenet structure becoming a right leaning mess, such as: &Doc{ Head: &Head{}, Body: &Body{ Elements: []Element{ &Div{ Elements: []Element{ &Table{ Elements: []TableElement{ &TR{ Elements: []TRElement{ &TD{}, &TD{}, }, }, }, }, }, }, }, }, } With our builder, this becomes b := NewHTML(&Head{}, &Body{}) b.Into(&Div{}) // Adds the div and moves into the div b.Into(&Table{}) // Adds the table and moves into the table b.Into(&TR{}) // Adds the table row and moves into the table row b.Add(&TD{}, &TD{}) // Adds two table role elements, but stays in the row.
No description provided by the author

# Functions

Dynamic wraps a DynamicFunc so that it implements Element.
ExtractEvents extracts an *Events object from an Element.
GetElementID will return the Element's GlobalAttr.ID if it has one.
NewPipeline creates a new Pipeline object.
URLParse returns a *url.URL representation of "s".
Walker walks all elements from the root and returns them on the returned channel, including the root element.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AutoDir Let the browser figure out the text direction, based on the content (only recommended if the text direction is unknown).
No description provided by the author
No description provided by the author
No description provided by the author
ButtonInput creates a button.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EagerILoad loads the IFrame even if it isn't visible yet on the screen.
EmptyString is returned by all Element.Execute() calls.
No description provided by the author
No description provided by the author
No description provided by the author
GetMethod uses the browser's "get" method.
HardWrap specifies the text in the textarea is wrapped (contains newlines) when submitted in a form.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LazyILoad loads the IFrame only when it becomes visible on the screen.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LTRDir is Left-to-right text direction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PostMethod uses the browser's "post" method.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RadioInput creates a radio button.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RTLDir Right-to-left text direction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SoftWrap specifies the text in the textarea is not wrapped when submitted in a form.
No description provided by the author
No description provided by the author
SubmitInput creates a submit button.
No description provided by the author
TextInput takes in text from a keyboard.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

A defines a hyperlink, which is used to link from one page to another.
Base represents an HTML script tag.
Body represents the HTML body.
BR represents line break tag.
Button implements the HTML button tag.
Caption is a table element for use inside a Table tag.
Col is a tag that specifies column properties within a ColGroup.
ColGroup is a table tag that specifies one or more columns in a table for formatting.
Component is for providing custom componenets registered through the javascript window.customElements type.
Div represents a division tag.
Doc represents an HTML 5 document.
Events represents an HTML event that triggers a javascript function.
FieldSet is used to group related elements in a form.
Form represents an HTML form.
GlobalAttr is global attributes tha can be assigned to various elements.
H represents a H1-6 tag.
Head represents an HTML head tag.
I defines a part of text in an alternate voice or mood.
IFrame represents a division tag.
Img details an image to be shown.
Input creates a method of input within a form.
Label element is useful for screen-reader users, because the screen-reader will read out loud the label when the user is focused on the input element.
Legend defines a caption for the FieldSet element.
Li defines an HTML li tag.
Link defines an HTML link tag.
Meta defines an HTML meta tag.
Nav defines an HTML nav tag.
OptGroup is used to group related options in a Select element.
Option defines an option in a select list.
Output is used to represent the result of a calculation.
P tag defines a paragraph.
Pipeline represents a template pipeline.
Script represents an HTML script tag.
No description provided by the author
No description provided by the author
Span tag is an inline container used to mark up a part of a text, or a part of a document.
Style defines an HTML style tag.
Table represents a division tag.
TBody is used to group the body elements in an Table.
TD holds table data inside a TR tag inside a Table tag.
TextArea tag defines a multi-line text input control.
THead is used to group footer content in a table.
TH is a table header for use inside a Table tag.
THead is used to group header content in a table.
A defines a hyperlink, which is used to link from one page to another.
TR is a table row for use inside a Table tag.
Ul defines an HTML ul tag.
Walked is returned by Walker which walks all Elements from some root.

# Interfaces

Attribute provides a custom attribute for a user to provide for custom componenets.
ColGroupElement is a tag that can be included in a ColGroup.
Element represents an object that can render self container HTML 5.
FormElement represents an element within an HTML form.
GearType is an interface only meant to be implemented by *component.Gear.
Initer is a type that requires Init() to be called before using.
No description provided by the author
No description provided by the author
TableElement represents a tag that can be contained inside a Table.
TRElement is an element that can be included in a TR tag.

# Type aliases

AsLink is a a value used in the Link As attribute.
ButtonType describes the kind of button a button tag is.
No description provided by the author
Direction specifies the text direction for the content in an element.
DynamicFunc is a function that uses dynamic server data to return Elements that will be rendered.
EventType represents a browser based event like a click, mouseover, etc...
FormMethod is the method the form will use to submit the form's content.
FormRel specifies the relationship between a linked resource and the current document in a form.
No description provided by the author
IFrameLoad indicates when to load an IFrame's content.
InputType describes the type of input that is being created within a form.
LanguageCode is use to specify the language in use.
Level represents the level of the tag, 1-6.
ListenerType are event types for event listeners (which are different from event handlers).
MediaQuery provides a query to what media is being used.
MediaType is the type of media to use.
No description provided by the author
ReferrerPolicy specifies which referrer to send.
No description provided by the author
No description provided by the author
Sandbox reprsents the HTML sandbox attribute commonly used on iframes.
Sandboxing reprsents all the Sandbox attributes to apply.
Target specifies where to open the linked document.
TextElement is an element that represents text, usually in a value.
THScope is the scope of various table elements.
WrapType specifies how the text in a textarea is to be wrapped when submitted in a form.
YesNo provides a yes or no for an attribute.