Changing the label of Button in panel builder 600
Hello,
I am currently using ABB panel builder 600 for develop a project. I would to know how to alternate the label on a button.
For Example:
The label on the button is written 'Start'
When the Button is activated, the label should change to 'Stop'
Awaiting your feedback
Regards,
Mohammad
I am currently using ABB panel builder 600 for develop a project. I would to know how to alternate the label on a button.
For Example:
The label on the button is written 'Start'
When the Button is activated, the label should change to 'Stop'
Awaiting your feedback
Regards,
Mohammad
Answers
Greetings,
Some widgets are composed of many sub widgets. For example, a button is a complex widget composed by a button widget and a label. The structure of widgets can be seen in the ObjectView when the widget is selected.
You can chage the label text via Javascript, but you need to modify Static Optimization from static to dynamic.
Below code you can find how i change the label text with another button click event, you need to change it to your tag change event:
Some widgets are composed of many sub widgets. For example, a button is a complex widget composed by a button widget and a label. The structure of widgets can be seen in the ObjectView when the widget is selected.
You can chage the label text via Javascript, but you need to modify Static Optimization from static to dynamic.
Below code you can find how i change the label text with another button click event, you need to change it to your tag change event:
function BtnStd2_btn_onMouseClick(me, eventInfo)
{
var Status0="status0"
var wgt = page.getWidget('BtnStd1.lbl');
wgt.setProperty("text",Status0);
}
Hope it helps you.
Add new comment