Allow to pass header items
This commit is contained in:
parent
4e486c6116
commit
f858ee43ea
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue