Documentation ¶
Overview ¶
Package component contains individual components that can render themselves as HTML.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewReaction ¶
type NewReaction struct {
ReactableID string
}
NewReaction is a component for adding new reactions to a Reactable with ReactableID id.
func (NewReaction) Render ¶
func (nr NewReaction) Render() []*html.Node
type ReactionsBar ¶
type ReactionsBar struct { Reactions []reactions.Reaction CurrentUser users.User ID string // ID is the reactable ID. }
ReactionsBar is a component next to anything that can be reacted to, with reactable ID. It displays all reactions for that reactable ID, and a NewReaction component for adding new reactions.
func (ReactionsBar) Render ¶
func (r ReactionsBar) Render() []*html.Node
type ReactionsBarInner ¶
type ReactionsBarInner struct { Reactions []reactions.Reaction CurrentUser users.User ReactableID string }
ReactionsBarInner is a static component that displays all reactions, and a NewReaction component with ReactableID for adding new reactions.
func (ReactionsBarInner) Render ¶
func (r ReactionsBarInner) Render() []*html.Node
Click to show internal directories.
Click to hide internal directories.