Hype Stepper Symbol

This is the latest Version.

There are now a couple of extra functions.

There is a new ini() function that is called on Symol load.

This simply sets up a function that will be called if the user hits the enter key inside the input.

The function that is called is named yourFunctions().

This is now where you place your code for the stepper. This same function is also called when the stepEnd() function is called.

This makes it easier to edit your own code and takes into account entries made manually in the input.

The yourFunctions() has block of code already inside which should not be removed.

 if (  Object.prototype.toString.call(this) === "[object Window]" ){
		
		/* WE HAVE TO LOAD THIS FUNCTION ON SYMBOL LOAD SO IT EXPORTS WITH THE SYMBOL. WE DO NOT WANT THAT CALL TO DO ANYTHING, THE CALL WILL REGISTER AS 
		"[object Window]"
		
		THE SUBMIT AND BUTTONS
		
		"[object object]"
		*/
		   return
		  }

Because the yourFunctions() function would not normally be called in any of the hype actions, mouse click, load actions etc. It will not export with the symbol. To counter this I have added it to the Symbol on load action.
The line above insures that nothing actually is run when the symbol on load runs. But everything works correctly when the buttons or enter key are used.

(@jonathan, it would be great if there was an option on Symbol export to choose what Functions should be included )


Again the symbol can be duplicated

v4

Stepper_MHv4.hypesymbol.zip (32.0 KB)