Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

How do I create two tables with different selected styles? #156

Open
DeaglePC opened this issue Jan 16, 2020 · 1 comment
Open

How do I create two tables with different selected styles? #156

DeaglePC opened this issue Jan 16, 2020 · 1 comment

Comments

@DeaglePC
Copy link

type TableEx struct {
	*tui.Table

	Style string
}

func (t *TableEx) Draw(p *tui.Painter) {
	p.WithStyle(t.Style, func(p *tui.Painter) {
		t.Table.Draw(p)
	})
}

It just make custom table.cell style, but how do i replace the table.cell.selectedstytle?

@DeaglePC
Copy link
Author

and a scrolled table?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant