actions_explore_page top-level property
read / write
Implementation
ExplorePageArguments actions_explore_page = ExplorePageArguments(
title: "Actions",
sections: [
ExploreSectionArguments(
title: "Actions of the month",
baseParams: {
"of_the_month": true,
},
type: ExploreSectionType.Action),
ExploreSectionArguments(
title: "Actions by cause",
filter: ByCauseExploreFilter(),
type: ExploreSectionType.Action,
),
ExploreSectionArguments(
title: "Actions by time",
filter: TimeExploreFilter(),
type: ExploreSectionType.Action,
),
ExploreSectionArguments(
title: "Actions by type",
filter: ExploreFilter(
parameterName: "type__in",
multi: false,
options: actionTypes
.map((type) => ExploreFilterOption(
displayName: type.name,
parameterValue: campaignActionTypeData.values
.where((value) => value['type'] == type)
.map((value) => value['name'])
.toList(),
))
.toList(),
),
type: ExploreSectionType.Action,
),
ExploreSectionArguments(
title: "Completed actions",
baseParams: {
"completed": true,
},
backgroundColor: CustomColors.lightOrange,
type: ExploreSectionType.Action,
),
],
);