ejDatePicker

MiServer is Dyalog's APL-based web development framework

ejDatePicker

Postby MBaas on Tue Jul 28, 2015 10:12 am

Being unable to get ejDatePicker working properly, I decided to add the control with JS:

Code: Select all
          ip←(d.Add div'' '.col-lg-4').Add _html.input''('id' 'bday' 'name' 'bday' 'type' 'text' 'class' 'form-control col-lg-9' 'data-validate' 'required')
          Add Script ScriptFollows
          ⍝ $(document).ready( function () {
          ⍝   $("#bday").ejDatePicker({
          ⍝      locale: 'de-DE' ,
          ⍝      highlightWeekend: true ,
          ⍝      startDay: 1
          ⍝   });
          ⍝ });


That is working nicely except for the localization which is not applied - that thing still comes up in english. I've read SF's doc at http://helpjs.syncfusion.com/js/datepic ... balization and I believe that I did all right, perhaps SF-JS is still missing somewhere???
User avatar
MBaas
 
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany

Re: ejDatePicker

Postby MBaas on Tue Jul 28, 2015 11:09 am

I fixed it by editing resources.xml and adding a reference to globalize.cultures.min.js:
Code: Select all
  <resource>
    <name>cultures</name>
    <script>/Syncfusion/external/jquery.globalize.js</script>
    <script>/Syncfusion/external/globalize.cultures.min.js</script>
  </resource>
User avatar
MBaas
 
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany


Return to MiServer

Who is online

Users browsing this forum: No registered users and 1 guest