• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Modal

Scheduled Pinned Locked Moved System
modaldialogtouch controlvoice control
14 Posts 5 Posters 3.9k Views 4 Watching
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.
  • S Offline
    strawberry 3.141 Project Sponsor Module Developer
    last edited by strawberry 3.141 Nov 28, 2018, 10:57 PM Nov 28, 2018, 10:53 PM

    I tweaked my modal that I’m using in some of my modules. Instead of duplicating this all over the place I created a new module for a single source of truth and so it can also be used by other devs/users.

    [card:fewieden/MMM-Modal]

    Modal and dialog windows with touch, voice and non input support.

    I just started building it so it might still have some bugs.

    Developer Guide

    Please create a github issue if you need help, so I can keep track

    1 Reply Last reply Reply Quote 5
    • C Offline
      cowboysdude Module Developer
      last edited by Nov 29, 2018, 9:45 PM

      0_1543527902424_giphy (1).gif

      1 Reply Last reply Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer
        last edited by May 4, 2020, 6:26 PM

        [1.0.1]

        Fixed

        • Modal positioning
        • Blur on render error

        Added

        • List of depending modules
        • Callback option after render for developers

        Changed

        • ESLint ruleset from airbnb to recommended
        • Moved nunjuck templates in separate directory
        • node versions for travis

        Removed

        • doclet integration

        https://github.com/fewieden/MMM-Modal

        [card:fewieden/MMM-Modal]

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 1
        • S Offline
          skuethe
          last edited by Nov 4, 2020, 10:41 AM

          I really like this module, especially with touch screen usage.
          The implementation is easy but still very powerful.

          F.e. I added support for the following two modules:

          • https://github.com/TeraTech/MMM-WiFiPassword
          • https://github.com/skuethe/MMM-Spotify

          In MMM-Spotify it is used to display account / device selection popups on screen. The available callback payload function makes this work in the first place, as we (of course) need to react on the made user selections :)

          So again, great module, thanks!

          1 Reply Last reply Reply Quote 1
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer
            last edited by Jan 2, 2021, 10:01 AM

            With MMM-ip another module has now integrated the modals. See the full list at https://github.com/fewieden/MMM-Modal/wiki/Depending-Modules

            Please create a github issue if you need help, so I can keep track

            1 Reply Last reply Reply Quote 0
            • S Offline
              strawberry 3.141 Project Sponsor Module Developer
              last edited by Jan 9, 2021, 6:09 PM

              With MMM-soccer another module has now integrated the modals.

              Standings modal

              See the full list at https://github.com/fewieden/MMM-Modal/wiki/Depending-Modules

              Please create a github issue if you need help, so I can keep track

              1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User
                last edited by Oct 15, 2021, 12:29 PM

                This post is deleted!
                S S S 3 Replies Last reply Oct 15, 2021, 1:41 PM Reply Quote 0
                • S Away
                  sdetweil @Guest
                  last edited by Oct 15, 2021, 1:41 PM

                  @hango said in MMM-Modal:

                  template: “templates/MyModal.njk”,

                  I think u need

                  template: "../modulename/templates/MyModal.njk",
                  

                  to make it relative to your module
                  instead of the modal module

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  ? 1 Reply Last reply Oct 15, 2021, 4:44 PM Reply Quote 0
                  • S Offline
                    skuethe @Guest
                    last edited by Oct 15, 2021, 2:35 PM

                    @hango said in MMM-Modal:

                    I make my modal:

                    this.sendNotification("OPEN_MODAL", {
                    	template: "templates/MyModal.njk",
                    	data: {
                    		title: "Test modal",
                    		message: "Test message"
                    	},
                    	options: {
                    		isDialog: true
                    	}
                    });
                    

                    in console I get this:

                    nunjucks.min.js:4 GET http://localhost:8081/modules//modal/templates/modal.njk?s=1634300311396 404 (Not Found)
                    

                    templates/MyModal.njk doesn’t really fit with the error message templates/modal.njk?! Sure you have specified the correct path?
                    Referencing it to within your module path works just fine: template: "templates/MyModal.njk",

                    If this is possible…

                    That seems a bit rude. Just look at the linked modules in this thread which have this implemented successfully.

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User @sdetweil
                      last edited by Oct 15, 2021, 4:44 PM

                      This post is deleted!
                      S 1 Reply Last reply Oct 15, 2021, 6:19 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy