Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    calendar_monthly header still showing

    Troubleshooting
    4
    8
    2073
    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.
    • Mykle1
      Mykle1 Project Sponsor Module Developer last edited by

      This is from the config directions of the module
      showHeader This allows you to turn on or off the header on the calendar. The header consists of the month and year.
      true - Other option is false.

      {
                      	module: 'calendar_monthly',
                      	position: 'top_left',
                      	config: {
                              showHeader: 'false',
      			cssStyle: 'block', // block, clean, custom, (slate is for no mirror)
      			updateDelay: 5 // 5 secs default
                      }
                  	},
      

      However, even with the showHeader set to false, I still have a one with the month and year showing.
      Any ideas?

      broberg 1 Reply Last reply Reply Quote 0
      • broberg
        broberg Project Sponsor @Mykle1 last edited by

        @Mykle1 when handling false/true I don’t think you are supposed to use ’ ’ around it.
        Should be handled like numbers.

        Mykle1 1 Reply Last reply Reply Quote 2
        • Mykle1
          Mykle1 Project Sponsor Module Developer @broberg last edited by Mykle1

          @broberg said in calendar_monthly header still showing:

          when handling false/true I don’t think you are supposed to use ’ ’ around it.
          Should be handled like numbers.

          Well, I’m an idiot! Thanks bro. I’ll change that right now.

          That did the trick. 👏🏼

          cowboysdude strawberry 3.141 2 Replies Last reply Reply Quote 0
          • cowboysdude
            cowboysdude Project Sponsor Module Developer @Mykle1 last edited by

            @Mykle1

            Yes true and false in that case are used as a boolean so you don’t use ’ ’ or " " 🙂

            
            Very often, in programming, you will need a data type that can only have one of two values, like
            
            YES / NO
            ON / OFF
            TRUE / FALSE
            For this, JavaScript has a Boolean data type. It can only take the values true or false.
            
            
            

            I had to learn that too 🙂

            1 Reply Last reply Reply Quote 1
            • strawberry 3.141
              strawberry 3.141 Project Sponsor Module Developer @Mykle1 last edited by strawberry 3.141

              @Mykle1 In case you want to know why:

              'false' is a string and a string always represents the boolean true, so 'test', 'true' and 'false' all become true it doesn’t matter what the content of the string is.

              Mykle1 1 Reply Last reply Reply Quote 1
              • Mykle1
                Mykle1 Project Sponsor Module Developer @strawberry 3.141 last edited by Mykle1

                @strawberry-3.141 said in calendar_monthly header still showing:

                @Mykle1 In case you want to know why:
                ‘false’ is a string and a string always represents the boolean true, so ‘test’, ‘true’ and ‘false’ all become true it doesn’t matter what the content of the string is.

                So, the single quotes ' are what make it a string? Meaning, whatever is inside single quotes is considered a string?
                And if that is so, then what is the word true or false without the quotes called? A value? A parameter?

                Obviously, I’m still confused, but thank you for the lesson.

                strawberry 3.141 1 Reply Last reply Reply Quote 0
                • strawberry 3.141
                  strawberry 3.141 Project Sponsor Module Developer @Mykle1 last edited by

                  @Mykle1 everything in single or double quotes is a string, string is a type for text.

                  There are multiple types:

                  • object {}
                  • array []
                  • number 2, -17 and 3.14
                  • string "I am a string" and 'me too'
                  • boolean true or false
                  Mykle1 1 Reply Last reply Reply Quote 1
                  • Mykle1
                    Mykle1 Project Sponsor Module Developer @strawberry 3.141 last edited by

                    @strawberry-3.141 said in calendar_monthly header still showing:

                    everything in single or double quotes is a string, string is a type for text.

                    Ok, thank you. I do appreciate the information. Some of it is starting to make sense. I’ve learned quite a bit in the short time that I’ve been here.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy