cancel
Showing results for 
Search instead for 
Did you mean: 
Community_Admin
Community Team Member
Community Team Member

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. Community_Admin_0-1634626087594.png

Community_Admin_1-1634626087829.gif
  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})

 

Community_Admin_2-1634626399819.png

 

Community_Admin_3-1634626399665.png

 

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

OR

Copy & Paste the below JSON code in the Editor:

Community_Admin_4-1634626399698.png
{
 "style": "",
 "script": "",
 "title": "",
 "showCarousel": true,
 "body": [],
 "actions": [
 {
 "type": "Click",
 "title": "Reset Filters"
 }
 ]
}

 

Comments
bminehart
9 - Travel Pro
9 - Travel Pro

Hi @DRay -- checking this out at your suggestion. It might work, but I'm wondering whether this can be targeted at widgets (or, really, ALL widgets) with a script? I think your snippet above is targeting the Dashboard only?

Version history
Last update:
‎02-23-2024 11:54 AM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: