Skip to main content
Version: 0.4.x

DateRangeParameterOption

The class for parameter options of date range parameters. Note that only one option can appear at a time, but different options may appear based on authenticated user or parent parameter selections. See ParameterOption page for more details on the common constructor arguments.

Can be found in the classpath squirrels.parameter_options.DateRangeParameterOption or squirrels.DateRangeParameterOption.

Constructor​

Creates a DateRangeParameterOption object.

Required Arguments:

  • default_start_date: A string or date (from datetime package). This is the default selected start date for this option
  • default_end_date: A string or date (from datetime package). This is the default selected end date for this option
    • Must be a date after "default_start_date"

Optional Keyword Arguments: