-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
Add borderPadding (top, right, bottom, left) configuration for Box-like primitives (TextView, Table, etc.) so padding inside the border can be set via YAML. tview provides SetBorderPadding.
Background
Discovered while planning a tview presentation demo implementation via tviewyaml. The Table and Code TextView slides use SetBorderPadding(1, 1, 2, 0) and similar for layout.
Demo Usage
Table and Code TextView use SetBorderPadding; not in Primitive config.
Proposed Approach
- Add
borderPadding: [top, right, bottom, left]to Primitive (or shorthand for uniform padding) - Apply in
ApplyPropertiesfor any primitive that implementsSetBorderPadding(Box interface) - Support both 4-element list and single-value uniform padding
Relevant Files
config/types.go– addborderPaddingbuilder/properties.go– apply to Box-like primitivesdocs/tview-coverage.md– document once implemented
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels