UseIndicatorSet sets both checkbox indicator strings from a reusable group.
(set IndicatorSet)
| 106 | |
| 107 | // UseIndicatorSet sets both checkbox indicator strings from a reusable group. |
| 108 | func UseIndicatorSet(set IndicatorSet) Option { |
| 109 | return option(func(opts *options) { |
| 110 | if set.Unchecked != "" { |
| 111 | opts.indicator.Unchecked = set.Unchecked |
| 112 | } |
| 113 | if set.Checked != "" { |
| 114 | opts.indicator.Checked = set.Checked |
| 115 | } |
| 116 | }) |
| 117 | } |
| 118 | |
| 119 | // LabelGap sets the number of blank cells between the indicator and label. |
| 120 | func LabelGap(cells int) Option { |