资源算法React_Visual_Search

React_Visual_Search

2020-02-07 | |  36 |   0 |   0

React_Visual_Search

React Basic Visual Search Library.

Quick Overview

react_visual_search allows to search data by attribute name. Multiple filters can be applied to take broad range of data.

Features:

  • Search Support text,list and date mode.

Getting started

npm install react_visual_search
Or
git clone https://github.com/NikunjPansuriya/React_Visual_Search.gitcd visual_search/

npm install
npm start

Then open http://localhost:8080/ to see demo examples.

Quick Usage :

  • Add style in Your Application.

import 'react_visual_search/libs/css/visual_search.css';
  • Add Visual_Search in Your Application.

import VisualSearch from 'react_visual_search';..
...
onFilter(filters){
 console.log(filters);}render(){  return (    <VisualSearch
      className= "react_visual_search"
      category= {[
        {label: "Name",name:"name",type: "text"},
        {label: "First Name",name:"firstName",type: "text"},
        {label: "Gender", name:"gender",type:"list",options:[{label:"Male",value:"M"},{label:"Female",value:"F"}]},
        {label: "Date of Birth", name:"birthDate",type: "date", options:{format:"DD-MMM-YYYY",mode:"days"}}
      ]}
      onFilter= {this.onFilter}
    />
  );}
....
...

Props

ParameterTypeDefault ValueDescription
classNamestringundefinedclassName for the search element.
removeOnBackspacebooleanfalseon pressing backspace button remove the last item.
filterOptionsbooleanfalseenable search for options dropdown.
removeOnSelectbooleanfalseRemoved selected option from options dropdown.
defaultValuearrayundefinedset initial value in visual search. e.g. [{'name':'name','value': 'test'},{'name':'gender','value': 'M'}]

Supported Types :

  • text

  • list

  • date

    • format: It accepts any Moment.js date format.

    • mode: The default view to display when the picker is shown ('days','month','year').

License

MIT.


上一篇:VisualSearch-TensorFlow-Android

下一篇:VisualSearchZeroShot

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...