This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/frontend/src/utils/modal/modal.md
2019-07-03 11:59:02 +02:00

555 B

Modal Utility

Attribute: uw-modal

Params:

  • data-modal-trigger: string
    Selector for the element that toggles the modal. If trigger element has 'href' attribute the modal will be dynamically loaded from the referenced page
  • data-modal-closeable: boolean
    If the param is present the modal will have a close-icon and can also be closed by clicking anywhere on the overlay

Example usage:

<div uw-modal data-modal-trigger='#trigger' data-modal-closeable>This is the modal content
<div id='trigger'>Click me to open the modal