How to best create input text for Html5 canvas projects
Hi team,
So I am trying to create some input text so that a user can enter their name and be referred to by their name.
I have created a class to handle this called texter (texter.js)
So far I have the class working and talking to a dynamic text box on the stage (instance name texto) making it say "Hello World"
Here is the class code
class Texter {
constructor(root) {
this.root = root;
this.stage = this.root.stage;
this.init();
}
init() {
this.root.texto.text = "hello world";
}
}Now the issue is that as soon as I add a Textinput component to the stage (not even trying to give it an instance name or code or it or anything) it throws an error in the index.html Uncaught ReferenceError: $ is not defined
Any ideas or other ways to make this work I would greatly appreciate working through it step by step
Thanks and have a great day
