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

Extend table / insert TD - please help

Scheduled Pinned Locked Moved Development
10 Posts 5 Posters 1.1k Views 5 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.
  • C Offline
    Cetax
    last edited by Cetax Jun 6, 2020, 3:06 PM Jun 6, 2020, 2:55 PM

    Hello everybody,
    I have the module MMM-fronius (PV system) here.
    The builder of this module writes the data in a table in a row.
    Can someone help me put the name in a cell and put the data in a cell?

    Tabelle.jpg

    I can hardly deal with JS.
    In line 152 in the code, you can see that

    var row = this.config.singleLine? document.createElement (" span "): document.createElement (" tr ");
    

    I hope you understand what I mean, I want the NAME in a field and the DATA in a field so that I can adjust the whole thing via CSS.

    Who knows JS and tables and would like to help me?
    How do I get that into individual fields?

    Attached is a picture of how it looks.
    Fronius_MM.jpg
    And here is the code: https://pastebin.com/vJkKt29L

    many thanks for your help

    greeting
    Stefan

    A 1 Reply Last reply Dec 18, 2020, 4:50 PM Reply Quote 0
    • C Offline
      c1olli
      last edited by c1olli Dec 18, 2020, 4:08 PM Dec 18, 2020, 4:07 PM

      Hi Stefan,

      I have also since 1 Month the Fronius Inverter and installed the MMM-Fronius, but the text is bad to read. So I like to install your code, but I have no permission to open or download it.
      Can you help me?

      Greetings
      c1olli

      1 Reply Last reply Reply Quote 0
      • A Offline
        ashishtank Module Developer @Cetax
        last edited by Dec 18, 2020, 4:50 PM

        @Cetax Your pastebin is private so others can not access the code. you want to have your data as below ?

        aa50db42-32f9-4783-acf1-690aa137c42f-image.png

        1 Reply Last reply Reply Quote 0
        • C Offline
          c1olli
          last edited by Jan 2, 2021, 2:33 PM

          Is it possible to tell me how it works with the table?
          In that case on the original code.

          A 1 Reply Last reply Jan 2, 2021, 3:17 PM Reply Quote 0
          • A Offline
            ashishtank Module Developer @c1olli
            last edited by Jan 2, 2021, 3:17 PM

            @c1olli Not sure what exactly you are asking.

            1 Reply Last reply Reply Quote 0
            • C Offline
              c1olli
              last edited by Jan 2, 2021, 4:08 PM

              How to get the MMM-Fronius results in a table?
              It would be nicer with the code from @Cetax but at the moment it would be ok for me when I know what I have to change to get the result in a nicer form.

              S 1 Reply Last reply Jan 2, 2021, 5:13 PM Reply Quote 0
              • S Away
                sdetweil @c1olli
                last edited by sdetweil Jan 2, 2021, 5:13 PM Jan 2, 2021, 5:13 PM

                @c1olli the author did not create columns (td) on the row… (tr)

                table
                  th (header row with column labels
                     td, td, td, td (for each column)
                repeat below for each row
                  tr 
                     td, td, td, td (data for each column)
                

                he just appended the strings together for the one value on each row

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                ? 1 Reply Last reply Jan 2, 2021, 6:18 PM Reply Quote 0
                • ? Offline
                  A Former User @sdetweil
                  last edited by Jan 2, 2021, 6:18 PM

                  @sdetweil

                  Why not using div and flex?

                  S 1 Reply Last reply Jan 2, 2021, 6:20 PM Reply Quote 0
                  • S Away
                    sdetweil @Guest
                    last edited by Jan 2, 2021, 6:20 PM

                    @Bugsounet I wasn’t proposing anything… I was answering the question

                    that is how a table looks and the author didn’t use it right…

                    div and flex is a lot more work, but u get a lot of flexibility

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    ? 1 Reply Last reply Jan 2, 2021, 7:18 PM Reply Quote 0
                    • ? Offline
                      A Former User @sdetweil
                      last edited by Jan 2, 2021, 7:18 PM

                      @sdetweil dix and flex is for lazy man like me mouahah

                      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 Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy