• Resolved colbyalbo

    (@colbyalbo)


    hello,
    i am trying to modify the pikaday settings for the date field.

    I’m trying to set the pickWholeWeek to true. Below is what i have tried, but it doesnt work. Any idea what i’m doing wrong?

    var customDatePickerStuff = Marionette.Object.extend( {
    initialize: function() {
    this.listenTo( Backbone.Radio.channel( ‘pikaday’ ), ‘init’, this.modifyDatepicker );
    },

    modifyDatepicker: function( dateObject, fieldModel ) {
    dateObject.pikaday._o.pickWholeWeek = true;
    }
    });

    jQuery( document ).ready( function() {
    new customDatePickerStuff();
    } );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘pikaday modification’ is closed to new replies.