Documentation ¶
Index ¶
Constants ¶
const PageRefCellAlias = -10
PageRefCellAlias is used an alias to request the page reference cell, if any.
Variables ¶
All possible values.
Types holds all possible values.
Functions ¶
func SanitizeID ¶
SanitizeID ensures the ID is not empty and consists of only lowercase alphanumeric characters. If permitLeadingDigits is false, then leading digits are stripped. A list of reserved values can be passed in to disallow specific IDs.
Types ¶
type CellData ¶
type CellData struct { Type Type Disabled bool Dim bool Checked bool //Alignment Enum Primary string Secondary string Tooltip string UnsatisfiedReason string TemplateInfo string InlineTag string }
CellData holds data for creating a cell's visual representation.
type Enum ¶
type Enum byte
Enum specifies how to align an object within its available space.
func (Enum) EnsureValid ¶
EnsureValid ensures this is of a known value.
func (Enum) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Enum) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
type ItemVariant ¶
type ItemVariant int
ItemVariant holds the type of item variant to create.
const ( NoItemVariant ItemVariant = iota ContainerItemVariant AlternateItemVariant )
Possible values for ItemVariant.
type Model ¶
type Model[T RowConstraint[T]] interface { RootRowCount() int RootRows() []T SetRootRows(rows []T) }
type Provider ¶
type Provider[T any] interface { //Model[*Node[T]] //SetTable(table *tree.Node[T]) //todo RootData() []T SetRootData(data []T) DragKey() string //DragSVG() *SVG //DropShouldMoveData(from, to *unison.Table[*Node[T]]) bool //ProcessDropData(from, to *unison.Table[*Node[T]]) //AltDropSupport() *AltDropSupport ItemNames() (singular, plural string) //Headers() []unison.TableColumnHeader[*Node[T]] //SyncHeader(headers []unison.TableColumnHeader[*Node[T]]) ColumnIDs() []int HierarchyColumnID() int ExcessWidthColumnID() int RefKey() string AllTags() []string CellFromCellData() Match(text string) bool CellData(columnID int, data any) }
type RowConstraint ¶
type RowConstraint[T any] interface { comparable }
type RowData ¶
type RowData[T RowConstraint[T]] struct { // contains filtered or unexported fields }
func (*RowData[T]) RootRowCount ¶
func (m *RowData[T]) RootRowCount() int
func (*RowData[T]) SetRootRows ¶
func (m *RowData[T]) SetRootRows(rows []T)
type Type ¶
type Type byte
Type holds the type of table cell.
func (Type) EnsureValid ¶
EnsureValid ensures this is of a known value.
func (Type) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Type) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.