feat(web/dialog/textarea): add min and max length (#30)

This commit is contained in:
ANTOND.
2025-07-15 21:51:52 +02:00
committed by GitHub
parent 9fbf0222ad
commit 581640c07a
2 changed files with 4 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ const TextareaField: React.FC<Props> = (props) => {
autosize={props.row.autosize}
minRows={props.row.min}
maxRows={props.row.max}
minLength={props.row.minLength}
maxLength={props.row.maxLength}
/>
);
};

View File

@@ -76,4 +76,6 @@ export interface ITextarea extends BaseField<'textarea', string> {
autosize?: boolean;
min?: number;
max?: number;
minLength?: number;
maxLength?: number;
}