CalvinSlusarski / Knockout-handsontable

Knockout Custom Binding Handler for handsontable.
15 stars 5 forks source link

How to add date type? #10

Closed yozawiratama closed 8 years ago

yozawiratama commented 8 years ago

i want to add date type like this example : http://docs.handsontable.com/0.20.2/demo-date.html

can u give me an example i try add :

columns: [
              {data: 'No'},
              {data: 'Name'},
              {data : 'Program'},
              {data : 'University'},
              {data : 'Start', type: 'date', dateFormat: 'MM/DD/YYYY', correctFormat: true, defaultDate: '01/01/1900', datePickerConfig: {
          // First day of the week (0: Sunday, 1: Monday, etc)
          firstDay: 0,
          showWeekNumber: true,
          numberOfMonths: 3,
          disableDayFn: function(date) {
            // Disable Sunday and Saturday
            return date.getDay() === 0 || date.getDay() === 6;
          }
        }},
              {data : 'End', type : 'date'}
            ]
        }

but nothing happend

CalvinSlusarski commented 8 years ago

Hey, you need to include the date library for handsontable, I believe. I'm at work right now I'll leave a more detailed answer before I take off for the day,

Calvin

CalvinSlusarski commented 8 years ago

Hey it took me longer than expected to look into the issue. It should work now if you get the latest version!