Skip to main content

inputCreated

fires when a new input is added

inputCreated: (id: Id, input: HTMLInputElement) => void;

Parameters:

  • id: string | number - the ID of a new input
  • input: HTMLInputElement - a newly created input

Example

sidebar.events.on("InputCreated", function(id, el){    console.log(id);});