Version 1.0
Users can create iframe based widgets with LocalFocus. The Widget API consists of small functions that helps developers add simple functionalities, change selections in a chart or hide dropdowns.
The Widgets API works by appending parameters to the widget urls. Multiple parameters can be serialized, to activate or deactivate more items.
One or more dropdown items can be activated via the url in charts, maps and tables.
activate=[item label] Activate an item in any dropdown. Replace values between brackets.
activate|[dropdown label]=[item label] Activate an item in a specific dropdown. Replace values between brackets. Notice the vertical bar character.
Activate Category B
in any dropdown:
https://localfocuswidgets.net/64357eb39f5c6?activate=Category%20B
Activate Category B
in the dropdown Category
:
https://localfocuswidgets.net/642ec8fae9cba?activate|Category=Category%20B
Activate Category B
and Category A
in the dropdown Category
:
https://localfocuswidgets.net/642ec8fae9cba?activate|Category=Category%20B&activate|Category=Category%20A
One or more dropdown items can be deactivated via the url in maps.
deactivate=[item label] Deactivate an item in any dropdown. Replace values between brackets.
deactivate|[dropdown label]=[item label] Deactivate an item in a specific dropdown. Replace values between brackets. Notice the vertical bar character.
Deactivate Category B
in any dropdown:
https://localfocuswidgets.net/642ec95e7b1e5?deactivate=Category%20B
Dectivate Category B
in the dropdown Category
:
https://localfocuswidgets.net/642ec95e7b1e5?deactivate|Category=Category%20B
All dropdowns and search fields can be hidden via the url in charts, maps and tables.
hide=dropdowns Hide dropdowns.
Hide dropdown:
https://localfocuswidgets.net/64357eb39f5c6?hide=dropdowns
Hide dropdown:
https://localfocuswidgets.net/6437d73e5ca1a?hide=dropdowns