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

Adding Customizable Resultsbox Rows & Customizable Display Results in Input Box #3

Merged
merged 3 commits into from Apr 16, 2019

Conversation

jonmchan
Copy link
Contributor

This PR adds function to be allowed to be passed as the display and also adds a display value option:

  • display (type: String or type: Function)
  • displayValue (type: String or Function)

A function passed to display option is called during generation of each row within the results box. This allows us to add custom code to the results box instead of just a static results value. This can be used for concatenating different result values or adding html formatting.

Display value chooses what return value is returned in the select box. This is especially useful if the function passed to display makes the resultbox text complex.

@jonmchan jonmchan force-pushed the injectable-rows branch 2 times, most recently from 7405b8a to 21b19b4 Compare March 23, 2019 19:52
@aliask
Copy link
Owner

aliask commented Apr 16, 2019

Nice changes, thanks for contributing!

@aliask aliask merged commit 919c0b3 into aliask:master Apr 16, 2019
@jonmchan jonmchan deleted the injectable-rows branch April 17, 2019 19:05
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.

None yet

2 participants