-
Notifications
You must be signed in to change notification settings - Fork 273
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Still taking a look at the new list component :)
This time, i realize that there are no methods to return list items :(
Looking also at the tree component, i see that:
- it has a
Child
method, to add children
Line 133 in 33b3263
func (t *Tree) Child(children ...any) *Tree { - it has a
Children
method to return children
Line 290 in 33b3263
func (t *Tree) Children() Children {
On the list side:
- a
Item
method to add item
Line 184 in 33b3263
func (l *List) Item(item any) *List { - a
Items
method to add items
Line 198 in 33b3263
func (l *List) Items(items ...any) *List {
I think both Item
and Items
methods could be combined into a single Item
method (just like Child
in tree does) and Items
should simply returns list items (just like Children
in tree does).
If you're ok with that, i can make a pull request.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request