Documentation
¶
Index ¶
- Constants
- Variables
- func ColWidthToClass(size string, width int) (string, error)
- func NavbarHtml(navData Navbar) string
- func StreamNavbarHtml(qw422016 *qt422016.Writer, navData Navbar)
- func StreamWebpageHTML(qw422016 *qt422016.Writer, pageData Webpage)
- func WebpageHTML(pageData Webpage) string
- func WriteNavbarHtml(qq422016 qtio422016.Writer, navData Navbar)
- func WriteWebpageHTML(qq422016 qtio422016.Writer, pageData Webpage)
- type AlbumCell
- type Alert
- type AlertColored
- type Column
- type Element
- type ElementBase
- type Generic
- type Link
- type Navbar
- type Search
- type Webpage
Constants ¶
View Source
const ( ColSizeXs = "xs" // for phones - screens less than 768px wide ColSizeSm = "sm" // for tablets - screens equal to or greater than 768px wide ColSizeMd = "md" // for small laptops - screens equal to or greater than 992px wide ColSizeLg = "lg" // for laptops and desktops - screens equal to or greater than 1200px wide ColMaxWidth = 12 )
Variables ¶
View Source
var ( ErrWidthTooLarge = errors.New("max width of 12 exceeded") ErrWidthIsNegative = errors.New("width cannot be negative") )
Functions ¶
func NavbarHtml ¶
func StreamNavbarHtml ¶
func StreamWebpageHTML ¶ added in v0.4.0
func WebpageHTML ¶ added in v0.4.0
func WriteNavbarHtml ¶
func WriteNavbarHtml(qq422016 qtio422016.Writer, navData Navbar)
func WriteWebpageHTML ¶ added in v0.4.0
func WriteWebpageHTML(qq422016 qtio422016.Writer, pageData Webpage)
Types ¶
type Alert ¶
type Alert int
type AlertColored ¶
type AlertColored int
const ( PrimaryC AlertColored = iota SecondaryC SuccessC DangerC WarningC InfoC )
func NewAlertColored ¶
func NewAlertColored(idx int) AlertColored
func (AlertColored) Class ¶
func (a AlertColored) Class() string
Class returns the class name of the alert ("Primary", "Secondary", ...).
func (AlertColored) DivHTML ¶ added in v0.4.0
func (a AlertColored) DivHTML(innerHTML string) string
Class returns the class name of the alert ("Primary", "Secondary", ...).
func (AlertColored) String ¶
func (a AlertColored) String() string
Class returns the class name of the alert ("Primary", "Secondary", ...).
type Column ¶ added in v0.4.0
type ElementBase ¶ added in v0.4.0
type Generic ¶ added in v0.4.0
type Generic struct {
ElementBase
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.