Project

General

Profile

Actions

Bug #2092

open

WWidget::toggleStyleClass() should manage its state

Added by Stefan Ruppert over 10 years ago.

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

Also available in: Atom PDF