From 68f91c3f1b102312ccd8103cbec7c1a560207905 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Tue, 24 Jun 2014 09:39:06 -0700 Subject: [PATCH] added footer extension --- playground/decorators/decorators.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/playground/decorators/decorators.html b/playground/decorators/decorators.html index e048af3a..99f4b698 100644 --- a/playground/decorators/decorators.html +++ b/playground/decorators/decorators.html @@ -70,12 +70,18 @@ } }); + var FooterExtension=clazz(Object, { + render: function() { + return this.decorated()+"
I am a footer
"; + } + }); 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);