src/aria/widgets/calendar/RangeCalendar.js
function () {
            var res = [];
            var cfg = this._cfg;
            if (cfg.fromDate || cfg.toDate) {
                var cssPrefix = "x" + this._skinnableClass + "_" + this._cfg.sclass;
                res.push({
                    fromDate : cfg.fromDate || cfg.toDate,
                    toDate : cfg.toDate || cfg.fromDate,
                    classes : {
                        from : cssPrefix + "_selected_from",
                        to : cssPrefix + "_selected_to",
                        fromTo : cssPrefix + "_selected_from_to",
                        sameFromTo : cssPrefix + "_selected_same_from_to"
                    }
                });
            }
            var cfgRanges = cfg.ranges;
            if (cfgRanges) {
                res = res.concat(cfgRanges);
            }
            return res;
        }
function () {
            var res = [];
            var cfg = this._cfg;
            if (cfg.fromDate || cfg.toDate) {
                var cssPrefix = "x" + this._skinnableClass + "_" + this._cfg.sclass;
                res.push({
                    fromDate : cfg.fromDate || cfg.toDate,
                    toDate : cfg.toDate || cfg.fromDate,
                    classes : {
                        from : cssPrefix + "_selected_from",
                        to : cssPrefix + "_selected_to",
                        fromTo : cssPrefix + "_selected_from_to",
                        sameFromTo : cssPrefix + "_selected_same_from_to"
                    }
                });
            }
            var cfgRanges = cfg.ranges;
            if (cfgRanges) {
                res = res.concat(cfgRanges);
            }
            return res;
        }
function ( ) { var res = [ ] ; var cfg = this . _cfg ; if ( cfg . fromDate || cfg . toDate ) { var cssPrefix = "x" + this . _skinnableClass + "_" + this . _cfg . sclass ; res . push ( { fromDate : cfg . fromDate || cfg . toDate , toDate : cfg . toDate || cfg . fromDate , classes : { from : cssPrefix + "_selected_from" , to : cssPrefix + "_selected_to" , fromTo : cssPrefix + "_selected_from_to" , sameFromTo : cssPrefix + "_selected_same_from_to" } } ) ; } var cfgRanges = cfg . ranges ; if ( cfgRanges ) { res = res . concat ( cfgRanges ) ; } return res ; }
Returns the array of ranges to be passed to the calendar controller.
@return {Array}
Returns the array of ranges to be passed to the calendar controller .