-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't set alternative layout #11
Comments
Should be:
|
thanks @reals79 !! using vue with webpack (Laravel Mix) let LayoutPt = require('./../../../../components/infrastructure/vue-touch-keyboard/layoutPt');
(...)
window.Laravel.vm = new Vue({
el: '#app',
(...)
keyboard: {
enabled: false,
visible: false,
layout: "numeric",
layoutPt: LayoutPt,
input: null,
options: {
useKbEvents: false
},
}, later on.. decide the layout from the vueData kbShow(e){
this.keyboard.input = e.target;
// this.keyboard.layout = e.target.dataset.layout;
this.keyboard.layout = this.keyboard.layoutPt.numeric;
if (!this.keyboard.visible && this.keyboard.enabled) this.keyboard.visible = true
}, Cheers |
@ijpatricio did you managed to implement accented characters in the PT keyboard? |
Hello @viniciusdeliz Ouuf it was so long time ago, I can't even remember, sorry 😓 From the comment I put here #11 (comment) it seems that's the way to do it.. |
keyboard-layout-ru.js
The text was updated successfully, but these errors were encountered: