Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
open-source
gridstack.js
Commits
1adc38e5
Commit
1adc38e5
authored
Nov 11, 2014
by
Pavel Reznikov
Browse files
knockout sample: handle items removal
parent
fb9d5a1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
1adc38e5
...
...
@@ -47,6 +47,9 @@ ko.components.register('dashboard-grid', {
}
grid
.
add_widget
(
item
);
ko
.
utils
.
domNodeDisposal
.
addDisposeCallback
(
item
[
0
],
function
()
{
grid
.
remove_widget
(
item
);
});
},
this
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment