angular-rangeslider icon indicating copy to clipboard operation
angular-rangeslider copied to clipboard

Add a direction option so on vertical orientation values can be bottom-to-top.

Open cirilomegg opened this issue 10 years ago • 6 comments

I need to add the slider but on vertical orientation with values from bottom-to-top. Currently it supports only top-to-bottom. Is it correct?

Update: I am able to workaround that by setting negative numbers for min/max/model-min but it would be nice to have an option to do that automatically.

<div range-slider
    min="-100"
    max="-30"
    model-min="model.zoomValue"
    orientation="vertical"
    on-handle-up="zoomChart()"
    pin-handle="max"
    show-values="false">
</div>

cirilomegg avatar Dec 16 '14 23:12 cirilomegg

+1

knitzie avatar Mar 13 '15 16:03 knitzie

+1

albizures avatar Apr 28 '15 17:04 albizures

How is this still even an issue? It is absolutely unfathomable why this was even released to the public like this...

dsifford avatar Sep 13 '15 23:09 dsifford

To those experiencing this issue -- Follow @cirilomegg 's instructions, and then add this css to your stylesheets to hide the negative sign.

.ngrs-value.ngrs-value-min,
.ngrs-value.ngrs-value-max {
    width: 33px;
    margin-left:auto;
    margin-right:auto;
    text-align:right;
    overflow:hidden;
    white-space: nowrap;
}

.ngrs-value.ngrs-value-min > div,
.ngrs-value.ngrs-value-max > div {
  float:right;
  font-size: 1.2em;
  color: #333;
  font-weight: 600;
}

dsifford avatar Sep 14 '15 00:09 dsifford

@dsifford it is open source. Why not contribute a PR?

danielcrisp avatar Sep 14 '15 08:09 danielcrisp

+1

think2011 avatar Oct 20 '15 03:10 think2011