Hi all,
I have created a split button using:
splitBtnObj = new pega.widget.Button(buttonId, { type: "split", menu:
selectId,lazyloadmenu : false});
The generated markup is:
<button type="button" tabindex="0">Search</button>
My requirement is to add a custom attribute 'PN' to generated button
markup.
<button type="button" tabindex="0" PN='xx'>Search</button>
I have tried with ;
splitBtnObj.setAttributeConfig('PN',{},true);
splitBtnObj.set('PN','xx');
alert('splitBtn.get(PN): '+splitBtnObj.get('PN'));
I am able to get value in alert, but my generated button markup is not
getting updated. Any pointers would to achieve this would be of gr8 help.
Thanks,
Dhananjay
.