// templui component drawer - version: v0.84.0 installed by templui v0.84.0 package drawer import "git.jmbit.de/jmb/scanfile/server/web/templui/utils" type Position string const ( PositionTop Position = "top" PositionRight Position = "right" PositionBottom Position = "bottom" PositionLeft Position = "left" ) type TriggerProps struct { ID string Class string Attributes templ.Attributes For string // ID of the drawer to trigger } type ContentProps struct { ID string Class string Attributes templ.Attributes Position Position InitialOpen bool } type HeaderProps struct { ID string Class string Attributes templ.Attributes } type FooterProps struct { ID string Class string Attributes templ.Attributes } type TitleProps struct { ID string Class string Attributes templ.Attributes } type DescriptionProps struct { ID string Class string Attributes templ.Attributes } type CloseProps struct { ID string Class string Attributes templ.Attributes For string // ID of the drawer to close (optional, defaults to closest drawer) } templ Trigger(props ...TriggerProps) { {{ var p TriggerProps }} if len(props) > 0 { {{ p = props[0] }} }
{ children... }
} templ Footer(props ...FooterProps) { {{ var p FooterProps }} if len(props) > 0 { {{ p = props[0] }} }