Skip to content

Releases: BlitzJB/Vector

Added Component level Event listeners

30 Dec 18:38
Compare
Choose a tag to compare
Pre-release

Added event listeners which can be set to the property eventListeners in your component. its an array of objects (array of arrays shorthand also available) defining each event listener. If the selected element for a listener isnt found, no exception is raised.

Known limitations of the module:

  • can only go one level deep. parent component needs to be rendered before child component renders. thus making creating components within other component declarations impossible.
  • code to render a component is much more wordy than the JSX way of doing it. ie, <Component />. Need to look into working with such sugar.