Documentation
¶
Index ¶
- Constants
- func Alert(args ...any) *alert
- func Badge(args ...any) *badge
- func Blockquote(args ...any) *text
- func BulletList(args ...any) mvc.View
- func Button(args ...any) *button
- func ButtonGroup(args ...any) mvc.View
- func ButtonToolbar(args ...any) mvc.View
- func Card(args ...any) *card
- func CardGroup(args ...any) *cardgroup
- func Carousel(id string, args ...any) *carousel
- func CarouselItem(args ...any) *carouselitem
- func CloseButton(args ...any) *button
- func Code(args ...any) *text
- func CodeBlock(args ...any) *codeblock
- func Col(args ...any) *grid
- func Col2(args ...any) *grid
- func Col3(args ...any) *grid
- func Col4(args ...any) *grid
- func Col5(args ...any) *grid
- func Col6(args ...any) *grid
- func Col8(args ...any) *grid
- func Col9(args ...any) *grid
- func Col10(args ...any) *grid
- func Col12(args ...any) *grid
- func Container(args ...any) mvc.View
- func DefinitionList(args ...any) mvc.View
- func Deleted(args ...any) *text
- func Em(args ...any) *text
- func FluidContainer(args ...any) mvc.View
- func Form(name string, args ...any) *form
- func HRule(args ...any) *rule
- func Heading(level int, args ...any) mvc.View
- func Highlighted(args ...any) *text
- func Icon(name string, args ...any) mvc.View
- func IconLink(href string, args ...any) mvc.View
- func Image(href string, args ...any) *img
- func Input(name string, args ...any) *input
- func LeadPara(args ...any) *text
- func Link(href string, args ...any) mvc.View
- func List(args ...any) mvc.View
- func ListGroup(args ...any) mvc.View
- func Markdown(text string) mvc.View
- func MediaControl(args ...any) *mediacontrol
- func Modal(id string, args ...any) *modal
- func NavBar(id string, args ...any) *navbar
- func NavDivider() *navitem
- func NavDropdown(args ...any) *navdropdown
- func NavItem(href string, args ...any) *navitem
- func Offcanvas(id string, args ...any) *offcanvas
- func Option(name, value string) *option
- func OutlineButton(args ...any) *button
- func Para(args ...any) *text
- func PillBadge(args ...any) *badge
- func RangeInput(name string, args ...any) *input
- func Row(args ...any) *grid
- func SearchInput(name string, args ...any) *input
- func SecureInput(name string, args ...any) *input
- func Smaller(args ...any) *text
- func StickyModal(id string, args ...any) *modal
- func StickyOffcanvas(id string, args ...any) *offcanvas
- func Strong(args ...any) *text
- func Table(args ...any) *table
- func TableRow(args ...any) *tablerow
- func Toast(args ...any) *toast
- func ToastGroup(args ...any) *toastgroup
- func UnstyledList(args ...any) mvc.View
- func VButtonGroup(args ...any) mvc.View
- func VRule(args ...any) *rule
- func Video(src string, args ...any) *media
- func WithActive(active bool) mvc.Opt
- func WithActiveToggle() mvc.Opt
- func WithAutoplay() mvc.Opt
- func WithBorder(colors ...Color) mvc.Opt
- func WithColor(color Color) mvc.Opt
- func WithDisabled(disabled bool) mvc.Opt
- func WithFlex(position Position) mvc.Opt
- func WithMinMax(min, max int) mvc.Opt
- func WithModal(id string) mvc.Opt
- func WithOffcanvas(id string) mvc.Opt
- func WithOffcanvasScroll() mvc.Opt
- func WithPlaceholder(placeholder string) mvc.Opt
- func WithPosition(position Position) mvc.Opt
- func WithRowHover() mvc.Opt
- func WithSize(size Size) mvc.Opt
- func WithStripedColumns() mvc.Opt
- func WithStripedRows() mvc.Opt
- func WithSubmit() mvc.Opt
- func WithTheme(color Color) mvc.Opt
- func WithToggle() mvc.Opt
- func WithoutBorder() mvc.Opt
- func WithoutControls() mvc.Opt
- func WithoutFullscreen() mvc.Opt
- func WithoutKeyboardControls() mvc.Opt
- func WithoutRowHover() mvc.Opt
- func YouTube(id string, args ...any) *media
- type Color
- type DataView
- type Position
- type Size
Constants ¶
View Source
const ( EventMediaPlayPause = "media-playpause" EventMediaStop = "media-stop" EventMediaSeek = "media-seek" EventMediaTime = "media-time" )
View Source
const ( // All border positions BorderAll = Top | Bottom | Start | End // All margin positions MarginAll = Top | Bottom | Start | End // All padding positions PaddingAll = Top | Bottom | Start | End // All Offcanvas positions OffcanvasAll = Start | End | Top | Bottom NavbarAll = Top | Bottom )
View Source
const ( ViewAccordion = "mvc-bs-accordion" ViewAccordionItem = "mvc-bs-accordionitem" ViewAlert = "mvc-bs-alert" ViewBadge = "mvc-bs-badge" ViewButton = "mvc-bs-button" ViewButtonGroup = "mvc-bs-buttongroup" ViewButtonToolbar = "mvc-bs-buttontoolbar" ViewCard = "mvc-bs-card" ViewCardGroup = "mvc-bs-cardgroup" ViewCarousel = "mvc-bs-carousel" ViewCarouselItem = "mvc-bs-carouselitem" ViewCheckboxGroup = "mvc-bs-checkboxgroup" ViewCodeBlock = "mvc-bs-codeblock" ViewContainer = "mvc-bs-container" ViewDefinitionList = "mvc-bs-deflist" ViewForm = "mvc-bs-form" ViewGrid = "mvc-bs-grid" ViewHeading = "mvc-bs-heading" ViewIcon = "mvc-bs-icon" ViewImage = "mvc-bs-img" ViewInput = "mvc-bs-input" ViewInputGroup = "mvc-bs-inputgroup" ViewLink = "mvc-bs-link" ViewList = "mvc-bs-list" ViewListGroup = "mvc-bs-listgroup" ViewMarkdown = "mvc-bs-markdown" ViewModal = "mvc-bs-modal" ViewMedia = "mvc-bs-media" ViewMediaControl = "mvc-bs-mediacontrol" ViewOffcanvas = "mvc-bs-offcanvas" ViewPagination = "mvc-bs-pagination" ViewPaginationItem = "mvc-bs-paginationitem" ViewProgress = "mvc-bs-progress" ViewRadioGroup = "mvc-bs-radiogroup" ViewRule = "mvc-bs-rule" ViewSelect = "mvc-bs-select" ViewTable = "mvc-bs-table" ViewTableRow = "mvc-bs-tablerow" ViewText = "mvc-bs-text" ViewToast = "mvc-bs-toast" ViewToastGroup = "mvc-bs-toastgroup" )
The view names for Bootstrap components
Variables ¶
This section is empty.
Functions ¶
func Blockquote ¶
func Blockquote(args ...any) *text
func BulletList ¶
func ButtonGroup ¶ added in v0.0.2
func ButtonToolbar ¶ added in v0.0.2
func CarouselItem ¶
func CarouselItem(args ...any) *carouselitem
func CloseButton ¶ added in v0.0.2
func CloseButton(args ...any) *button
func DefinitionList ¶
func FluidContainer ¶
func Highlighted ¶
func Highlighted(args ...any) *text
func MediaControl ¶ added in v0.0.2
func MediaControl(args ...any) *mediacontrol
func NavDivider ¶
func NavDivider() *navitem
func NavDropdown ¶
func NavDropdown(args ...any) *navdropdown
func OutlineButton ¶ added in v0.0.2
func OutlineButton(args ...any) *button
func RangeInput ¶ added in v0.0.2
func SearchInput ¶
func SecureInput ¶ added in v0.0.2
func StickyModal ¶ added in v0.0.2
func StickyOffcanvas ¶ added in v0.0.2
func ToastGroup ¶ added in v0.0.2
func ToastGroup(args ...any) *toastgroup
func UnstyledList ¶
func VButtonGroup ¶ added in v0.0.2
func WithActive ¶
WithActive adds an active attribute to a view
func WithActiveToggle ¶
WithActiveToggle adds an active attribute to a view, and allows for toggling of the state
func WithAutoplay ¶
func WithBorder ¶
func WithDisabled ¶
WithDisabled adds a disabled attribute to a view
func WithMinMax ¶ added in v0.0.2
Range inputs can set a minimum and maximum value
func WithModal ¶ added in v0.0.2
WithModal returns an option which configures a button to open the modal with the given ID
func WithOffcanvas ¶ added in v0.0.2
WithOffcanvas returns an option which configures a button to open the offcanvas with the given ID
func WithOffcanvasScroll ¶ added in v0.0.2
Use WithOffcanvasScroll to enable <body> scrolling.
func WithPlaceholder ¶
func WithPosition ¶
func WithRowHover ¶ added in v0.0.2
func WithStripedColumns ¶ added in v0.0.2
func WithStripedRows ¶ added in v0.0.2
func WithSubmit ¶ added in v0.0.2
func WithToggle ¶ added in v0.0.2
func WithoutBorder ¶
func WithoutControls ¶
func WithoutFullscreen ¶
func WithoutKeyboardControls ¶
func WithoutRowHover ¶ added in v0.0.2
Types ¶
type Color ¶
type Color string
Color defines the color for components and backgrounds
const ( Transparent Color = "" Primary Color = "primary" PrimarySubtle Color = "primary-subtle" Secondary Color = "secondary" SecondarySubtle Color = "secondary-subtle" Success Color = "success" SuccessSubtle Color = "success-subtle" Danger Color = "danger" DangerSubtle Color = "danger-subtle" Warning Color = "warning" WarningSubtle Color = "warning-subtle" Info Color = "info" InfoSubtle Color = "info-subtle" Light Color = "light" LightSubtle Color = "light-subtle" Dark Color = "dark" DarkSubtle Color = "dark-subtle" White Color = "white" Black Color = "black" )
type DataView ¶ added in v0.0.2
type DataView interface {
Value() any
}
Return the value associated with the view
Source Files
¶
Click to show internal directories.
Click to hide internal directories.