Modal.hpp
Wraps a Bootstrap modal.
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2021 Michigan State University MIT Software license; see doc/LICENSE.md
Defines
-
INCLUDE_EMP_PREFAB_MODAL_HPP_GUARD
-
class Modal : public Div
- #include <Modal.hpp>
Use Modal class to add a Bootstrap style pop-up modal to your web app.
Public Functions
-
template<typename T>
inline void AddHeaderContent(T val) Add content to the header section of the modal Content can be of any type
-
template<typename T>
inline void AddBodyContent(T val) Add content to the body section of the modal Content can be of any type
Add content to the footer section of the modal Content can be of any type
-
inline void AddClosingX()
Adds an X button in the upper right corner of the modal so user can close it Should be called after all desired header content is added Best practice is to call this method, unless a close button is added somewhere else in the modal using AddButton()
-
template<typename T>