os-js / osjs-gui

OS.js GUI Module
https://manual.os-js.org/v3/
Other
18 stars 10 forks source link

Add a table #5

Open RossComputerGuy opened 5 years ago

RossComputerGuy commented 5 years ago

Having a dedicated table component would be nice.

andersevenrud commented 5 years ago

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']
            })
RossComputerGuy commented 5 years ago

Yeah, that'll be good but could there be support for the filter buttons on the header?04.12.2018, 14:16, "Anders Evenrud" notifications@github.com: 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'] })

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

andersevenrud commented 5 years ago

Sure, that could be added.