mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56: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}
|
autosize={props.row.autosize}
|
||||||
minRows={props.row.min}
|
minRows={props.row.min}
|
||||||
maxRows={props.row.max}
|
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;
|
autosize?: boolean;
|
||||||
min?: number;
|
min?: number;
|
||||||
max?: number;
|
max?: number;
|
||||||
|
minLength?: number;
|
||||||
|
maxLength?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user