mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
feat(web/dialog/textarea): add min and max length (#30)
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -76,4 +76,6 @@ export interface ITextarea extends BaseField<'textarea', string> {
|
||||
autosize?: boolean;
|
||||
min?: number;
|
||||
max?: number;
|
||||
minLength?: number;
|
||||
maxLength?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user