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.

    Font-awesome

    Scheduled Pinned Locked Moved Solved Troubleshooting
    16 Posts 2 Posters 2.9k Views 2 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.
    • B Offline
      bicolorbore586 @sdetweil
      last edited by

      @sdetweil Copied and pasted the code and I get the below 29368d2e-22bc-4a73-9588-cf7df46f6846-image.png

      Questions…
      Do I need to add each persons name to where it says {{p.name}}
      Does it matter where in the .njk code I put the text?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @bicolorbore586
        last edited by sdetweil

        @bicolorbore586 the names are in config.js , see the doc

        where ? no… do u want it on the person

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bicolorbore586 @sdetweil
          last edited by

          @sdetweil Yeah the config.js is all set up.
          I would like it a inn the screen shot you posted where you have
          Cake Icon Steve 25 Nov 50
          Cake Icon Marco 30 Dec 85

          Similar to the calendar, but the birthday cake instead of calendar icon.

          S 3 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @bicolorbore586
            last edited by

            @bicolorbore586 eh? mine shows the cake on each row

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @bicolorbore586
              last edited by

              @bicolorbore586 i just pasted the sample config from the doc into the config.js no changes

              has two names/rows

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @bicolorbore586
                last edited by sdetweil

                @bicolorbore586 I think u said u want it on the row

                then it DOES matter where u put it…

                it has to be on the TABLE ROW
                like my code

                inside the <tr>     ---- row
                is a column <th>   ---- header
                and data for column <td> ---  column data
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  bicolorbore586 @sdetweil
                  last edited by

                  @sdetweil so, I now have the icon in each row, but it fills the name column and shifts the name to the date, date to days and pops the days on the end… (sorry absolute noob at this, trying to move things around, but can’t for the live of me see how to change it).
                  014861f7-aacd-4bfa-8961-5bf028681d21-image.png

                  {% for p in people.slice(0,limit) %}
                  	<tr>
                  
                  {% if p.days == 0 %} {% else %} {% endif %} {% endfor %}
                  Name Date Days
                  {{p.name}} {{p.date}}Today{{p.days}}
                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @bicolorbore586
                    last edited by

                    @bicolorbore586 u didn’t add a column to the table header

                    see my code which has a new th

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      bicolorbore586 @sdetweil
                      last edited by

                      @sdetweil got ya!

                      I hadn’t created the column in the right place.

                      Thanks for your patience and guidance.

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 2 / 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