dropdown_widget: Implement dropdown widget using tippy.

This will soon replace DropdownListWidget.
This commit is contained in:
Aman Agrawal
2023-05-07 12:42:54 +00:00
committed by Tim Abbott
parent bb78d9741f
commit a196b949f7
10 changed files with 306 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
{{#with item}}
<li class="list-item" role="presentation" data-unique-id="{{unique_id}}" data-name="{{name}}" tabindex="0">
<a role="menuitem">
{{#if stream}}
{{> inline_decorated_stream_name stream=stream show_colored_icon=true}}
{{else if is_direct_message}}
<i class="zulip-icon zulip-icon-users stream-privacy-type-icon"></i> {{name}}
{{else}}
{{name}}
{{/if}}
</a>
</li>
{{/with}}