From 819e0210bd143ce5766a278be48acee22fdfedd0 Mon Sep 17 00:00:00 2001 From: bashbunni Date: Wed, 25 Sep 2024 11:28:34 -0700 Subject: [PATCH] wip(docs): proposal outline --- proposal.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 proposal.org diff --git a/proposal.org b/proposal.org new file mode 100644 index 0000000..b78b2e8 --- /dev/null +++ b/proposal.org @@ -0,0 +1,16 @@ +#+title: v2 Proposal + +* Table +** API Changes +The API will change to streamline the experience of working with tables across +the Bubbles and Lip Gloss libraries. +*** Change +- ~type Column, Row~ -> ~[]string~ for better reusability +- ~func (m Model) Columns() []Column~ -> ~func (m Model) Headers(headers []string)~ +- Columns -> Headers +- Header calculations are delegated to Lip Gloss +**** Modifiers +- ~func (m *Model) SetRows(r []Row)~ -> ~func (m *Model) Rows(rows ...[]string)~ +- ~func (m *Model) SetStyles(s Styles)~ -> ~func (m *Model) Styles(s Styles)~ +- ~func (m *Model) Width(w int)~ -> ~func (m *Model) Width(w int)~ +- ~func (m Model) Height() int~ -> ~func (m *Model) Height(h int) *Model~