Skip to content

Commit 6f82d52

Browse files
more edits
1 parent fe0d193 commit 6f82d52

6 files changed

Lines changed: 147 additions & 160 deletions

File tree

src/mm-form/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</head>
4242

4343
<body>
44-
44+
4545
<mm-form id="testForm" unresolved>
4646
<div class="col" span="1">
4747
<mm-input fitparent name="input" placeholder="Type a Number"></mm-input>
@@ -71,7 +71,7 @@
7171

7272

7373
<!-- config via markup -->
74-
<!--
74+
<!--
7575
<mm-form id="testForm" unresolved>
7676
<div class="col" span="1">
7777
<mm-input
@@ -113,11 +113,11 @@
113113
</mm-radio>
114114
<mm-radio>
115115
<label>Blue</label>
116-
</mm-radio>
116+
</mm-radio>
117117
</mm-group>
118118
</div>
119119
</mm-form>
120-
-->
120+
-->
121121

122122
<script>
123123

@@ -133,7 +133,6 @@
133133
'dropdown' : {
134134
validation: 'empty',
135135
parentEle: null,
136-
// errorMsgEle: 'special',
137136
errorMsg: 'You need to select an item',
138137
label: 'Select an Item'
139138
},
@@ -145,7 +144,8 @@
145144
errorMsgEle: null,
146145
errorMsg: 'You need to select \'Red\'',
147146
label: 'Select a Color'
148-
}
147+
},
148+
// 'empty' : {}
149149
};
150150

151151
// data that holds any actual values
@@ -165,8 +165,9 @@
165165
window.addEventListener('WebComponentsReady', function(e) {
166166
var testForm = document.querySelector('#testForm');
167167

168-
// testForm.data = data;
168+
// Ordering!
169169
testForm.config = config;
170+
// testForm.data = data;
170171

171172
testForm.addEventListener('serialize-form', function(e){
172173
console.log('serialize-form', e.detail);

src/mm-form/mm-form.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
-->
77
<link rel="import" href="../../bower_components/polymer/polymer.html"/>
88
<link rel="import" href="../shared/js/validator.html"/>
9+
<link rel="import" href="../shared/js/datautils.html"/>
910
<link rel="import" href="../shared/fonts/fonts.html"/>
1011
<link rel="import" href="../shared/behaviors/lightdomgettable.html"/>
1112
<link rel="import" href="../shared/behaviors/resolvable.html"/>

0 commit comments

Comments
 (0)