rangeSelector

package
v1.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateRange

type DateRange struct {
	Range
	MonthValues []string `json:"month_values"`
	YearValues  []string `json:"year_values"`
}

DateRange extends range with month and year values

type Filter

type Filter struct {
	Label     string `json:"label"`
	RemoveURL string `json:"remove_url"`
	ID        string `json:"id"`
}

Filter represents an item in the filter basket

type Link struct {
	Label string `json:"label"`
	URL   string `json:"url"`
}

Link represents a link

type Page

type Page struct {
	model.Page
	Data     RangeSelector `json:"data"`
	FilterID string        `json:"job_id"`
}

Page represents a range selector page

type Range

type Range struct {
	URL        string   `json:"url"`
	Values     []string `json:"values"`
	StartLabel string   `json:"start_label"`
	EndLabel   string   `json:"end_label"`
}

Range represents a range on the page

type RangeSelector

type RangeSelector struct {
	AddAllChecked     bool      `json:"add_all_checked"`
	AddAllInRange     Link      `json:"add_all"`
	AddFromList       Link      `json:"add_from_list"`
	AddRange          Link      `json:"add_range"`
	AddNewRange       Link      `json:"add_new_range"`
	Cancel            Link      `json:"cancel"`
	DateRangeData     DateRange `json:"date_range,omitempty"`
	FiltersAmount     int       `json:"filters_amount"`
	FiltersAdded      []Filter  `json:"filters_added"`
	NumberOfSelectors int       `json:"num_of_selectors"`
	RemoveRange       Link      `json:"remove_range"`
	RemoveAll         Link      `json:"remove_all"`
	RangeData         Range     `json:"range_values"`
	SaveAndReturn     Link      `json:"save_and_return"`
	Title             string    `json:"title"`
}

RangeSelector represents data fields on the page

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL