MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / getCheckboxIndicator

Function getCheckboxIndicator

packages/core/src/widgets/checkbox.ts:31–36  ·  view source on GitHub ↗
(checked: boolean, disabled?: boolean)

Source from the content-addressed store, hash-verified

29 * @returns Display character for the checkbox
30 */
31export 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.

Callers 2

buildCheckboxTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected