uib attributes: allow-clear, uib-alert
authorTomas Zeman <tzeman@volny.cz>
Thu, 15 Dec 2016 10:34:19 +0100
changeset 39 43fbc4dabca7
parent 38 843852b3123d
child 40 1ff4ef98bbfb
uib attributes: allow-clear, uib-alert
shared/src/main/scala/ngTags.scala
shared/src/main/scala/twbsTags.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:
--- 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