Files
HiveGrid-Wireframes/hivegrid-cloud/apps/web/app/utils/shared/BooleanUtils.ts
T

9 lines
637 B
TypeScript

export type BooleanFormatType = "yesNo" | "trueFalse" | "enabledDisabled" | "onOff" | "activeInactive";
export const BooleanFormats: { name: string; value: BooleanFormatType; labelKey: string }[] = [
{ name: "Yes/No", value: "yesNo", labelKey: "formats.boolean.yesNo" },
{ name: "True/False", value: "trueFalse", labelKey: "formats.boolean.trueFalse" },
{ name: "Enabled/Disabled", value: "enabledDisabled", labelKey: "formats.boolean.enabledDisabled" },
{ name: "On/Off", value: "onOff", labelKey: "formats.boolean.onOff" },
{ name: "Active/Inactive", value: "activeInactive", labelKey: "formats.boolean.activeInactive" },
];