@tsed/schema-formio
Version:
Transform Ts.ED Schema & JsonSchema to a valid Formio schema
22 lines (19 loc) • 425 B
text/typescript
import {Component} from "./component.js";
export interface TextareaOpts extends Record<string, any> {
showCharCount?: boolean;
showWordCount?: boolean;
}
/**
* Configure the property as Textarea component.
* @decorator
* @formio
* @property
* @schema
*/
export function Textarea(props: TextareaOpts = {}): PropertyDecorator {
return Component({
autoExpand: false,
...props,
type: "textarea"
});
}