@@ -171,10 +171,12 @@ Item {
171 property var model: []
171 property var model: []
172 property bool hasAttributes: {
172 property bool hasAttributes: {
173 var attributes = components["attributes"];
173 var attributes = components["attributes"];
174− var hasAttributesFlag = attributes != undefined;
174+ var hasAttributesFlag = (attributes != undefined) && attributes["field"];
175 // TODO: we should get num of attributes from components
175 // TODO: we should get num of attributes from components
176 if (hasAttributesFlag) {
176 if (hasAttributesFlag) {
177+ if (attributes["max-count"]) {
177− numOfAttributes = 3;
178+ numOfAttributes = attributes["max-count"];
179 return hasAttributesFlag
181 return hasAttributesFlag