This file contains hidden or 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
<Editable> | |
<p>My name is <TextField ... /> and I am <Dropdown options={['awesome', 'awesome', 'awesome'] />.</p> | |
</Editable> |
This file contains hidden or 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
// in constructor iterate over FormWrapper instance this.props.children and decorate "*Field" with <Field> | |
decorateFields = (element) => { | |
const { props: { children } = {} } = element; | |
const { type: { name } = {} } = element; | |
if (typeof element === 'string' || typeof element.type === 'string') return element; | |
//Editable has prop component which is <InlineSelectField> that never gets decorated | |
This file contains hidden or 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
'use strict'; | |
angular | |
.module('schema-form-accordion') | |
.directive('sfAccordion', sfAccordion); | |
function sfAccordion($timeout) { | |
var ddo = { | |
restrict: 'A', | |
require: ['^ngModel', '^accordion', '^form'], |
This file contains hidden or 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
'use strict' | |
const User = use('App/Model/User') | |
class RegisterController { | |
* register (request, response) { | |
console.log('register api'); | |
const user = new User() |
OlderNewer