Skip to content

[ Issue ] Unable to select date if timePicker: false, #146

Open

Description

@gabriele86

If i set the datePicker variable to false, the datePicker can get only current date, i'm not able to select different date, if i select different date, in the imput field i can see only current date value

Example Code
var datepicker = new DatePicker('.date', {
pickerClass: 'datepicker_dashboard',
days: ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'],
months: ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'],
timePicker: false,
format: 'd-m-Y',
inputOutputFormat: 'Y-m-d',
allowEmpty:true,
useFadeInOut:false,
positionOffset: {x:-30,y:0},
onSelect: function(d, input) { }
});
//datepicker.close();
datepicker.attach($$("#form_offerta_ .date"));

ION.initLabelHelpLinks('#form_offerta_<?= $offerta["id_offerta"] ?>');

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions