truncate

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Props

type Props struct {
	// ClassName - Class to add to outer span. Optional.
	ClassName string
	// Content - Text to truncate.
	Content string
	// TrailingNumChars - The number of characters displayed in the second half of the truncation. Optional.
	TrailingNumChars int
	// Position - Where the text will be truncated. Optional.
	Position any //  /* "start" | "middle" | "end" */
	// TooltipPosition - Tooltip position. Optional.
	TooltipPosition any //  /* any // TooltipPosition  | "auto" | "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" */
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL