I am unable to find info on how to add an icon image to a button in StablexUI:
UIBuilder.create(Button, {
right : 0,
top : 100,
widthPt: 10,
h: 40,
text : 'Save',
id:"saveRowButton"+itemsCounter,
formatColor: '0xFFFFFF',
align: "center,middle",
ico: Assets.getBitmapData("assets/img/save_filled_50.png"),
skinName : "removeItem",
})
I tried using ico: bitmapFromAssets but I get an error. I can’t find an example on how to do this. Thanks in advance for your help.