Commit 03afe766 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Allow to pass header items

parent 238328f5
......@@ -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