
package com.emitrom.touch4j.client.core.config;

import com.emitrom.touch4j.client.core.JsoHelper;
import com.emitrom.touch4j.client.ui.Slider;

/**
 * Configuration class to be used by {@link Slider}
 */
public class ToggleConfig extends SliderConfig {

    public ToggleConfig() {
    }

    /**
     * CSS class added to the field when toggled to its maxValue
     * 
     * Defaults to: "x-toggle-on"
     * 
     * @param value
     */
    public void setMaxValueCls(String value) {
        JsoHelper.setAttribute(jsObj, Attribute.MAX_VALUE_CLS.getValue(), value);
    }

    /**
     * CSS class added to the field when toggled to its minValue
     * 
     * Defaults to: "x-toggle-off"
     * 
     * @param value
     */
    public void setMinValueCls(String value) {
        JsoHelper.setAttribute(jsObj, Attribute.MIN_VALUE_CLS.getValue(), value);
    }

}
