BorderTitle sets a title for the border.
(title string, overrun OverrunMode, opts ...cell.Option)
| 97 | |
| 98 | // BorderTitle sets a title for the border. |
| 99 | func BorderTitle(title string, overrun OverrunMode, opts ...cell.Option) BorderOption { |
| 100 | return borderOption(func(bOpts *borderOptions) { |
| 101 | bOpts.title = title |
| 102 | bOpts.titleOM = overrun |
| 103 | bOpts.titleCellOpts = opts |
| 104 | }) |
| 105 | } |
| 106 | |
| 107 | // BorderTitleAlign configures the horizontal alignment for the title. |
| 108 | func BorderTitleAlign(h align.Horizontal) BorderOption { |