All Projects → ShoppinPal → Materializecss Autocomplete

ShoppinPal / Materializecss Autocomplete

Licence: mit
Small material design autocomplete library for materializecss

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Materializecss Autocomplete

Jstag
Pure Angular Input Tags project
Stars: ✭ 140 (+1455.56%)
Mutual labels:  autocomplete, angularjs
Electron Boilerplate
An Electron boilerplate project using AngularJS
Stars: ✭ 40 (+344.44%)
Mutual labels:  material, angularjs
Ngautocomplete
Light-weight autocomplete component for Angular.
Stars: ✭ 52 (+477.78%)
Mutual labels:  autocomplete, angularjs
Angular Auto Complete
AngularJS auto complete plugin
Stars: ✭ 27 (+200%)
Mutual labels:  autocomplete, angularjs
Laravel5 Angular Material Starter
Get started with Laravel 5.3 and AngularJS (material)
Stars: ✭ 1,692 (+18700%)
Mutual labels:  material, angularjs
Angular Material Dashboard
Angular admin dashboard with material design
Stars: ✭ 1,321 (+14577.78%)
Mutual labels:  material, angularjs
Massautocomplete
Auto Complete for Angularjs applications with a lot to complete
Stars: ✭ 231 (+2466.67%)
Mutual labels:  autocomplete, angularjs
Md2
Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
Stars: ✭ 389 (+4222.22%)
Mutual labels:  material, autocomplete
Google Maps Autocomplete
Autocomplete input component and directive for google-maps built with angular and material design | ANGULAR V9 SUPPORTED
Stars: ✭ 134 (+1388.89%)
Mutual labels:  material, autocomplete
Smartmaterialspinner
The powerful android spinner library for your application
Stars: ✭ 108 (+1100%)
Mutual labels:  material, autocomplete
Angular Material Design Lite
A tiny Angular wrapper for Material Design Lite
Stars: ✭ 203 (+2155.56%)
Mutual labels:  material, angularjs
Materialdesignextensions
Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps
Stars: ✭ 516 (+5633.33%)
Mutual labels:  material, autocomplete
Rails Api And Angularjs
Integration between rails and angularjs which includes rspec tests.
Stars: ✭ 22 (+144.44%)
Mutual labels:  angularjs
Autocomplete Plus
View and insert possible completions in the editor while typing
Stars: ✭ 939 (+10333.33%)
Mutual labels:  autocomplete
Autoprompt
Auto complete command prompts for C# .Net console apps
Stars: ✭ 22 (+144.44%)
Mutual labels:  autocomplete
Vscode Laravel Extra Intellisense
This extension adds extra autocompletion for laravel projects to VSCode.
Stars: ✭ 909 (+10000%)
Mutual labels:  autocomplete
Md Form Validator
Simplify the usage of ngMessages with the angular material design
Stars: ✭ 8 (-11.11%)
Mutual labels:  angularjs
Ngfilereader
This is file reader component on angular.
Stars: ✭ 25 (+177.78%)
Mutual labels:  angularjs
Arduino Pro Ide
The Arduino IDE for advanced users and developers. Experimental alpha version.
Stars: ✭ 917 (+10088.89%)
Mutual labels:  autocomplete
Breeze
A Material Design game launcher for Windows
Stars: ✭ 22 (+144.44%)
Mutual labels:  material

Autocomplete

============ A simple AngularJS directive that allows you create autocomplete input text that list of the data either from a server or local variable

To see a demo go here: https://shoppinpalautocomplete.herokuapp.com/#/auto

Features:

  • custom template support.
  • can show suggestion as a hint .
  • keyboard and mouse control.
  • works in legacy browsers.
  • Auto match.
  • Clear on selection: when you select an item, input field is cleared.
  • custom selection of the templete simpleTemplete , profileTemplete and colorTemplate.
  • Blur event handling.
  • Show scrollbar.
  • Show all items.
  • input minimum length to display itemList.

