Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Cannot add custom cssClasses to RenderFieldListOption component in Rapido

Cannot add custom cssClasses to RenderFieldListOption component in Rapido

Fabio Monte
Reply

Hello

We are using the tabs logic from Rapido and we tried to replace the element below with a component as per example below:

<input type="radio" class="tabs__trigger" name="productTabs" id="@variants.GetString("Ecom:Product.VariantID")" onchange="bLazy.revalidate()" @isChecked />

Using the RenderFieldListOption component doesn't allow to insert a new cssClass. Currently it has the "form__control" and "dw-mod" classes which doesn't trigger the tabs and displays normal radio buttons.

It would be useful to allow adding custom css classes and use the CssClass property as per example below:

@RenderFieldListOption(new FieldListOption
{
    Type = FieldListOptionType.RadioButton,
    Name = "productTabs",
    Checked = isChecked,
    CssClass = "tabs__trigger",
    Id = variants.GetString("Ecom:Product.VariantID"),
    OnChange = "bLazy.revalidate()"
})

Replies

 
Konstantin Landyshev
Reply

Hi

Fields components (including radio button) are experimental for Rapido 3.1. But in next release (3.2) it will be fixed.

 
Fabio Monte
Reply

Thanks Konstantin, sounds good.

 

You must be logged in to post in the forum