Last active
September 11, 2015 20:39
-
-
Save sccolbert/be398b8e1dce5735e935 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyGridStackContainer extends Widget { | |
constructor(options: GridStackOptions) { | |
$(this.node).gridstack(options) | |
} | |
protected onChildAdded(msg: ChildMessage): void { | |
msg.child.addClass('grid-stack-item'); | |
} | |
protected onChildRemoved(msg: ChildMessage): void { | |
msg.child.removeClass('grid-stack-item'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment