counters (decimals and %)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10037998
    Resilient Brands
    Participant

    good morning,
    can you please show me how to add a decimal to a percentage counter.
    I would like to display 7.5% for example.

    thanks,



    Template Version: corporate 16
    #10038001
    Support
    Keymaster

    Hello, you can find examples below:

    <div class="row">
    	<div class="col">
    		<div class="row counters">
    			<div class="col-sm-6 col-lg-3 mb-4 mb-lg-0">
    				<div class="counter counter-primary">
    					<strong data-to="70.13" data-plugin-options="{'decimals': 2}">0</strong>
    					<label>Decimals</label>
    				</div>
    			</div>
    			<div class="col-sm-6 col-lg-3 mb-4 mb-lg-0">
    				<div class="counter counter-with-unit counter-primary">
    					<strong>$</strong>
    					<strong data-to="15">0</strong>
    					<label>Currency</label>
    				</div>
    			</div>
    			<div class="col-sm-6 col-lg-3 mb-4 mb-sm-0">
    				<div class="counter counter-with-unit counter-primary">
    					<strong data-to="78">0</strong>
    					<strong>%</strong>
    					<label>Percentual</label>
    				</div>
    			</div>
    			<div class="col-sm-6 col-lg-3">
    				<div class="counter counter-primary">
    					<strong data-to="5000" data-append="+">0</strong>
    					<label>Append Symbol</label>
    				</div>
    			</div>
    		</div>
    	</div>
    </div>

    Let me know if you need further assistance.

    Kind Regards,

    Jonas


Viewing 2 posts - 1 through 2 (of 2 total)

This topic is marked as "RESOLVED" and can not rceive new replies.