Created
September 26, 2017 02:29
-
-
Save travist/891e55771ac5b86c8a4cbb4011a02100 to your computer and use it in GitHub Desktop.
Extend Angular Form Builder
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
var fbScope = angular.element('#form-builder').scope(); | |
fbScope.formComponentGroups.existing = { | |
title: 'Existing Fields', | |
panelClass: 'subgroup-accordion-container', | |
subgroups: {} | |
}; | |
fbScope.formComponentsByGroup.existing = { | |
'firstName': { | |
type: 'textfield', | |
key: 'firstName', | |
label: 'First Name' | |
... | |
... | |
}, | |
'lastName': { | |
type: 'textfield', | |
key: 'lastName', | |
label: 'Last Name' | |
... | |
... | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment