Follow Me on Twitter

Follow Me on Twitter

MyApps

An apps to begin With..

date picker and calendars using polyfiller for drupalgap resolved codes

/**
* Implements hook_install().
*/
function sample_drupalgap_install() {
try {
var js4 = drupalgap_get_path(‘module’, sample_drupalgap’) + ‘/js-webshim/minified/polyfiller.js’;
drupalgap_add_js(js4);

var customdatejs = drupalgap_get_path(‘module’, ‘sample_drupalgap’) + ‘/js/customdate.js’;
drupalgap_add_js(customdatejs);

}
catch (error) { console.log(‘sample_drupalgap_install – ‘ + error); }
}

 

 

Add this code at the bottom of the sample_drupalgap.js file

 

webshim.setOptions(‘waitReady’, true);
(function(){

webshim.setOptions(‘forms’, {
//configure instantvalidation for jQuery mobile
iVal: {
// jQM; change iVal option for jQuery mobile
fieldWrapper: ‘[data-role="fieldcontain"]‘,
handleBubble: ‘hide’ // ‘hide’ || false || true
}
});

webshim.setOptions(‘forms-ext’, {
//only use custom widgets if we do not see some mobile aspects
replaceUI: ‘auto’,
types: ‘range date time number month’,
widgets: {
//buttonOnly: true,
openOnFocus: true,
popover: {
appendTo: ‘body’,
position: {
my: ‘center’,
at: ‘center’,
collision: ‘fit’
}
}
}
});

Leave a Reply

Your API connection setting not working. try to change setting from module option or check your php.ini setting for (cURL support = enabled OR allow_url_fopen = On)

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>