skip to Main Content

add dynamic class with css binding – Magento

I want to add a class behind payment-method by function with the knockout css binding (in Magento 2.1). So this is the current code: <div class="payment-method" data-bind="css: {'_active': (getCode() == isChecked())}"> <div class="payment-method-title field choice"> <input type="radio" name="payment[method]" class="radio" data-bind="attr:…

VIEW QUESTION
Back To Top
Search