Skip to content

Add the ability to put a css class #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Add the ability to put a css class #303

wants to merge 1 commit into from

Conversation

zalog
Copy link

@zalog zalog commented May 28, 2013

I have a project where I need to style selectmenu in multiple ways http://ge.tt/4IY1mqh/v/0?c
I hope it helps

I have a project where I need to style selectmenu in multiple ways http://ge.tt/4IY1mqh/v/0?c
I hope it helps
@fnagel
Copy link
Owner

fnagel commented May 28, 2013

Rejected.

We had a feature like this before which have been removed. Please use widget method for this.

@zalog
Copy link
Author

zalog commented May 28, 2013

Sorry, can you give me an example?
This is how I use your plugin right now:
jQuery('SELECT').each(function(k){
var el = jQuery(this);
el.selectmenu({
width: el.data('width'), // here I pass the width when I need it
css: el.data('css') // here I pass the css class when I need it
});
});

@fnagel
Copy link
Owner

fnagel commented May 28, 2013

Just use something like :

myElement.selectmenu("widget").addClass("myCssClass");

@zalog
Copy link
Author

zalog commented May 28, 2013

I see. This is my final code, how it looks?
http://jsfiddle.net/fVg8C/

@fnagel
Copy link
Owner

fnagel commented May 28, 2013

Looks good. Plese note there is a prepared jsFiddle, see #61

And take a look at the upcoming official version of jQuery UI Selectmenu: #140

@zalog
Copy link
Author

zalog commented May 29, 2013

Thanks for your quick feedback 👍
I just noticed a problem on #293 after your commit. Let's move there

@zalog zalog closed this May 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants