In BellaDati it is possible to change the appearance of almost any elemtent on the screen. This example will show you how to change appearance of filter components. At the end basic radio buttons will be transformed into clickable buttons. Knowledge of HTML and CSS is required.
Create a report which will contain a filter with radio button component. In this example a filter inside view is used but similiar approach can be used for other types of filters. By default it will look something like this:
It is possible to add custom CSS by using look and feel settings of your domain or by adding the code to a custom content. In this case custom content will be used since we want to apply the changes only on one report.
- Add new custom content to your report.
- Switch to Source mode.
Hide radio buttons and aligned all options in one row:
Add style to labels which will work as buttons:
You can also add advanced style options such as shadows, rounded corners or transitions:
Add different style for selected and hovered item:
Now you have fully working buttons. Of course it is possible to further change the appearance of the report. In this example we will change the background to be the same as the map and we will also hide the name of filter.
- Finally to have a clean look we will hide all report controls and top bars in Report appearance settings.
- This is the final result:
Complete CSS code:
- You can find the final report and other examples of filter in attached BellaApp.