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

Add support for optgroup #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

KiwiDB
Copy link

@KiwiDB KiwiDB commented Jun 27, 2014

The code that I've updated adds support for the optgroup tag when rendering the plugin from an inline select tag. I added two new classes (one for the optgroup row and one for sub-options of an optgroup tag) and some basic styling, but you might want to use a different style as a default in your plugin. data-imagesrc and data-description both work for all three types of elements.

I did not minify the code because I don't know what service/settings you use for your plugin so I figured I'd let you handle that.

There's also one typo/bug I fixed. It's on line 105 in my code (101 in yours), a missing > stops the code from working.

Adds support for optgroup tags when rendering the plugin from a select
tag (there's also a bug fix on line 105)
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.

1 participant