• 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-CalendarExt3Agenda

Scheduled Pinned Locked Moved Utilities
192 Posts 27 Posters 211.8k Views 29 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.
  • M Offline
    MMRIZE @htilburgs
    last edited by Jun 12, 2024, 6:54 AM

    @htilburgs
    You can give instanceId for each instance. Then you can specify CSS selector with that instanceId.

    /* config/config.js */
    module: 'MMM-CalendarExt3Agenda',
    position: 'top_left',
    config: {
      instanceId: 'mymodule1',
      ...
    
    /* css/custom.css */
    .CX3A_mymodule1 .agenda { // You can select a specific instance like this.
      display: none;
    }
    

    f09c5d43-5fe6-4f1c-ab85-e7d638146b28-image.png

    1 Reply Last reply Reply Quote 0
    • M Offline
      MMRIZE
      last edited by MMRIZE Jun 12, 2024, 7:03 AM Jun 12, 2024, 7:01 AM

      @htilburgs
      But I’m sorry, I forgot to implement that feature until now. :D.(nobody found it was not implemented )I fix it now. You can update the module and use that instanceId selector. Sorry again. :D

      H 2 Replies Last reply Jun 12, 2024, 8:11 AM Reply Quote 0
      • H Offline
        htilburgs @MMRIZE
        last edited by Jun 12, 2024, 8:11 AM

        @MMRIZE
        I didn’t see it either in the documentation, my mistake. Thanks for the quick reply and fix. I’ll try when I’m at home.

        (still trying to learn JS, but not afraid to ask) ☺

        1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @htilburgs
          last edited by sdetweil Jun 12, 2024, 12:34 PM Jun 12, 2024, 11:05 AM

          @htilburgs if you have 2 instance and want different css behavior, then you need to add more entries to custom.css using another selector prefix

          you can add a fake name to the classes property (at same level as module and position) and use that name instead of .CX3A.
          note the dot in front means classname

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          H 1 Reply Last reply Jun 12, 2024, 12:03 PM Reply Quote 0
          • H Offline
            htilburgs @sdetweil
            last edited by Jun 12, 2024, 12:03 PM

            @sdetweil thanks Sam for the extra explanation.

            (still trying to learn JS, but not afraid to ask) ☺

            S 1 Reply Last reply Jun 12, 2024, 1:56 PM Reply Quote 0
            • S Away
              sdetweil @htilburgs
              last edited by sdetweil Jun 12, 2024, 1:57 PM Jun 12, 2024, 1:56 PM

              @htilburgs so an example

              in the second instance of agenda

              add

                classes:"agenda2",
              

              after the

                module:"MMM-CalendarExt3Agenda",
              

              and in the css
              copy all the .CX3A settings you have
              and add

              .agenda2 
              

              and a space after .agenda2
              as the start of the line w .CX3A

              .agenda2 .CX3A ....
              

              on all the newly duplicated lines
              leave out the ones you don’t want on the second instance of course

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              H 1 Reply Last reply Jun 13, 2024, 5:23 PM Reply Quote 0
              • H Offline
                htilburgs @MMRIZE
                last edited by Jun 13, 2024, 5:22 PM

                @MMRIZE I’ve tried, but no luck

                (still trying to learn JS, but not afraid to ask) ☺

                1 Reply Last reply Reply Quote 0
                • H Offline
                  htilburgs @sdetweil
                  last edited by htilburgs Jun 13, 2024, 5:54 PM Jun 13, 2024, 5:23 PM

                  @sdetweil Yes! This works. Thanks

                  (still trying to learn JS, but not afraid to ask) ☺

                  1 Reply Last reply Reply Quote 1
                  • D Offline
                    danny607 @ffingers6
                    last edited by Sep 7, 2024, 11:12 PM

                    @ffingers6 how do you get that view? can you post out the config.js and or relevant module JS thanks.

                    M 1 Reply Last reply Sep 8, 2024, 7:54 AM Reply Quote 0
                    • M Offline
                      MMRIZE @danny607
                      last edited by Sep 8, 2024, 7:54 AM

                      @danny607
                      https://forum.magicmirror.builders/topic/16976/mmm-calendarext3agenda/152?_=1725781945711

                      1 Reply Last reply Reply Quote 0
                      • M MMRIZE referenced this topic on Sep 8, 2024, 7:54 AM
                      • 1
                      • 2
                      • 15
                      • 16
                      • 17
                      • 18
                      • 19
                      • 20
                      • 17 / 20
                      • 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