I've had similar trouble with this component using Splunk 7.2. Examining the source in $SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/js/splunkjs/mvc/timerangeview.js it seems the view is now presented using a React component from $SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/js/splunkjs/mvc/components/TimeRangePickerDropdown.jsx .
There's a different set of options supported by this component, which I can't find documentation for. I've been able to hack around how my widget is presented by changing the options sent into that component (below), but can anyone suggest the right way to do this? I'm concerned the underlying API isn't public, and subject to change. Thanks.
define(['splunkjs/mvc/timerangeview'], function(TimeRangeView){
return TimeRangeView.extend( {
getMenuSettings: function () {
return {
showAdvanced: false,
showDate: true,
showDateTime: false,
showPresets: false,
showRealtime: false,
showRelative: false
}
}
} )
});
... View more