(checked: boolean, disabled?: boolean)
| 29 | * @returns Display character for the checkbox |
| 30 | */ |
| 31 | export function getCheckboxIndicator(checked: boolean, disabled?: boolean): string { |
| 32 | if (disabled) { |
| 33 | return checked ? CHECKBOX_DISABLED_CHECKED : CHECKBOX_DISABLED_UNCHECKED; |
| 34 | } |
| 35 | return checked ? CHECKBOX_CHECKED : CHECKBOX_UNCHECKED; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Build the display text for a checkbox with optional label. |
no outgoing calls
no test coverage detected