Commit 761a8d98 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Allow data with desired format

parent 2f4bdefc
......@@ -209,10 +209,17 @@ class GitLabDropdown
selected = if @options.isSelected then @options.isSelected(data) else false
url = if @options.url then @options.url(data) else "#"
# Set URL
if @options.url?
url = @options.url(data)
else
url = if data.url? then data.url else ''
# Set Text
if @options.text?
text = @options.text(data)
else
text = data.text if data.text?
text = if data.text? then data.text else ''
cssClass = "";
......
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