CreateImageWizard: require max image name length of 100 chars
This commit is contained in:
parent
8c4cc5c472
commit
40f7be170c
2 changed files with 56 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import React from 'react';
|
||||
import componentTypes from '@data-driven-forms/react-form-renderer/component-types';
|
||||
import validatorTypes from '@data-driven-forms/react-form-renderer/validator-types';
|
||||
import StepTemplate from './stepTemplate';
|
||||
|
||||
export default {
|
||||
|
|
@ -20,6 +21,12 @@ export default {
|
|||
type: 'text',
|
||||
label: 'Image name',
|
||||
autoFocus: true,
|
||||
validate: [
|
||||
{
|
||||
type: validatorTypes.MAX_LENGTH,
|
||||
threshold: 100
|
||||
}
|
||||
],
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue