UNPKG

@tsed/schema-formio

Version:

Transform Ts.ED Schema & JsonSchema to a valid Formio schema

18 lines (17 loc) 384 B
import { JsonEntityFn } from "@tsed/schema"; import { camelCase } from "change-case"; /** * Group the current property in tabs components. * @decorator * @formio * @property * @schema */ export function Tabs(label) { return JsonEntityFn((store) => { store.schema.customKey("x-formiotabs", { key: camelCase(label), label }); }); }