Allow Icon widget input parameters to be set programmically
95
Views
3
Comments
New
Service Studio

In reactive web applications, the Icon widget currently restricts input parameters to fixed design-time values. To enhance flexibility, the following improvements should be implemented: 

  • Runtime-Determined Input Parameters Values:  The input parameters, particularly the Icon Name, should allow values that are calculated at runtime.

  •  Optional Design Time Example Attribute:   This attribute would accept a fixed IconNameId value, specifically for displaying the icon during design time. If the Icon Name attribute is set to a fixed value, the Example attribute would automatically be disabled and show the Icon Name value at design time.

The proposed changes and implementation mimic the existing functionality of the Expression widget.



as a workaround to influence the icon at runtime, you could use an "i" html element, wrap it in your own block, taking the icon name and other similar parameters as the icon widget as input parameters.

Use your own block in those places where the standard icon widget doesn't work for you.

I fully agree with the idea.

Hi Dorine, can you give one example of the workaround.


Thanks