@boikom
@boikom
Forum Replies Created
-
AuthorPosts
-
adminKeymaster
Hi,
The accordion is a layout type of component, similar to tabs. It does not have ui virtualization as its purpose is different. For your scenario, we think you will need a custom component or a different type at least.
P.s. please, do not post links to third party websites on the forum as we will need to remove them.
Regards,
PeteradminKeymasterHi Arthur Charnier,
The next version is expected to be released the last week of June.
Best regards,
Dimitar
Smart HTML Elements Team
https://www.htmlelements.comadminKeymasterHello Arthur Charnier,
Thank you for your feedback. This functionality will be available to Smart.Table in the next version of Smart HTML Elements.
Best regards,
Dimitar
Smart HTML Elements Team
https://www.htmlelements.comadminKeymasterHi,
The binding as shown in the online samples and docs is to array. A native JS API such as fetch, or XMLHttpRequest can be used for AJAX calls, and then on load you can bind to Array.
Regards,
Peter
Smart UI Team
https://www.htmlelements.com/adminKeymasterHi,
We do not have built-in API for scrolling in the Accordion. scrollIntoView as a browser API is an option(https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView).
Regards,
Peter
Smart UI Team
https://www.htmlelements.com/adminKeymasterHi,
Whether you can collapse all or expand all items depends on the value of the expandMode property of the Accordion component. In some modes such as the default you, there is always at least one opened Accordion item. You need to set the expandMode to “multiple” in order to expand all or collapse all.
Regards,
Peter
Smart UI Team
https://www.htmlelements.com/adminKeymasterHi,
yes that helped. Thank you a lot!
Best regards,
GerhardadminKeymasterHi Gerhard,
With mapping, you can use:var data = [ {text1: 'abcde', object: {num1: 123}}, {text1: 'abcde', object: {num1: 123}}, {text1: 'abcde', object: {num1: 123}}, {text1: 'abcde', object: {num1: 123}}, {text1: 'abcde', object: {num1: 123}}];Smart('#grid', class { get properties() { return { dataSource: new Smart.DataAdapter({ mapChar: '.', dataSource: data, dataFields: [ {name: 'text1', dataType: 'string'}, {name: 'num1', map: 'object.num1', dataType: 'number'} ] }), columns: [ { label: 'Text 1', dataField: 'text1' }, { label: 'Number', dataField: 'num1' }, ] } } });
Hope this helps.
Regards,
Peter
Smart UI Team
https://www.htmlelements.com/adminKeymasterHi Peter,
thank you! Now I can define it like that. But it doesn’t solve my mapping problem.
https://codepen.io/captaingerhard/pen/WNQLzyQ?editors=0010
Is the attribute ‘map’ wrong, too?
Regards,
GerhardadminKeymasterHi Gerhard,
You can use this:dataSource: new Smart.DataAdapter({ dataSource: data, dataFields: [ {name: 'text1', dataType: 'string'}, {name: 'object', dataType: 'string'} ] }), columns: [ { label: 'Text 1', dataField: 'text1' }, { label: 'Object', dataField: 'object' }, ]
Regards,
Peter
Smart UI Team
https://www.htmlelements.com/adminKeymasterHi,
yeah I followed your suggestion. I tried it without mapping and with mapping. Both doesn’t work.
Here it is without mapping:
https://codepen.io/captaingerhard/pen/ExVGEKW?editors=0010
And here it is with mapping:
https://codepen.io/captaingerhard/pen/WNQLzyQ?editors=0010
Regards,
GerhardadminKeymasterHi Gerhard,
Did you follow my suggestion? Could you share codepen sample which shows how you tried to define a dataAdapter with dataFields mapping?
Regards,
Peter
Smart UI Team
https://www.htmlelements.com/adminKeymasterHi Peter,
defining the dataFields like that didn’t work for me in the Smart.DataAdapter. Even without the mapping. The only way it worked for me wasdataFields: [ 'name:type', 'name:type' ]
But I don’t see a way to do the mapping defining it like that.
Regards,
GerhardadminKeymasterHi Fabio,
We are aware of that column resize behavior in Firefox and we resolved it in the next release of Smart Grid.
Regards,
Peter
Smart UI Team
https://www.htmlelements.com/adminKeymasterHi Gerhard Seemann,
Have you tried it by defining the dataFields array as in our jqxDataAdapter like that { name: …, map: …. } The map field defines the sub property mapping.
Regards,
Peter
Smart UI Team
https://www.htmlelements.com/ -
AuthorPosts