Range Types

RangeNavigator control is designed to visualize large number of data and navigate to particular data from the large collection at ease. The data for the RangeNavigator is either numeric values or DateTime values and the valueType property in RangeNavigator indicates the type of the data that should be passed for the control. By default the valueType of RangeNavigator is DateTime

  • Numeric                 
  • DateTime

Numeric Type

RangeNavigator is also used with numeric data and the valueType for this data is “numeric

  • HTML
  • ReactDOM.render(
              <EJ.RangeNavigator id="rangenavigator1"  valueType = "numeric"></EJ.RangeNavigator>,                    document.getElementById('rangenavigator')
    );

    The following screenshot displays the RangeNavigator with numeric data.

    DateTime

    By default the valueType of the RangeNavigator is “datetime” and represents the DateTime values.

  • HTML
  • ReactDOM.render(                    
                    <EJ.RangeNavigator id="rangenavigator1"  valueType = "datetime"></EJ.RangeNavigator>,
                    document.getElementById('rangenavigator')
    );

    DateTime Intervals

    The DateTime range type contains an intervalType property that sets the DateTime interval to one of the following:

    • Years
    • Quarters
    • Months
    • Weeks
    • Days
    • Hours

    By default intervalType for higher level labels are years and for lower level labels its quarters.

  • HTML
  • "use strict";
    
        var labelSettings = 
          { 
              higherLevel:
                {
                    intervalType: 'years',
                },
            lowerLevel:
               {
                   intervalType: ' quarters',
               }
          };
    
      ReactDOM.render(
                      <EJ.RangeNavigator id="rangenavigator1" labelSettings = {labelSettings} ></EJ.RangeNavigator>,
                        
                      document.getElementById('rangenavigator')
                  );