Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Allow render functions in options to return DOM.#617

Closed
topaxi wants to merge 5 commits into
selectize:masterfrom
topaxi:dom-render
Closed

Allow render functions in options to return DOM.#617
topaxi wants to merge 5 commits into
selectize:masterfrom
topaxi:dom-render

Conversation

@topaxi

@topaxi topaxi commented Nov 12, 2014

Copy link
Copy Markdown
Contributor

This PR allows the functions in the render options "option", "item", "option_create", "optgroup_header", "optgroup" to return DOM nodes instead of plain strings.

This should come in handy, in contexts where we do not have strings but DOM, like in ember.js.

See:
https://github.com/miguelcobain/ember-selectize/blob/master/src/ember.selectize.js#L476
which caused
emberjs/ember.js#5534

I have no idea what I'm going to break with these changes :)

@miguelcobain

Copy link
Copy Markdown
Contributor

@brianreavis what's stoping this from getting merged? Maybe we can help?

@cottrellio

Copy link
Copy Markdown

@brianreavis Any updates? +1

@shishirmk

Copy link
Copy Markdown

+1

1 similar comment
@Ramblurr

Copy link
Copy Markdown

+1

@cottrellio

Copy link
Copy Markdown

@brianreavis Can we please get some attention on this PR? Is there anything preventing you from merging this in? There is a a fairly large group of people wanting this PR to go in because there is an Ember addon depending on this PR.

@yankeeinlondon

Copy link
Copy Markdown

+1

@topaxi

topaxi commented Nov 21, 2015

Copy link
Copy Markdown
Contributor Author

If there's anything left to do, please let me know. If this feature isn't something you want to support, feel free to close this PR.

@joaobarcia

Copy link
Copy Markdown

+1

joallard added a commit that referenced this pull request Jan 3, 2016
@joallard

joallard commented Jan 3, 2016

Copy link
Copy Markdown
Member

Great PR, thanks!

@joallard joallard closed this Jan 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants