Change d&d tooltip

Ask our community for help with v1.x versions of our products.
User avatar
mats
Core Developer
Core Developer
Posts: 14260
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Change d&d tooltip

Post by mats » Wed Oct 31, 2018 11:54 am

Date formats are controlled by 'displayDateFormat' on your view presets: https://www.bryntum.com/docs/scheduler- ... DateFormat
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
vandries
Posts: 141
Joined: Mon Mar 06, 2017 1:36 pm

Re: Change d&d tooltip

Post by vandries » Wed Oct 31, 2018 12:16 pm

yeah, found the only usage in examples/ dir when displayDateFormat isdefined in lang files under Sch/locale.
is the a config property under gantt - where I can define displayDateFormat?

Thanks.

User avatar
mats
Core Developer
Core Developer
Posts: 14260
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Change d&d tooltip

Post by mats » Wed Oct 31, 2018 12:17 pm

You put this on the View Preset. Docs: https://www.bryntum.com/docs/gantt-for- ... ViewPreset
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
vandries
Posts: 141
Joined: Mon Mar 06, 2017 1:36 pm

Re: Change d&d tooltip

Post by vandries » Wed Oct 31, 2018 12:51 pm

Thanks a lot!
final version:

Code: Select all


        function updateDateFormat(formatArray) {
            Ext.each(formatArray, function(item) {
                var config = Sch.preset.Manager.getPreset(item);

                config.displayDateFormat = window.ED.commonDateFormat;
            });
        }

        var presets =  [
            'hourAndDay',
            'secondAndMinute',
            'dayAndWeek',
            'weekAndDay',
            'weekAndMonth',
            'weekAndDayLetter',
            'weekDateAndMonth',
            'monthAndYear',
            'year',
            'manyYears'];
        updateDateFormat(presets);


Post Reply