Open avongeric opened 6 years ago
same here
Hi @malkafly @ericxander I have import this like
import PatternLock from 'patternlock';
also jquery npm installed
and copy the css from patternlock node module to the same page like lockPage.ts in ngAfterViewInit(): any { this.lockset = new PatternLock("#patternHolder7", { matrix: [4, 4] }); }
Its working awesome
I tried using this in my ionic app as I also include jquery library. Below is was I did;
With the above, I do the initialization like this but nothin work. It just some the SVG tag I included on the html which doesnt enable me to draw the pattern:
var lockset = new patternLock("#patternHolder7", { onPattern: function (pattern) { // Context is the pattern lock instance console.log(pattern) } });