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 feature: dynamic icons #158

Merged
merged 3 commits into from
Aug 30, 2015
Merged

Add feature: dynamic icons #158

merged 3 commits into from
Aug 30, 2015

Conversation

shayanelhami
Copy link
Contributor

Allows dynamic icons by supporting function for icon option (in addition to the current "string" option):

someKey: { name: "some name", icon: function (trigger, key, item) { return getIconFromSomewhere(key); } }

@rodneyrehm
Copy link
Contributor

nice! we'll see how this integrates with #151 and #129

@shayanelhami
Copy link
Contributor Author

Thank you. I think this approach frees the library from each project's special needs (some need icons from url, some need it to support regex, in my case I am using this feature to add "tick" support to my context menu selectable items)

bbrala added a commit that referenced this pull request Aug 30, 2015
References:
PR#158
Issue #158
Issue #129
Issue #151
Issue #249
@bbrala bbrala merged commit 8b685ce into swisnl:master Aug 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants