Topic: Range input documentation

osoverflow pro asked 5 years ago


I want to know where is the full documentation of this component.

Also I want to know if it is possible to disable or change the output of the slider when moved. what i want to remove


Damian Gemza staff answered 5 years ago


Dear osoverflow,

There's no such possibility to customize the text inside that blue circle or hide it with the slider API.

But you can hide the blue circle with css code. Just add the below code to your styles.scss file:

.range-input {
    display: none !important;
}

If you want to customize the displayed text, you can listen for (rangeValueChange) event, and use the value from this event to display range value with your needed structure.

Here's the below code:

.html:

<mdb-range-input id="range" min="0" max="100" (rangeValueChange)="onRangeValueChange($event)"></mdb-range-input>
    <h1>Range value: {{rangeValue}}</h1>

.ts:

rangeValue = null;

  onRangeValueChange(event: any) {
    this.rangeValue = event.value;
  }

Best Regards,

Damian


Damian Gemza staff answered 5 years ago


Dear osoverflow,

Here's the documentation for the mdb-range-input component: https://mdbootstrap.com/docs/angular/forms/slider/

Could you please describe one more time, what do you want to achieve exactly? Do you want to modify the output? Which output? The value in this blue circle at the top of the slider, or something else?

Best Regards,

Damian


osoverflow pro commented 5 years ago

Yes sure, the value of the blue circle at top of slider. I want or customize the text inside for each step, or hide the full circle.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.4.2
  • Device: pc
  • Browser: chrome
  • OS: mac
  • Provided sample code: No
  • Provided link: No