You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,15 +63,21 @@ class:className="[[boolExpression]]" to set/remove a css class
63
63
64
64
$attribute="[[expression]]" to bind to Attributes instead of properties.
65
65
66
+
?booleanAttribute="[[expression]]" to bind to a boolean Attribute.
67
+
66
68
.property="[[expression]]" to bind to Proertys without using the attribute name (to disable side effects).
67
69
68
70
sub <template></template> elements are not bound, so elements like <iron-list> of polymer also work
69
71
70
-
use repeat:nameOfItem=[[enumerableExpression]] on a Template Element to repeat it for every instance of the enumerable.
72
+
css type adopted-css
73
+
74
+
use repeat:nameOfItem="[[enumerableExpression]]" on a template element to repeat it for every instance of the enumerable.
71
75
You could also use 'index' variable in the repeat binding for the current number. The attribute "repeat-index" could be used to change the name of the index variable.
72
76
on a repeat you could use the repeat-changed-item-callback="[[this.itemCreated(item, nodes)]]
73
77
!!caution!! => the repeat binding is only a preview at the moment, it redraws all items on array change
74
78
79
+
use if="[[expression]]" an a template element to show it conditionally
80
+
75
81
## Event Code Bindings
76
82
77
83
with for example @click="[[this.aa(event)]]" you could create a event binding wich could run any javascript code inside of the brackets.
0 commit comments