Skip to main content

Search and Top Navigation

#8049 closed bug (fixed)

Opened January 23, 2012 03:55PM UTC

Closed August 29, 2012 02:34PM UTC

toggleClass documentation

Reported by: guettli Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.effects.core Version:
Keywords: Cc:
Blocked by: Blocking:
Description

toggleClass supports a "switch" like jquery. But this is not documented.

jquery-ui docs:

http://jqueryui.com/demos/toggleClass/

jquery:

http://api.jquery.com/toggleClass/

Example usage: highlight, if input contains a value:

$(this).toggleClass('highlight-input', Boolean($(this).val()), "slow");

Attachments (0)
Change History (2)

Changed February 24, 2012 12:04PM UTC by jzaefferer comment:1

component: [meta] ui.docseffects.core
status: newopen

Changed August 29, 2012 02:34PM UTC by scottgonzalez comment:2

resolution: → fixed
status: openclosed

This is done in the new API repo.