// templui component carousel - version: main installed by templui v0.71.0 package carousel import ( "fmt" "git.jmbit.de/jmb/scanfile/server/web/templui/components/icon" "git.jmbit.de/jmb/scanfile/server/web/templui/utils" "strconv" ) type Props struct { ID string Class string Attributes templ.Attributes Autoplay bool Interval int Loop bool } type ContentProps struct { ID string Class string Attributes templ.Attributes } type ItemProps struct { ID string Class string Attributes templ.Attributes } type PreviousProps struct { ID string Class string Attributes templ.Attributes } type NextProps struct { ID string Class string Attributes templ.Attributes } type IndicatorsProps struct { ID string Class string Attributes templ.Attributes Count int } templ Carousel(props ...Props) { @Script() {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} }
{ children... }
} templ Content(props ...ContentProps) { {{ var p ContentProps }} if len(props) > 0 { {{ p = props[0] }} }
{ children... }
} templ Item(props ...ItemProps) { {{ var p ItemProps }} if len(props) > 0 { {{ p = props[0] }} }
{ children... }
} templ Previous(props ...PreviousProps) { {{ var p PreviousProps }} if len(props) > 0 { {{ p = props[0] }} } } templ Next(props ...NextProps) { {{ var p NextProps }} if len(props) > 0 { {{ p = props[0] }} } } templ Indicators(props ...IndicatorsProps) { {{ var p IndicatorsProps }} if len(props) > 0 { {{ p = props[0] }} }
for i := 0; i < p.Count; i++ { }
} var handle = templ.NewOnceHandle() templ Script() { @handle.Once() { } }