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

New component: CategorySearch #5

Closed
siddharthlatest opened this issue Feb 25, 2017 · 1 comment
Closed

New component: CategorySearch #5

siddharthlatest opened this issue Feb 25, 2017 · 1 comment
Assignees
Milestone

Comments

@siddharthlatest
Copy link
Member

siddharthlatest commented Feb 25, 2017

An extension of Data Search component meant to be used in e-commerce search settings.

Component Props

  • componentId String
    component ID.
  • appbaseField String
    DB field to be mapped for the query.
  • categoryField String
    DB field path for finding search results by category.
  • title String [optional]
    title of the component, optional.
  • size Number [optional]
    total suggestions to be displayed, defaults to 10.
  • defaultSuggestions Object Array [optional]
    an array of objects with value as string and label as either string or HTML.
{[
  {"value": "breakfast", "label": {<p><i className="fa-icon">Breakfast</p>}}, 
  {"value": "lunch", "label": {<p><i className="fa-icon">Lunch</p>}}, 
  {"value": "dinner", "label": {<p><i className="fa-icon">Dinner</p>}}
]}
  • defaultSelected String [optional]
    pre-selected text by which search should happen.

showSuggestions prop is always set to be true for this component and not exposed in the props spec.

CSS Styles API

rbc-title-active

For a selected item, there should be a rbc-active class.

Stories

  1. Basic story
  2. With default suggestions applied
  3. with dark theme
  4. Playground.
@siddharthlatest siddharthlatest added this to the v0.1.0 milestone Feb 26, 2017
@metagrover metagrover self-assigned this Feb 27, 2017
@metagrover
Copy link
Contributor

Added here: fdb318a

metagrover added a commit that referenced this issue Dec 29, 2017
Add flow-typed defs for react-redux and react-native
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

No branches or pull requests

2 participants