0.0.5 • Published 4 years ago

@hopsoft/autosuggest-controller v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Autosuggest Controller

Brief description...

Quick Start

yarn add @hopsoft/autosuggest-controller
import { Application } from 'stimulus'
import { definitionsFromContext } from 'stimulus/webpack-helpers'
import AutosuggestController from '@hopsoft/autosuggest-controller'

const application = Application.start()
const context = require.context('./controllers', true, /\.js$/)
application.load(definitionsFromContext(context))
application.register('autosuggest', AutosuggestController)
usage

Usage

Friendly summary...

Targets

Targets are child elements identified by setting:

data-target="controller.target"
NameDescription
targetrequired/optionalDescribe the target...

Actions

Actions are behaviors that can be triggered and are identified by setting:

data-action="controller#action"
NameDescription
actionrequired/optionalDescribe the action...

Configuration

AttributeDefaultDescription
data-controller-?required/optional"..."Describe the attribute...