Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

[Dropdown] Add a separate template for a menu item’s HTML

Open geemang2000 opened this issue 6 years ago • 5 comments

Can you define your own format in the menu portion of the DropDown while using the Remote Search API? e.g. https://semantic-ui.com/modules/dropdown.html#match-search-query-on-server

geemang2000 avatar Aug 03 '17 19:08 geemang2000

Looking at the code the template for the menu starts 3773, in function $.fn.dropdown.settings.templates

It'd be a nice feature to have a callback for this.

geemang2000 avatar Aug 04 '17 12:08 geemang2000

Hi @geemang2000, could you please elaborate, a callback for what?

awgv avatar Aug 06 '17 22:08 awgv

I was thinking a render block that can be defined by the coder. The render block would allow the coder to define the "item". e.g. <div class="item>....my special HTML

geemang2000 avatar Aug 07 '17 12:08 geemang2000

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 23 '18 08:02 stale[bot]

$.fn.dropdown.settings.templates

frei-x avatar Sep 22 '21 08:09 frei-x