framework7io / framework7-plugin-keypad Goto Github PK
View Code? Open in Web Editor NEWKeypad plugin extends Framework7 with additional custom keyboards
Home Page: http://framework7.io/plugins/
License: MIT License
Keypad plugin extends Framework7 with additional custom keyboards
Home Page: http://framework7.io/plugins/
License: MIT License
The buttons in the keypad should have -webkit-user-select:none and user-select: none specified to prevent the text on the numbers from accidentally being selected for copy/paste operations.
Этот замечательный плагин не работает нормально в 4й версии:
если на телефоне (именно на телефоне) набирать быстро цифры, то будут огромные задержки. Решается включением отключенного Fast Click:
touch: {
fastClicks: true,
},
В 5й версии, с выпиленным fast click, я так понимаю плагин вообще не совместим. Если можно, было бы здорово его адаптировать под 5ку :)
Maybe this is obvious, but any way to make it work with vue.js framework7 plugin?
Thanks,
kevin.
I already added Framework7 to my Ember cli project. But I can not make Keypad works. My initialize file:
export function initialize(container, application) {
var f7 = new window.Framework7();
application.register('f7:main', f7, { instantiate: false });
application.inject('route', 'f7', 'f7:main');
application.inject('controller', 'f7', 'f7:main');
application.inject('component', 'f7', 'f7:main');
application.inject('view', 'f7', 'f7:main');
}
export default {
name: 'framework7-service',
initialize: initialize
};
I included Keypad js and css file in Brocfile.js:
app.import({
development: 'bower_components/framework7-keypad/dist/framework7.keypad.css',
production: 'bower_components/framework7-keypad/dist/framework7.keypad.min.css'
});
app.import({
development: 'bower_components/framework7-keypad/dist/framework7.keypad.js',
production: 'bower_components/framework7-keypad/dist/framework7.keypad.min.js'
});
When I use <input type="numpad">
it's not working, nothing happen.
I figure out that when running the code: var f7 = new window.Framework7();
, the plugin is not found(or hooked)
I'd need a full keyboard and supplied all keys as props, but only the first 12 keys are rendered, because the layout is fix. What's the point in supplying custom keys, if you assume keypad?
please also add support for themes!
I have a keypad
var keypad = app.keypad.create({
inputEl: '#input',
on: {
change: function (keypad, value) {
console.log(keypad, value);
}
}
});
change event is NOT called when value is changed (this is same for all other events like open close etc…)
Tried
keypad .on("change", (keypad, value) {
console.log(keypad, value);
})
i get Uncaught (in promise) Error: TypeError: Cannot read property 'change' of undefined
Any Ideas?
The cursor position is not accounted, nor displayed (the "input-focused" class is removed from the input even when inputReadOnly is set to false), for this widget e.g.
"12|34"
then press delete on the keypad should result in
"1|34" rather than "123"
In the iOS version the user cannot tell which input is active. In Android it's more clear but still needs a caret for more user feedback.
TypeError: module is undefinedclass.js:103
installModule class.js:103
use class.js:130
nyw8 gcu.tsx:18
Webpack 4
__webpack_require__
checkDeferredModules
webpackJsonpCallback
<anonym>
When install the package using bower (bower install framework7-keypad --save), The name of the package in bower.js file should be "Framework7-Keypad": "framework7-keypad#^1.0.3". I'm having a problem because bower automacally generate the name: "Framework7 Keypad": "framework7-keypad#^1.0.3" (no dash), so that i can not update the package using bower update.
Any plans for EmoIcons keyboard support?
Found some discussions and implementations -
EMO ICONS -
http://one-signal.github.io/emoji-picker/
http://emojione.com/
References:
http://emojione.com/
http://www.discourse.org/
https://github.com/wedgies/jquery-emoji-picker
http://wedgies.github.io/jquery-emoji-picker/demo.html
Could you please share the code snippet to reset the textbox value programmatically? Actually, i am using type "numpad" in html to create keypad.
Thanks
Hi
I am trying to use kepad for v5 as follows:
import Framework7 , {Template7} from 'framework7/framework7.esm.bundle.js';
Framework7.use(Framework7Keypad);
var app = new Framework7({
......
but app won't start and always gives:
class.js:150 Uncaught TypeError: Cannot read property 'name' of undefined
at Function.installModule (class.js:150)
What could be the reason ?
thanks
As title, when a keypad is within a swipe it won't work, any ideas?
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide" style="text-align:center">
<h3>Product name</h3>
<div class="range-slider"><input type="range" min="0" value="" step="1" onchange="$$(this).parent().parent().find('span').html(this.value);" oninput="$$(this).parent().parent().find('input').val(this.value);"></div>
<div class="list-block">
<ul>
<li><div class="item-content">
<div class="item-inner">
<div class="item-title label">Qtd</div>
<div class="item-input">
<input type="text" class="kpNumpad">
</div>
</div>
</div></li>
</ul>
</div>
<img src="img/temp/img01-mobile-md.jpg" style="max-height: 45vh;">
</div>
</div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
myApp.keypad({ 'input': '.kpNumpad', 'dotButton': true, 'toolbarCloseText': 'Fechar', 'toolbarTemplate': '' });
myApp.swiper('.swiper-container',{
'onlyExternal': true,
'nextButton': '.swiper-button-next',
'prevButton': '.swiper-button-prev',
'speed': 600,
'loop': true,
'effect': 'slide' //-- slide, coverflow, flip
});
No matter the order if swiper or keypad is called first, none of them work, debugging inside a browser, the div of keypad is created but don't show, and input becomes unclicable.
On the latest f7 Vite is the only bundler available and throws this error while build:
node_modules/vite/dist/node/chunks/dep-36bf480c.js:43807:10: error: [plugin: vite:dep-scan] Failed to resolve entry for package "framework7-plugin-keypad". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "framework7-plugin-keypad". The package may have incorrect main/module/exports specified in its package.json.
Upon Inspect I came to this stacktrace:
src/js/app.js:4:29: note: The plugin "vite:dep-scan" was triggered by this import 4 │ import Framework7Keypad from 'framework7-plugin-keypad';
I checked the package.json
file for the plugin and everything looks ok to me. Any suggestions?
it would be great to know, if the window was closed on purpose (toolbar CLOSE button) or if the user tapped outside the keypad region
I would like to disable buttons programmatically depending on the current value. For example, on the calculator, some of the operations should be disabled when there is no left-value. Or for another example, I would like to only accept inputs between 1-37, and so when the user inputs 3, I would like to disable buttons 8 and 9.
After using this plugin input validation stops working. Any reason?
Hi,
I know it is probably not supported, but maybe there's a quick fix for this. On Android devices, only the numbers 1,2,3 are visible when using numeric. They are fully functional, but i miss the other 6 buttons. Tried to change some z-index values in the css file, but none helps. Maybe you know how this could be fixed.
Thanks!
Viewing the demo there doesn't appear to be click sounds when pressing the keypad buttons. Is there a way to enable this?
The delete key in the keypad should have an auto-repeat capability to allow the user to efficiently delete a long number quickly and efficiently. It should behave while the key is being pressed and after a delay.
The native delete key on iOS will delete the first character on the initial press and then start repeating the delete after an initial delay of about 100ms. Each character is deleted at a rate of about 50ms. These numbers are just ballpark and would have to be tweaked.
Maybe this is obvious, but any way to make it work with React framework7 plugin?
Thanks,
Serkan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.