Skip to content
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

Need two options , 'widthClass' and 'selectItemName' #10

Closed
dantesun opened this issue Jun 5, 2013 · 1 comment
Closed

Need two options , 'widthClass' and 'selectItemName' #10

dantesun opened this issue Jun 5, 2013 · 1 comment

Comments

@dantesun
Copy link

dantesun commented Jun 5, 2013

widthClass could be like this:

          if (this.options.widthClass) {
        var widthClass = this.options.widthClass;
        this.$choice.addClass(widthClass);
        this.$choice.find('span').addClass(widthClass);
        this.$drop.addClass(widthClass);
      } else {
        this.$choice.css('width', $el.width() + 'px').find('span').css(
                'width', ($el.width() - 28) + 'px');
        this.$drop.css({
            width : $el.width() + 'px'
        });
    }

And the hard-coded input box's name 'selectItem' should be configurable so that it can be automatically binded by web framework like "Spring MVC".

@wenzhixin
Copy link
Owner

I have added the 'width' option that define the width property of the dropdown list.

Sorry, I don't know how to use the 'selectItemName' option.

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

No branches or pull requests

2 participants