Documentation
¶
Index ¶
Constants ¶
View Source
const JS = `` /* 240-byte string literal not displayed */
JS is a JavaScript function that uses chart.js to render a pie chart.
View Source
const Styles = `
.chartjs-render-monitor {
width: 100%;
}
`
Styles is the component's CSS.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartData ¶
type ChartData struct { Labels []string Datasets []ChartDataset }
type ChartDataset ¶
type ItemLinkComponent ¶
ItemLinkComponent is a wasm component that renders a link to an item.
func (*ItemLinkComponent) Render ¶
func (i *ItemLinkComponent) Render() app.UI
Render renders the item link component.
type PieChart ¶
PieChart is a component that uses chart.js to render a pie chart.
type ScrollingList ¶
type ScrollingList struct { app.Compo Items []ScrollingListItem }
ScrollingList is a wasm component that renders a list of items. Items can be scrolled horizontally. This component uses Bootstrap.
func (*ScrollingList) OnMount ¶
func (l *ScrollingList) OnMount(ctx app.Context)
func (ScrollingList) Render ¶
func (l ScrollingList) Render() app.UI
Render renders the list using the items and Bootstrap.
type ScrollingListItem ¶
type ScrollingListItem struct { app.Compo // Avatar is the component that renders the avatar of the item. // This is optional. Avatar app.UI // Title is the title of the item. Title string // Subtitle is the subtitle of the item. Subtitle string // Actions are the actions that can be performed on the item. // This is optional. Actions app.UI }
ScrollingListItem is a wasm component that renders an item in a scrolling list. This component uses Bootstrap.
func (ScrollingListItem) Render ¶
func (i ScrollingListItem) Render() app.UI
Render renders the item.
Click to show internal directories.
Click to hide internal directories.