# HG changeset patch # User Tomas Zeman # Date 1481794459 -3600 # Node ID 43fbc4dabca76fc73e885a487faf90222cdde274 # Parent 843852b3123df31cf5389c9326ea34c42dbac804 uib attributes: allow-clear, uib-alert diff -r 843852b3123d -r 43fbc4dabca7 shared/src/main/scala/ngTags.scala --- a/shared/src/main/scala/ngTags.scala Thu Nov 10 16:00:39 2016 +0100 +++ b/shared/src/main/scala/ngTags.scala Thu Dec 15 10:34:19 2016 +0100 @@ -57,6 +57,7 @@ def repeat(n: String, col: String) = attr("repeat"):=s"$n in $col" def onSelect(fun: String) = attr("on-select"):=fun def onRemove(fun: String) = attr("on-remove"):=fun + def allowClear(b: Boolean) = attr("allow-clear"):=b } // vim: set ts=2 sw=2 et: diff -r 843852b3123d -r 43fbc4dabca7 shared/src/main/scala/twbsTags.scala --- a/shared/src/main/scala/twbsTags.scala Thu Nov 10 16:00:39 2016 +0100 +++ b/shared/src/main/scala/twbsTags.scala Thu Dec 15 10:34:19 2016 +0100 @@ -47,6 +47,7 @@ val dropdown = attr("uib-dropdown") val dropdownToggle = attr("uib-dropdown-toggle") val nav = tag("nav") + val alert = attr("uib-alert"):="" def tooltip(content: String) = attr("uib-tooltip"):=content def tooltipHtml(content: String) = attr("uib-tooltip-html"):=content def tooltipAppendToBody(b: Boolean) = attr("tooltip-append-to-body"):=b