Last active
November 4, 2018 04:23
-
-
Save redgeoff/4f06d73b32699434e796c62ab11b6fe4 to your computer and use it in GitHub Desktop.
MSON Talk: Model Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from 'mson/lib/component'; | |
class MyComponent extends Component { | |
_className = 'MyComponent'; | |
_create(props) { | |
super._create(props); | |
this.set({ | |
schema: { | |
component: 'Form', | |
fields: [ | |
{ name: 'firstName', component: 'TextField', help: 'First Name' }, | |
{ name: 'lastName', component: 'TextField', help: 'Last Name' } | |
] | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment