This commit is contained in:
Anna Bodnia
2017-03-31 18:35:52 +03:00
parent af0088ccca
commit d2e20a72f0
3 changed files with 7 additions and 4 deletions

View File

@@ -168,7 +168,10 @@ class ArrayModel extends Component {
let { required, schema, depth, expandDepth } = this.props
let items = schema.get("items")
return <span>
return <span className="model">
<span className="model-title">
<span className="model-title__text">{ schema.get("title") }</span>
</span>
<Collapse collapsed={ depth > expandDepth } collapsedContent="[...]">
[
<span><Model { ...this.props } schema={ items } required={ false }/></span>