Skip to content

No way to add search suggestions/autofill #3

@emanguy

Description

@emanguy

I'm not sure if this is currently on the element roadmap, but it would be incredibly useful if you could add an array of some element to the search bar for autofill and suggestions while the user is typing. If this is already implemented I'm missing it in the documentation.

The functionality I'm looking for is similar to that of the search dialog in Google Play Music:
image
The elements in the node list would most likely be something similar to the paper-bottom-sheet-item you implemented over in paper-bottom-sheet. Clickable options with an iron-icon.

EDIT: For binding purposes, it would probably be easier to just provide an array of objects in the following format:

[
    {
        "icon": "search",
        "boldtext": "this is m",
        "trailingtext": "y input string"
    },
    {
        "icon": "history",
        "boldtext": "you previously ",
        "trailingtext": "searched for this"
    }
]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions