var index = 0;
function onClickCallBack()
{
//Write your logic here.
//Defining the button with onClick:onClickCallBck.
index +=1;
var btnBasic ={id:"Onbutton", isVisible:true, skin:"sknbtn1", focusSkin:"btnCancel", text:"New Button" + index};
var btnLayout ={containerWeight:100, padding:[5,5,5,5], margin:[10,5,5,5], hExpand:true, vExpand:false, displayText:true};
var btnPSP ={glowEffect:true };
//Creating the button.
var Onbutton1 = new kony.ui.Button(btnBasic, btnLayout, btnPSP);
frmTest.flxMain.add(Onbutton1);
}
function onClickCallBack()
{
//Write your logic here.
//Defining the button with onClick:onClickCallBck.
index +=1;
var btnBasic ={id:"Onbutton", isVisible:true, skin:"sknbtn1", focusSkin:"btnCancel", text:"New Button" + index};
var btnLayout ={containerWeight:100, padding:[5,5,5,5], margin:[10,5,5,5], hExpand:true, vExpand:false, displayText:true};
var btnPSP ={glowEffect:true };
//Creating the button.
var Onbutton1 = new kony.ui.Button(btnBasic, btnLayout, btnPSP);
frmTest.flxMain.add(Onbutton1);
}
0 comments:
Post a Comment