Allow to pass header items

This commit is contained in:
Alfredo Sumaran 2016-03-11 18:00:17 -05:00 committed by Jacob Schatz
parent 4e486c6116
commit f858ee43ea

View file

@ -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)