Requirements: AngularJS 1.4.x

installation

============

Getting Started

Download the code, and include the autocomplete.min.js file in your page. Then add the material.autocomplte module to your Angular App file

1. Download via npm or bower

bower install materialized.autocomplete --save Or npm install materialized.autocomplete --save

2. Link the files in the page header

For bower installation:

<script src="bower_components/materialized.autocomplete/autocomplete/autocomplete.min.js"></script>
<link rel="stylesheet" href="bower_components/materialized.autocomplete/autocomplete/css/autocomplete.min.css">

For npm installation

<script src="node_modules/materialized.autocomplete/autocomplete/autocomplete.min.js"></script>
<link rel="stylesheet" href="node_modules/materialized.autocomplete/autocomplete/css/autocomplete.min.css">

3. Include the module as a dependency in your app

 var module = angular.module('testing', ['material.autocomplete']);

###Methods

Remote Usage

For the simple Autocomplete template

      <material-autocomplete
        ac-input-name="Products"
        ac-items="test.productList"
        ac-selected-item="test.dataResultprod"
        ac-display-property="name"
        ac-selected-item-change="test.fetchProductList(test.productList)"
        ac-search-text="test.searchTextProduct"
        ac-remote-method="test.fetchDataFromServer(test.searchTextProduct)"
        ac-place-holder=" &#128269; &nbsp; &nbsp; Search the items here...."
        ac-min-length="2">
      </material-autocomplete> 

Demo screenShots:

screen shot 2017-01-25 at 1 21 51 am screen shot 2017-01-25 at 1 20 59 am screen shot 2017-01-25 at 1 21 34 am screen shot 2017-01-25 at 1 22 20 am screen shot 2017-01-25 at 1 37 23 am

Local Usage

###For the color Autocomplete template

      <material-autocomplete
        ac-input-name="color"
        ac-items="test.color"
        ac-display-property="name"
        ac-display-color="color"
        ac-search-text="test.searchCol"
        ac-min-length="1"
        ac-place-holder=" &#128269; &nbsp; &nbsp; Color Autocomplete "
        ac-template-style="colorTemplate">
      </material-autocomplete>

Demo screenShots:

screen shot 2017-02-15 at 7 18 35 pm screen shot 2017-02-15 at 7 20 09 pm

###For the profile Autocomplete template

      <material-autocomplete
        ac-input-name="people"
        ac-items="test.people"
        ac-display-property="name"
        ac-display-email="email"
        ac-display-picture="picture"
        ac-search-text="test.searchPeople"
        ac-min-length="1"
        ac-place-holder=" &#128269; &nbsp; &nbsp; Profile Autocomplete "
        ac-template-style="profileTemplate">
      </material-autocomplete>

Demo screenShots:

screen shot 2017-02-15 at 7 22 01 pm screen shot 2017-02-15 at 7 23 38 pm screen shot 2017-02-15 at 7 24 43 pm

Description of attributes

Parameter Type Description
ac-items expression An expression in the format of item in items to iterate over matches for your search.
ac-input-name string The name attribute given to the input element to be used with FormControlle.
ac-selected-item object A model to be bind which is selected item.
ac-display-property string item diaplay use property name
ac-display-email string item diaplay use property email
ac-display-picture string item diaplay use property picture
ac-display-color string A list of the item diaplay for the color code
ac-selected-item-change expression An expression to be run each time a new item is selected.
ac-search-text expression A model to bind the search query text to
ac-remote-method expression Handle the searchText result and provide the result
ac-place-holder string Secondary Placeholder text that will display after label move
ac-show-input-name string Input text for the hiding secondary palceholder
ac-dropdown-items expression For the calculate dropdown height
ac-clear-button expression Clear the inputtext if selected value is there
ac-min-length number Specifies the minimum length of text before autocomplete will make suggestions

Running test suite

In order to run tests clone repository and run following commands within repo's directory:

1. npm install
2. bower install
3. grunt
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].