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 ...@@ -222,8 +222,12 @@ class GitLabDropdown
renderItem: (data) -> renderItem: (data) ->
html = "" html = ""
# Separator
return "<li class='divider'></li>" if data is "divider" return "<li class='divider'></li>" if data is "divider"
# Header
return "<li class='dropdown-header'>#{data.header}</li>" if data.header?
if @options.renderRow if @options.renderRow
# Call the render function # Call the render function
html = @options.renderRow(data) 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