Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    No need for a test-case - but what do you mean by "remove Wednesday as a weekday"? Can you show the settings?

    Comment


      #17
      If you mean that you set calendar.weekendDays to [0, 3], that seems to work as expected. By way of example (in the SmartClient showcase, since its samples are runtime mutable), for Obsidian in 12.1:

      If you go here, paste the code below into the "simpleCalendar" tab and click "Try It", you should see that the Calendar shows Sunday and Wednesday styled as weekends and, if you click the "Choose a Date" icon above the calendar, the DateChooser does too (because styleWeekends has been set to true globally):

      Code:
      isc.DateChooser.addProperties({ styleWeekends: true })
      
      isc.Calendar.create({
          ID: "eventCalendar",
          data: eventData,
          weekendDays: [ 0, 3 ]
      });
      Last edited by Isomorphic; 19 Apr 2022, 10:21.

      Comment


        #18
        Yes, like that, but in SmartGWT, so Java.

        In the showcase, you can try this.

        Code:
        isc.DateChooser.addProperties({ styleWeekends: true })
        
        isc.Calendar.create({
            ID: "eventCalendar",
            data: eventData,
            weekendDays: [ 0, 3, 6 ]
        });
        You can see the date chooser is not styling Saturday, however, the Calendar is.

        Click image for larger version

Name:	Screenshot 2022-04-19 142225.png
Views:	116
Size:	67.0 KB
ID:	267914

        However, for us in SmartGWT, by default, we are not seeing any styling in the date chooser for Obsidian, only Stratus (which behaves like the showcase above), so still need to figure out why the difference there.

        Comment


          #19
          Looks like for Obsidian, the default is false, unlike Stratus, for style weekends. That explains why we have to turn it on explicitly for that theme.

          Comment


            #20
            Ah, ok - perhaps DateChooser has an issue with a 3-day split-weekend :) We'll take a look at that and get back to you.

            As for Obsidian not styling weekends in DateChoosers - no, it doesn't, by default. Tahoe and Obsidian have never styled weekends, so we didn't want to change that legacy behavior. But you can now show those styles in your projects, if you want to, by turning on DateChooser.styleWeekends, via DateChooser.setDefaultProperties().

            Comment


              #21
              Thanks, we already had an autochild for the date chooser, so we are just setting it on that explicitly now.

              Comment


                #22
                We've fixed the issue with styling more than two weekend days in DateChoosers.

                Please retest with a build dated April 20 or later.

                Comment


                  #23
                  Thank you

                  Comment

                  Working...
                  X