Przeglądaj źródła

added footer extension

Igor Vaynberg 11 lat temu
rodzic
commit
68f91c3f1b
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7 1
      playground/decorators/decorators.html

+ 7 - 1
playground/decorators/decorators.html

@@ -70,12 +70,18 @@
                 }
             });
 
+            var FooterExtension=clazz(Object, {
+                render: function() {
+                    return this.decorated()+"<div>I am a footer</div>";
+                }
+            });
 
             var selection = new Selection();
 
             selection
                     .decorateWith(new ClearExtension({position: "right"}))
-                    .decorateWith(new SortableExtension());
+                    .decorateWith(new SortableExtension())
+                    .decorateWith(new FooterExtension());
 
             var markup = selection.render();
             $("#container").html(markup);