New feature to hide and show options #272

Closed
mkrajew opened this Issue Oct 12, 2012 · 5 comments

Comments

Projects
None yet
3 participants
@mkrajew

mkrajew commented Oct 12, 2012

Per Issue #259
Would appreciate a new feature that would allow "show" and "hide" of individual options.

For instance a workaround to hide an option as the control is now, you need to do this:

$('select option:eq(2)').addClass('hidden'); // add the 'hidden' class to the selectmenu option of index 2
$('select#ddlListB').selectmenu(); // reload the selectmenu

Where it would be clearer to be able to do this:

var index = 2;
$('select#ddlListB').selectmenu('hide', index);

Proposed API:

// hide an individual item
$('select#ddlListB').selectmenu('hide', index);

// show an already hidden item
$('select#ddlListB').selectmenu('show', index);
@demonslord

This comment has been minimized.

Show comment Hide comment
@demonslord

demonslord Feb 21, 2013

Hi, see my changes here:

demonslord/jquery-ui@4e10fe4

Hi, see my changes here:

demonslord/jquery-ui@4e10fe4

@fnagel

This comment has been minimized.

Show comment Hide comment
@fnagel

fnagel Feb 22, 2013

Owner

I will pull this asap. I'm off on holiday tomorrow so plese be patient.
Sorry :-/

Owner

fnagel commented Feb 22, 2013

I will pull this asap. I'm off on holiday tomorrow so plese be patient.
Sorry :-/

@demonslord

This comment has been minimized.

Show comment Hide comment
@demonslord

demonslord Feb 22, 2013

Hey fnagel, no problem ;)

Hey fnagel, no problem ;)

@fnagel

This comment has been minimized.

Show comment Hide comment
@fnagel

fnagel Apr 25, 2013

Owner

I tested your PR and commented it, please take a look!

Owner

fnagel commented Apr 25, 2013

I tested your PR and commented it, please take a look!

@fnagel

This comment has been minimized.

Show comment Hide comment
@fnagel

fnagel May 29, 2013

Owner

Closed. See PR itself: #291

Owner

fnagel commented May 29, 2013

Closed. See PR itself: #291

@fnagel fnagel closed this May 29, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment