mirror of
https://github.com/strapi/strapi.git
synced 2025-09-15 19:39:06 +00:00
Docs: Update GenericInput storybook documentation
This commit is contained in:
parent
c0005c6915
commit
2fcf7d8603
@ -28,6 +28,9 @@ Description...
|
|||||||
firstname: 'ee',
|
firstname: 'ee',
|
||||||
email: '',
|
email: '',
|
||||||
private: null,
|
private: null,
|
||||||
|
isNullable: null,
|
||||||
|
isActiveByDefault: true,
|
||||||
|
isInactiveByDefault: false
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<ContentLayout>
|
<ContentLayout>
|
||||||
|
@ -69,15 +69,43 @@ const layout = [
|
|||||||
{
|
{
|
||||||
intlLabel: {
|
intlLabel: {
|
||||||
id: 'Auth.form.active.label',
|
id: 'Auth.form.active.label',
|
||||||
defaultMessage: 'Active',
|
defaultMessage: 'Boolean: Nullable',
|
||||||
},
|
},
|
||||||
name: 'isActive',
|
isNullable: true,
|
||||||
|
name: 'isNullable',
|
||||||
type: 'bool',
|
type: 'bool',
|
||||||
size: {
|
size: {
|
||||||
col: 6,
|
col: 2,
|
||||||
xs: 12,
|
xs: 12,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
intlLabel: {
|
||||||
|
id: 'Auth.form.active.label',
|
||||||
|
defaultMessage: 'Boolean: Active by default',
|
||||||
|
},
|
||||||
|
name: 'isActiveByDefault',
|
||||||
|
type: 'bool',
|
||||||
|
size: {
|
||||||
|
col: 2,
|
||||||
|
xs: 12,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
intlLabel: {
|
||||||
|
id: 'Auth.form.inactive.label',
|
||||||
|
defaultMessage: 'Boolean: Inactive by default',
|
||||||
|
},
|
||||||
|
name: 'isInactiveByDefault',
|
||||||
|
type: 'bool',
|
||||||
|
size: {
|
||||||
|
col: 2,
|
||||||
|
xs: 12,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'private',
|
name: 'private',
|
||||||
type: 'checkbox',
|
type: 'checkbox',
|
||||||
@ -93,7 +121,6 @@ const layout = [
|
|||||||
id: 'form.attribute.item.privateField.description',
|
id: 'form.attribute.item.privateField.description',
|
||||||
defaultMessage: 'This field will not show up in the API response',
|
defaultMessage: 'This field will not show up in the API response',
|
||||||
},
|
},
|
||||||
// validations: {},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
intlLabel: { id: 'meal', defaultMessage: 'meal' },
|
intlLabel: { id: 'meal', defaultMessage: 'meal' },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user