List Info

Thread: Need to add custom attribute to yui button




Need to add custom attribute to yui button
country flaguser name
United States
2008-07-10 00:38:17

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&quot; tabindex=&quot;0";>Search</button>

My requirement is to add a custom attribute 'PN' to generated button
markup.
<button type=";button&quot; tabindex=&quot;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

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )