Closed thirdwheel closed 4 years ago
This is not needed. You can just add a class on the pattern holder and it will keep it. Ex:
<div id="pattern-holder" class="your-class"></div>
const lock = new PatternLock('#pattern-holder');
In this case, it will keep the your-class
.
This is not needed. You can just add a class on the pattern holder and it will keep it. Ex:
<div id="pattern-holder" class="your-class"></div>
const lock = new PatternLock('#pattern-holder');
In this case, it will keep the
your-class
.
No, it doesn't.
Correction, yes it does. No idea why it didn't work for me.
This allows the user to specify an additional class for the pattern holder. I had a need to override the background colour in my project and found that the process of initialising the pattern window would overwrite any classes I already had. Not sure if this is the best approach but figured it was worth a try.