Template:Popover

From neox4t wiki
Revision as of 05:56, 17 March 2023 by >Andre
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template can be used to display a popup container of text and/or images while hovering over or clicking a button. Attributes:

  • heading - change the heading of the popup, defaults to "Information".
  • button - change the text of the button, defaults to "File:Neox4t.svg".
  • trigger - values "click", "focus" or "hover", defaults to "hover" on desktop, "focus" on mobile. "hover" isn't available on mobile.
  • color - sets the color for this component, values "default", "primary", "secondary", "success", "danger", "warning", "info", "light", "dark", "white" , defaults to "light".
  • placement - values "top", "right", "bottom", "left", defaults to "right" on desktop, "top" on mobile. Neither "left" nor "right" are available on mobile.
  • size - change the size of the button, values "xs", "sm", "md", "lg", defaults to "md".

Code:

{{popover|heading=Image|[[File:Fido-example10.gif]]}}

Produces:

File:Neox4t.svgFile:Neox4t.svg