Chankya
  • Introduction
  • Getting Started
  • Start Building
  • Layouts
  • Seed Project
  • Style Customisation
  • Third Party Modules
  • UI Elements
    • Buttons
    • Progress Bar
    • Tabs
    • Accordions
    • Pagination
    • Tooltip
    • Cards
    • Social Icons
    • Typography
    • Drop down
    • Alerts
    • Carousel
    • Date picker
    • Slider
  • Components
    • List
    • Grid
  • Contact Us
    • Hire Us
  • Changelog
Powered by GitBook
On this page

Was this helpful?

  1. UI Elements

Slider

UiSlider is a range slider without bloat. It offers a ton off features, and it is as small, lightweight and minimal as possible, which is great for mobile use on the many supported devices, including iPhone, iPad, Android devices & Windows (Phone) 8 desktops, tablets and all-in-ones. It works on desktops too, of course!

<nouislider [min]="someMin" [max]="someMax" [step]="0.05" [(ngModel)]="someValue" (ngModelChange)="onChange($event)" [disabled]="disabled"></nouislider>
<div class="btn-group mb-1 mr-1">
    <button type="button" class="btn btn-primary" [disabled]="disabled" (click)="changeSomeValue(-1)">-1</button>
    <button type="button" class="btn btn-primary" [disabled]="disabled" (click)="changeSomeValue(1)">+1</button>
</div>
<div class="btn-group mb-1 mr-1">
    <button type="button" class="btn btn-primary" [disabled]="disabled" (click)="changeSomeMin(-1)">-1</button>
    <button type="button" class="btn btn-primary" [disabled]="disabled" (click)="changeSomeMin(1)">+1</button>
</div>
<div class="btn-group mb-1 mr-1">
    <button type="button" class="btn btn-primary" [disabled]="disabled" (click)="changeSomeMax(-1)">-1</button>
    <button type="button" class="btn btn-primary" [disabled]="disabled" (click)="changeSomeMax(1)">+1</button>
</div>
<div class="btn-group mb-1 mr-1">
    <button type="button" class="btn btn-primary" [class.active]="disabled" (click)="disabled=!disabled">Disable</button>
</div>

PreviousDate pickerNextComponents

Last updated 6 years ago

Was this helpful?