Skip to content

Commit b2270e2

Browse files
committed
Basic support for tabarray
JSON Form had sidebar tab arrays since bootstrap 2 had it, bootstrap 3 don't so we start of by implementing "ordinary tabs"
1 parent 6f88867 commit b2270e2

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

dist/bootstrap-decorator.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/bootstrap-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h3>Schema</h3>
6464
function TestCtrl($scope){
6565
$scope.person = {
6666
favorite: 'NaN',
67-
arraytest2: ["foo","bar","foo"]
67+
arraytest2: ["foo","bar","foo"]
6868
};
6969

7070
$scope.schema = {
@@ -186,7 +186,7 @@ <h3>Schema</h3>
186186
$scope.form = [
187187
{
188188
key: "arraytest",
189-
type: "array",
189+
type: "tabarray",
190190
items: [
191191
"arraytest[].nick",
192192
"arraytest[].name"

src/directives/decorators/bootstrap/bootstrap-decorator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ angular.module('schemaForm').config(['schemaFormDecoratorsProvider',function(dec
55
textarea: base+'textarea.html',
66
fieldset: base+'fieldset.html',
77
array: base+'array.html',
8+
tabarray: base+'tabarray.html',
89
tabs: base+'tabs.html',
910
section: base+'section.html',
1011
conditional: base+'section.html',

0 commit comments

Comments
 (0)