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

Added terms functionality for searching #7

Closed
wants to merge 2 commits into from
Closed

Conversation

frg
Copy link

@frg frg commented Feb 4, 2021

Added the functionality described in #5

@frg
Copy link
Author

frg commented Feb 5, 2021

Matched option term will highlight the entire option and by default will style the test as italics.

image

@frg
Copy link
Author

frg commented Feb 5, 2021

Terms can be assigned to options by assigning the terms property with an array of strings.

VirtualSelect.init({
  ele: '#sample-select',
  options: [
    { label: 'Options 1', value: '1', terms: ['london', 'england'] },
    { label: 'Options 2', value: '2' },
    { label: 'Options 3', value: '3' },
  ],
});

@frg frg closed this Feb 5, 2021
@frg frg deleted the branch sa-si-dev:master February 5, 2021 13:40
@frg frg deleted the master branch February 5, 2021 13:40
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

1 participant