Added ability to parse fieldset data. Added some basic stylings for content. Cleaned up code.

This commit is contained in:
ajmaley
2018-11-01 20:59:47 -04:00
parent ce0d5d2e1e
commit 6ecf626659
7 changed files with 148 additions and 31 deletions

View File

@@ -1,17 +1,19 @@
import React, { Component, Fragment } from 'react';
import Typography from '@material-ui/core/Typography';
import Layout from '../components/Layout';
import FlameLinkComponentCreations from '../components/FlameLinkComponentCreations';
import flamelinkApp from '../flamelink.js';
class Info extends Component {
constructor() {
super();
global.schemaName = 'martenSchemaDemo';
this.state = {
schemaDetails: '',
}
flamelinkApp.schemas.getFields('martenSchemaDemo', { fields: [ 'title', 'key', 'type', 'gridColumns', 'description' ] })
flamelinkApp.schemas.getFields(global.schemaName, { fields: [ 'title', 'key', 'type', 'gridColumns', 'description', 'options' ] })
.then(result => this.setState({
schemaDetails: result
}))
@@ -27,7 +29,7 @@ class Info extends Component {
</Typography>
<Fragment>
<Layout schemaDetails = {this.state.schemaDetails}/>
<FlameLinkComponentCreations schemaDetails = {this.state.schemaDetails}/>
</Fragment>
</div>