Hi All,
I’m developing on mobile devices, since the subrow opn/close icon is too small on 4.7’’ display I must listen for item click to open and close subview, how can I do it? I need something like isBranchOpen method, is there for subviews? Or can I make default icon larger?
Thank you
Hi,
(a) It possible to change a size of row ( through js code ) and size of an icon ( through CSS ), so you can have large icons in the datatable.
https://webix.com/snippet/9a800eab
(b) There is onItemClick event on the datatable, which will provide native click event as one of the arguments
like isBranchOpen method
there is onSubViewOpen event but I’m not sure how it will help in your case
https://docs.webix.com/api__link__ui.treetable_onsubviewopen_event.html
To open|close subview you can use openSub API
https://docs.webix.com/api__ui.datatable_opensub.html
I forgot to tell you I’m using common.subrow(obj, common) in tempalte column can I change the icon size of that template?
columns: [{
id: "orderid",
header: "ordine",
fillspace: true,
css: {
'color': 'green',
'font-size': '18px !important'
},
template: function (obj, common) {
return common.subrow(obj, common) + "<div>Ordine nr. " + obj.ordineid + "</div><div>del " + webix.i18n.dateFormatStr(obj.dtaordine) + "</div>";
}
}]
Thanks a lot maksim.
Do you have any method to check if the subview is open or close ? How I can know that ?
var isSubOpen = !!$$(TABLE_ID).getItem(ROW_ID).$subopen