os-js / osjs-gui

OS.js GUI Module

Home Page:https://manual.os-js.org/v3/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a table

RossComputerGuy opened this issue · comments

Having a dedicated table component would be nice.

os js table

I think it will be something like this.

Example usage in this case:

            h(Table, {
              box: {
                grow: 1
              },
              zebra: true,
              columns: ['a', 'b', 'c'],
              rows: [
                ['1', '2', '3'],
                ['1', '2', '3'],
                ['1', '2', '3'],
                ['1', '2', '3'],
                ['1', '2', '3'],
                ['1', '2', '3'],
                ['1', '2', '3']
              ],
              footer: ['x', 'y', 'z']
            })

Sure, that could be added.