WEB DEVELOPER SITE
TUTORIALS HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML


 

Ionic - Toggle


Two choices accessible for the customers. the overwhelming productive appreciation to manage this case is through switch outlines.

Using Toggle

First, we'd like to impact a name for an indistinguishable reason we to tend to cleared up inside the past area and dole out a Maine class to that.

<label class = "ME">
    <input type = "checkbox" />
    <div class = "track">
        <div class = "handle"></div>
    </div>
</label>

<br>

<label class = "ME">
    <input type = "checkbox" />
    <div class = "track">
        <div class = "handle"></div>
    </div>
</label>

Inside our name will be made .

You will see two progressively ionic classes utilized in the accompanying precedent. The track class will add foundation styling to our checkbox and shading liveliness when the switch is tapped.

Multiple Toggles

The class that is used for various switches is that the thing flip. consequent point of reference shows the best way to deal with make a stock for switches. the fundamental one and as such the other square measure checked.

<ul class = "list">
    <li class = "item item-ME">
        ME 1
        <label class = "ME">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-ME">
        ME 2
        <label class = "ME">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-ME">
        ME 3
        <label class = "ME">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-ME">
        ME 4
        <label class = "ME">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>
</ul>

Styling Toggle

All the Ionic color classes can be applied to the toggle element. The Prefix will be the toggle. We will apply this to the label element.
<ul class = "list">
    <li class = "item item-toggle">
        Toggle Light
        <label class = "toggle  toggle-light">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-toggle">
        Toggle Stable
        <label class = "toggle toggle-stable">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-toggle">
        Toggle Positive
        <label class = "toggle toggle-positive">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-toggle">
        Toggle Calm
        <label class = "toggle toggle-calm">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-toggle">
        Toggle Balanced
        <label class = "toggle toggle-balanced">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-toggle">
        Toggle Energized
        <label class = "toggle toggle-energized">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-toggle">
        Toggle Assertive
        <label class = "toggle toggle-assertive">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-toggle">
        Toggle Royal
        <label class = "toggle  toggle-royal">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>

    <li class = "item item-toggle">
        Toggle Dark
        <label class = "toggle toggle-dark">
            <input type = "checkbox" />
            <div class = "track">
                <div class = "handle"></div>
            </div>
        </label>
    </li>
</ul>

Welookups is optimized for learning.© 2018 kumar aditya singh .
All Right Reserved and you agree to have read and accepted our term and condition.
All Rights Reserved.

welookups.com
Javacodegeeks