Template:Popover: Difference between revisions

From neox4t wiki
m (1 revision imported)
m (1 revision imported)
 
(No difference)

Latest revision as of 20:36, 9 September 2023

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