@@ -171,10 +171,12 @@ Item {
171171 property var model: []
172172 property bool hasAttributes: {
173173 var attributes = components["attributes"];
174− var hasAttributesFlag = attributes != undefined;
174+ var hasAttributesFlag = (attributes != undefined) && attributes["field"];
175175 // TODO: we should get num of attributes from components
176176 if (hasAttributesFlag) {
177− numOfAttributes = 3;
177+ if (attributes["max-count"]) {
178+ numOfAttributes = attributes["max-count"];
179+ }
178180 }
179181 return hasAttributesFlag
180182 }