When the viewport element content changes (likely from browser resizing), trigger an event.
An example of what the API could look like:
JSViewport.on("change", function () {
// The `content` attribute has changed
});
We could also pass the new value of the content attribute to the callback, but that may not be necessary just yet.
When the viewport element
contentchanges (likely from browser resizing), trigger an event.An example of what the API could look like:
We could also pass the new value of the
contentattribute to the callback, but that may not be necessary just yet.