Documentation
¶
Overview ¶
Copyright 2026 Teradata
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package tree provides tree rendering (stub replacement for charm.land/lipgloss/v2/tree).
Index ¶
- func DefaultEnumerator(children Children, index int) string
- func DefaultIndenter(children Children, index int) string
- func RoundedEnumerator(children Children, index int) string
- type Children
- type Enumerator
- type Indenter
- type Node
- type Renderer
- type Tree
- func (t *Tree) Child(items ...interface{}) *Tree
- func (t *Tree) Enumerator(e Enumerator) *Tree
- func (t *Tree) EnumeratorStyle(s lipgloss.Style) *Tree
- func (t *Tree) EnumeratorStyleFunc(fn func(children Children, i int) lipgloss.Style) *Tree
- func (t *Tree) Indenter(i Indenter) *Tree
- func (t *Tree) Item(item interface{}) *Tree
- func (t *Tree) ItemStyle(s lipgloss.Style) *Tree
- func (t *Tree) ItemStyleFunc(fn func(children Children, i int) lipgloss.Style) *Tree
- func (t *Tree) Items(items ...interface{}) *Tree
- func (t *Tree) RootStyle(s lipgloss.Style) *Tree
- func (t *Tree) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultEnumerator ¶
DefaultEnumerator is the default enumerator.
func DefaultIndenter ¶
DefaultIndenter is the default indenter.
func RoundedEnumerator ¶
RoundedEnumerator uses rounded corners.
Types ¶
type Enumerator ¶
Enumerator defines how to enumerate tree items.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node represents a tree node.
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer configures tree rendering.
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
Tree represents a tree structure.
func (*Tree) Enumerator ¶
func (t *Tree) Enumerator(e Enumerator) *Tree
Enumerator sets the enumerator.
func (*Tree) EnumeratorStyle ¶
EnumeratorStyle sets enumerator style.
func (*Tree) EnumeratorStyleFunc ¶
EnumeratorStyleFunc sets enumerator style function.
func (*Tree) ItemStyleFunc ¶
ItemStyleFunc sets item style function.