Load a view from a modalΒΆ

Any view can be loaded in as a modal. This is done throug an AJAX call to a modal view that nests any view into itself. The class modalLoader* triggers a JS eventlistener for the modal loader function. The important data attributes are data-modtalTitle and data-modalView.

  • data-modalView:
    This is the path of the view like normaly anotation in routes and view except dots are replaced with dashes.
  • data-modalTitle:
    Plain and simple the title to be printed in the status bar.

Example:

1
2
3
4
5
 <a class="modalLoader btn btn-primary"
     data-modalView="child-login"
     data-modalTitle="Login">
     Login
 </a>