Skip to content

WIP: Add search functionality to MDPersistentSearch

zingy requested to merge ZingBallyhoo/KivyMD:search_toolbar into master

API:

 MDPersistentSearch(results=[{"title": "Test", "info": "More info", "callback": """print("hello")'"""}]).open()

title: First line/headline of result

info: Second line of result

callback: The callback to be executed on_release

To add to the results simply add another dictionary to the list

TODO:

  • Basic search functionality

  • Error handling

  • Animations (no sharp jump into the search)

  • Better highlighting of searched word in results (currently very faint)

    Better look/ui:

    • Better background
    • Cards for the list

    Possible additions:

    • Toolbar that switches to a search bar Will possibly come in a future merge request

Merge request reports

Loading