Actions
Bug #2092
openWWidget::toggleStyleClass() should manage its state
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/07/2013
Due date:
% Done:
0%
Estimated time:
Description
Hi,
I just wanted to use the WWidget::toggleStyleClass() method, but I wondered why I need the add parameter. I would expected that the toggleStyleClass() was implemented has follows:
void toggleStyleClass(const WString& style)
{
if(hasStyleClass(style))
removeStyleClass(sytle);
else
addStyleClass(style);
}
Why should I manage the state by my own?
Regards,
Stefan
No data to display
Actions