mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-12 06:06:05 +10:00
Allow to pass header items
This commit is contained in:
committed by
Jacob Schatz
parent
4e486c6116
commit
f858ee43ea
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user