Request new features or modifications


Post by King_Aero »

Hello,

Sorta kinda a feature request... could also be a bug depending on how you want to look at it.

When you create a binding on a scheduler panel for startDate and the value changes, it will set the endDate to "defaultSpan". It would be nice if it checked endDate first and if its set then pass that into setTimeSpan.

Example Bind:
    bind: {
        startDate: '{StartDate}',
        endDate: '{EndDate}'
    }

In AbstractSchedulerPanel.js
    /**
     * Changes the time axis start date to the supplied date.
     * @param {Date} amount The new start date
     */
    setStartDate: function (date) {
        this.setTimeSpan(date);
    },

    /**
    * Changes the time axis timespan to the supplied start and end dates.
    * @param {Date} start The new start date
    * @param {Date} end (Optional) The new end date. If not supplied, the {@link Sch.preset.ViewPreset#defaultSpan} property of the current view preset will be used to calculate the new end date.
    */
    setTimeSpan: function (start, end) {
        if (this.timeAxis) {
            this.timeAxis.setTimeSpan(start, end);
        }
    },

Post by Maxim Gorkovsky »

Hello.
I added a feature request: https://app.assembla.com/spaces/bryntum ... er/details
Subscribe to that ticket to stay in tune.

Post by King_Aero »

Great. Thanks!

Post Reply