- Add
withMultiInputItemRemovable
. #60
- Add
withValueSeparators
#59
- Make OnQueryChange obey emptySearch. #58
- Add
withTransformInput
- Add
onBlur
- Add
onEsc
- Internal change: Add menuAnchor element
- Remove
withClearSvgAttrs
. Passing aclass
attribute to and SVG generates a runtime error. So this is not allowed anymore.
- Remove unused
withInputControlAttrs
- Rename
newState
toinit
- Added functions for adding additional attributes e.g.
withInputMoreAttrs
- Fix stack overflow when
valueSeparators
is an empty list.
- Allow to type multiple queries by using a
,
. When using custom input, these values will appear as disctinct items in the menu.
- Add
withItemSelectedAttrs
- Add
withClearHtml
- All configuration for styles and classes has been changed to Attrs e.g. Replaced
withInputClass
andwithInputStyles
forwithInputAttrs
- All default styles has been removed (Use provided CSS instead)
- Added
withCustomInput
- Selecting an element in the list with Enter doesn't trigger a submit event on a form. See #42
- Fix #40
- Add Placeholder to multi-select
- Added
withClear
Until this package has been using tripokey/elm-fuzzy
for filtering results. Although this is a powerful package, it is quite finicky and difficult to configure. It is also a heavy dependecy. In many cases you can filter items with something simpler like String.contains
or an alternative package. This version removes elm-fuzzy
completly in favour of the host application providing its own search.
- This version removes the build in fuzzy search. You need to filter items yourself using
config.filter
. - Remove all
fuzz...
config options.
newConfig
now takes aRequiredConfig
record as first argument.
- Config takes a
filter
function. This function should filter the items according to the query.
- Add
queryFromState
. See #32
- Upgrade to Elm 0.19
- Add multi selection
- The
withOnQuery
callback takes in accountwithTransformQuery
- Add
withEmptySearch
- Add
withFuzzyMatching
- Add
withItemHtml
- Change the default
fuzzySearchSeparators
to[" "]
. This makes the default search more intuitive.
- Add
OnFocus
- Allow to select item using Enter when there is only one item in search results
- Add
withInputId
- Add arrow navigation
- Add
withFuzzySearchInsertPenalty
- Add
withTransformQuery
- Add
withNotFoundHidden
- Add
withUnderlineClass
,withUnderlineStyles
- Fix issue with on blur in IE and Firefox
- Add:
withFuzzySearchAddPenalty
withFuzzySearchMovePenalty
withFuzzySearchRemovePenalty
withFuzzySearchSeparators
- Add
withScoreThreshold
- Add not found message
- Add not found styles
- Add withPrompt
- Hide clear icon when nothing is selected
- Hide the menu when the query is empty
- Add
withClearStyles
,withClearSvgClass
,withInputWrapperClass
,withInputWrapperStyles
- Update a clear button, change selection type to
Maybe item
- Add
withOnQuery
for async lookup
- Add Styles mutators e.g.
withItemStyles
- Initial release