Commit 0b893bec authored by Alfredo Sumaran's avatar Alfredo Sumaran Committed by Jacob Schatz

Allow data with desired format

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