react-autocomplete

WebJar for react-autocomplete

Лицензия

Лицензия

MIT
Категории

Категории

React Взаимодействие с пользователем Веб-фреймворки Auto Библиотеки уровня приложения Code Generators
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

react-autocomplete
Последняя версия

Последняя версия

1.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

react-autocomplete
WebJar for react-autocomplete
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/atlefren/react-autocomplete

Скачать react-autocomplete

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/react-autocomplete/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>react-autocomplete</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/react-autocomplete/
implementation 'org.webjars.bower:react-autocomplete:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.bower/react-autocomplete/
implementation ("org.webjars.bower:react-autocomplete:1.0.2")
'org.webjars.bower:react-autocomplete:jar:1.0.2'
<dependency org="org.webjars.bower" name="react-autocomplete" rev="1.0.2">
  <artifact name="react-autocomplete" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='react-autocomplete', version='1.0.2')
)
libraryDependencies += "org.webjars.bower" % "react-autocomplete" % "1.0.2"
[org.webjars.bower/react-autocomplete "1.0.2"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.webjars.bower : react jar [0.12.2,0.13)
org.webjars.bower : bootstrap jar [3.3.2,3.4)
org.webjars.bower : underscore jar [1.8.2,1.9)

Модули Проекта

Данный проект не имеет модулей.

ReactAutocomplete

An autocomplete-dropdown component for react.js. Based on Bootstrap for styling.

Supports selection using keyboard and mouse.

Usage

  • bower install react-autocomplete
  • Include dist/react-autocomplete.min.js and dist/react-autocomplete.min.css in your page.
  • Do something like:
<Autocomplete 
    select={itemSelected}
    displayAttribute='beerName'
    autocompleteSearch={autocompleteSearch}/>
}
  • where:
    • select is the callback function when the user selects an element
    • displayAttribute is the attribute of each result to display in the list
    • autocompleteSearch is the search function: takes values (POJO) and callback function, callback expects to be called with an array of POJOS
    • extraParams is an optional POJO with extra attributes to the autocompleteSearch function
  • see index.html for example usage

Demo

See http://code.atlefren.net/react-autocomplete/index.html

Версии библиотеки

Версия
1.0.2