htmlstreamofficial / preline

Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.
https://preline.co
Other
4.82k stars 304 forks source link

Advanced Select: Search inside dropdown #445

Closed shanke-pvex closed 2 weeks ago

shanke-pvex commented 2 months ago

Summary

onNoResultsClick / customize search

Detailed Description

Good Morning.

  1. Is it possible to inlcude onNoResultsClick to get the possibility to trigger a click-action in case of no result?
  2. Is it possible to include a custom search functionality? (eg. entered term is: qcells and the option in the select is: Q.Cells SE)
  3. Can you add floating label like on input?

Use Cases

In my current project i have a workaround with an input for searching with custom search functionality and a custom dropdown list with clickhandler in case of no result. Bildschirmfoto 2024-08-19 um 11 11 49 Bildschirmfoto 2024-08-19 um 11 11 39

olegpix commented 3 weeks ago

@shanke-pvex Hi, We added option 2 in version 2.5.0, please update to use it (demo). Regarding option 1, I think you can pass as a parameter searchNoResultTemplate markup with a click function, on which you can hang the functionality you need