Hi
I ve used RibbonGroup and IconMenuButtons for create my generic Toolbar . First I ve create RibbonGroup and I add IconMenuButtons with a forEach to RibbonGroup.
But all icons shows same position !..
In early version Smartclient it s working correctly but new version which I downloaded today and I use but all tollbars was broken .
Working version :
Version v12.1p_2020-04-25 (2020-04-25)
None Working version :
Version v12.1p_2021-05-18 (2021-05-18)
My Toolbar code :
var toolbar = isc.RibbonGroup.create({
ID: "Toolbar_" + Parameters.formName,
showTitle: false,
width: "100%",
numRows: 1,
canUpdate: Parameters._canUpdate,
clickButton : function(buttonName) {
let button = toolbar.controls.find("ID","Toolbar_" + Parameters.formName + "_" + buttonName);
button.click();
}
});
Parameters.items.forEach(function (item,index) {
let imgName = "toolbar_" + item.name
toolbar.addControl(
isc.IconMenuButton.create({
ID: "Toolbar_" + Parameters.formName + "_" + item.name,
title: item.title ,
disabled: item.disable ,
width: 60,
orientation: "vertical",
showMenuIcon: false,
//iconSize: 20,
//largeIconSize:30,
icon: Common.images[imgName],
largeIcon: Common.images[imgName],
click: function () {
item.click();
}
}),index);
});
return toolbar;
I ve used RibbonGroup and IconMenuButtons for create my generic Toolbar . First I ve create RibbonGroup and I add IconMenuButtons with a forEach to RibbonGroup.
But all icons shows same position !..
In early version Smartclient it s working correctly but new version which I downloaded today and I use but all tollbars was broken .
Working version :
Version v12.1p_2020-04-25 (2020-04-25)
None Working version :
Version v12.1p_2021-05-18 (2021-05-18)
My Toolbar code :
var toolbar = isc.RibbonGroup.create({
ID: "Toolbar_" + Parameters.formName,
showTitle: false,
width: "100%",
numRows: 1,
canUpdate: Parameters._canUpdate,
clickButton : function(buttonName) {
let button = toolbar.controls.find("ID","Toolbar_" + Parameters.formName + "_" + buttonName);
button.click();
}
});
Parameters.items.forEach(function (item,index) {
let imgName = "toolbar_" + item.name
toolbar.addControl(
isc.IconMenuButton.create({
ID: "Toolbar_" + Parameters.formName + "_" + item.name,
title: item.title ,
disabled: item.disable ,
width: 60,
orientation: "vertical",
showMenuIcon: false,
//iconSize: 20,
//largeIconSize:30,
icon: Common.images[imgName],
largeIcon: Common.images[imgName],
click: function () {
item.click();
}
}),index);
});
return toolbar;
Comment