Skip to content

Trigger event on change #3

Description

@dnlgrv

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions