Documentation ¶
Index ¶
- Constants
- func GetPagingFromGlobalState(globalState cptype.GlobalStateData) (pageNo int, pageSize int)
- func IdNameValuesToSelectOptions(values []*IdNameValue) []model.SelectOption
- func SetPagingToGlobalState(globalState cptype.GlobalStateData, opData table.OpTableChangePageClientData)
- func SetSortsToGlobalState(globalState cptype.GlobalStateData, opData table.OpTableChangeSortClientData)
- type ConfigurableFilterOptions
- func (f *ConfigurableFilterOptions) DecodeFromClientData(data filter.OpFilterClientData) *ConfigurableFilterOptions
- func (f *ConfigurableFilterOptions) GetFromGlobalState(gs cptype.GlobalStateData) *ConfigurableFilterOptions
- func (f *ConfigurableFilterOptions) SetToGlobalState(gs cptype.GlobalStateData)
- func (f *ConfigurableFilterOptions) UpdateName(name string) *ConfigurableFilterOptions
- type DataRef
- type IdNameValue
- type InParams
- type NotifyAttributes
- type Sort
Constants ¶
View Source
const ( ComponentNameConfigurableFilter = "configurableFilter" ComponentNameSearchFilter = "searchFilter" ComponentNameTable = "table" )
View Source
const ( GlobalStateKeyConfigurableFilterOptionsKey = "gsConfigurableFilterOptions" GlobalStateKeySearchFilterOptionsKey = "gsSearchFilterOptions" GlobalStateKeyPaging = "table_paging" GlobalStateKeySort = "table_sort" )
View Source
const DefaultPageSize = 20
View Source
const ScenarioKey = "msp-notify-list"
Variables ¶
This section is empty.
Functions ¶
func GetPagingFromGlobalState ¶
func GetPagingFromGlobalState(globalState cptype.GlobalStateData) (pageNo int, pageSize int)
func IdNameValuesToSelectOptions ¶
func IdNameValuesToSelectOptions(values []*IdNameValue) []model.SelectOption
func SetPagingToGlobalState ¶
func SetPagingToGlobalState(globalState cptype.GlobalStateData, opData table.OpTableChangePageClientData)
func SetSortsToGlobalState ¶
func SetSortsToGlobalState(globalState cptype.GlobalStateData, opData table.OpTableChangeSortClientData)
Types ¶
type ConfigurableFilterOptions ¶
type ConfigurableFilterOptions struct { NotifyName string `json:"notifyName"` Status string `json:"status"` Channel string `json:"channel"` AlertId int64 `json:"alertId"` SendTime []int64 `json:"sendTime"` }
func NewConfigurableFilterOptions ¶
func NewConfigurableFilterOptions() *ConfigurableFilterOptions
func (*ConfigurableFilterOptions) DecodeFromClientData ¶
func (f *ConfigurableFilterOptions) DecodeFromClientData(data filter.OpFilterClientData) *ConfigurableFilterOptions
func (*ConfigurableFilterOptions) GetFromGlobalState ¶
func (f *ConfigurableFilterOptions) GetFromGlobalState(gs cptype.GlobalStateData) *ConfigurableFilterOptions
func (*ConfigurableFilterOptions) SetToGlobalState ¶
func (f *ConfigurableFilterOptions) SetToGlobalState(gs cptype.GlobalStateData)
func (*ConfigurableFilterOptions) UpdateName ¶
func (f *ConfigurableFilterOptions) UpdateName(name string) *ConfigurableFilterOptions
type IdNameValue ¶
type IdNameValue struct { Id interface{} Name string }
type NotifyAttributes ¶
type Sort ¶
func GetSortsFromGlobalState ¶
func GetSortsFromGlobalState(globalState cptype.GlobalStateData) []*Sort
Click to show internal directories.
Click to hide internal directories.