Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Small icons for custom form-elements

$
0
0

Hi,

I created some custom form-elements and I whant to set the small icon shown in the form-element listings in Edit-mode. According to the documentation the icons are sett using the css class ".epi-forms-icon.epi-forms-icon--small.epi-forms-*****__icon", where ***** is the name of the element.

Link to documentation: https://world.episerver.com/documentation/developer-guides/forms/creating-form-element-with-validator/

Now to the problem, where do I put the CSS file? I now use module.config in root using "epi-cms.widgets.base" to locate my css file, but this feels like a hack. Is this the way to go or is there another solution to this problem?

Another thing: ".epi-forms-icon.epi-forms-icon--small.epi-forms-mycustomelementblock__icon" only sets style for the small icon in the selection menu not the small icon in the row of elements in selected form elements. See Image below


Viewing all articles
Browse latest Browse all 9076

Trending Articles