From a475434ff9425b4e5845cb2df958c820c58a5842 Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Mon, 17 Nov 2014 01:05:25 -0800 Subject: [PATCH] samples --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9bdd03..477c871 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,10 @@ Usage Occurs when widgets change their position/size ```javascript + var serialize_widget_map = function (items) { + console.log(items); + }; + $('.grid-stack').on('change', function (e, items) { serialize_widget_map(items); }); @@ -111,7 +115,7 @@ Removes widget from the grid. Parameters: -- `el` - widget to add +- `el` - widget to remove ## Use with knockout.js