Skip to content
Snippets Groups Projects
Commit 03afe766 authored by Alfredo Sumaran's avatar Alfredo Sumaran
Browse files

Allow to pass header items

parent 238328f5
Branches
Tags
1 merge request!3212Location aware search
Loading
Loading
@@ -222,8 +222,12 @@ class GitLabDropdown
renderItem: (data) ->
html = ""
 
# Separator
return "<li class='divider'></li>" if data is "divider"
 
# Header
return "<li class='dropdown-header'>#{data.header}</li>" if data.header?
if @options.renderRow
# Call the render function
html = @options.renderRow(data)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment