Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    SOLVED Modal exit button

    Features requests
    2
    3
    413
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Myriam Mira last edited by

      Hi Appdrag team 🙂

      We have feeback from people thinking that when a modal opens, they can't exit it because there is no "x" / close button.
      I know pressing "esc" or clicking outside of it closes it, but I think it would be nice to have a close button at the top right corner for example, for people who are less comfortable with website navigation. 🙂

      Many thanks!

      Joseph Benguira 1 Reply Last reply Reply Quote 0
      • Joseph Benguira
        Joseph Benguira @Myriam Mira last edited by

        @myriam-mira we don't have such feature with our standard modal

        but technically you can add a close button inside your modal and onclick call something like this:

        parent.closeModal();
        

        and in the page that contain your modal you will have to create in a block of code this function

        <script>
            function closeModal(){
                 $(".remodal-wrapper").remove();
                 $(".remodal").remove();
            }
        </script>
        
        M 1 Reply Last reply Reply Quote 0
        • M
          Myriam Mira @Joseph Benguira last edited by Myriam Mira

          @joseph-benguira Hi Joseph, thank you very much!

          I added a title to the modal (which is not mandatory) and it displayed a little 'close' button on the upper-right corner (as well as the modal title of course).

          Maybe it would be nice to move it from the title line, since it is not mandatory, to the modal content?

          Anyway, many thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post