mirror of
https://github.com/zhigang1992/react-jsonschema-form.git
synced 2026-05-22 15:55:51 +08:00
Add ui:description and ui:title mechanism to ObjectField. (#619)
This commit is contained in:
committed by
Nicolas Perriault
parent
3df0ab724e
commit
41f68166eb
@@ -66,17 +66,17 @@ class ObjectField extends Component {
|
||||
}
|
||||
return (
|
||||
<fieldset>
|
||||
{title &&
|
||||
{(uiSchema["ui:title"] || title) &&
|
||||
<TitleField
|
||||
id={`${idSchema.$id}__title`}
|
||||
title={title}
|
||||
title={title || uiSchema["ui:title"]}
|
||||
required={required}
|
||||
formContext={formContext}
|
||||
/>}
|
||||
{schema.description &&
|
||||
{(uiSchema["ui:description"] || schema.description) &&
|
||||
<DescriptionField
|
||||
id={`${idSchema.$id}__description`}
|
||||
description={schema.description}
|
||||
description={uiSchema["ui:description"] || schema.description}
|
||||
formContext={formContext}
|
||||
/>}
|
||||
{orderedProperties.map((name, index) => {
|
||||
|
||||
Reference in New Issue
Block a user