Knowledge Base Article

Reset to Default Filters Button using BloX

This article will explain how to create reset to default filters button in BloX

This helps in case you want to provide this icon functionality on the dashboard and not just in the Filters panel. 

  1. Create a new custom action with the below code: 

 *Make sure you're naming the action 'Click' if you're using the attached dashfile in section 2

var dashboard = payload.widget.dashboard
dashboard.filters.update(dashboard.defaultFilters,{refresh:true})

 

 

 

  1. You can use the dashfile attached (Backtodefaultfilters.dash )

OR

Copy & Paste the below JSON code in the Editor:

{
 "style": "",
 "script": "",
 "title": "",
 "showCarousel": true,
 "body": [],
 "actions": [
 {
 "type": "Click",
 "title": "Reset Filters"
 }
 ]
}

 

Updated 02-23-2024

22 Comments