Skip to content

Latest commit

 

History

History
83 lines (66 loc) · 2.19 KB

modal.md

File metadata and controls

83 lines (66 loc) · 2.19 KB

Modal

The Modal component is a dialog box/popup window that is displayed on top of the current page.

Please note that it is not 100% compatible with the vector skin. You might be able to notice a slight "wobble" when activating the modal.

See also:

Example usage

<bootstrap_modal text="" [..]>Content of the modal</bootstrap_modal>

Allowed Attributes

The following attributes can be used inside the tag:

class
Adds this string to the class attribute of the component. If you want to add multiple classes, separate them by a space.
color
Sets the color for this component. See bootstrap's color documentation (link below) for more information.

Allowed Values are

  • default
  • primary
  • secondary
  • success
  • danger
  • warning
  • info
  • light
  • dark
  • white
footer
All you supply here will be inserted into the footer area of the modal.
header
All you supply here will be inserted into the header area of the modal.
id
Sets the id of the component to this value. See to it, that it is unique.
size
You can choose a size for your modal. Possible options are:
  • sm
  • md (default)
  • lg
style
Adds this string to the style attribute of the component. If you want to add multiple css styles, separate them by a semicolon.
text
This is a mandatory field.

If you supply text, a button will be generated and used as the trigger for the modal.

If you supply an image tag, it is stripped of any link tags and then be used as the trigger element.

Links

Please, see also the known issues with this component.