@tsed/schema-formio
Version:
Transform Ts.ED Schema & JsonSchema to a valid Formio schema
18 lines (17 loc) • 339 B
JavaScript
import { Component } from "./component.js";
/**
* Configure the property as Select component.
* @decorator
* @formio
* @property
* @schema
*/
export function Select(props = {}) {
return Component({
selectThreshold: 0.3,
input: true,
widget: "choicesjs",
...props,
type: "select"
});
}