Hello,
I would like to programmatically trigger the click event on my input field, so that the user automatically sees the "choose file" dialogue.
Any help please how to do this? I tried out some things but couldn't find any solution how to do this. Thank you
Code:
Ext.define('MyApp.view.capturepicture', {
extend: 'Ext.Component',
alias: 'widget.capturepicture',
config: {
captured: false,
location: 0,
cls: 'picture-capture',
html: '<img style="width: 100%" class="image-tns" /> <input style="width: 100%" type="file" capture="camera" accept="image/*" />',
id: 'capturepicture'
},
Aucun commentaire:
Enregistrer un commentaire