1.0.1 • Published 8 years ago

watchtower-autocomplete-values-fetcher v1.0.1

Weekly downloads
10
License
-
Repository
github
Last release
8 years ago

watchtower-autocomplete-values-fetcher

get autocomplete values by dynamic_attribute_id for dropdown

Usage

import getAutocompleteValues from 'watchtower-autocomplete-values-fetcher'
const key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' // key to the google spreadsheet with the data
getAutocompleteValues(key).then((autocomplete) => your_code)

// autocomplete looks like
//  {
//    1: ['value1', 'value2'],
//    2: ['value3', 'value4']
//  }

// 1 and 2 - dynamic_attribute ids
1.0.1

8 years ago

1.0.0

8 years ago