Commit f858ee43 authored by Alfredo Sumaran's avatar Alfredo Sumaran Committed by Jacob Schatz

Allow to pass header items

parent 4e486c61
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment