biigpongsatorn / vue-slide-bar

🎢 A Simple Vue Slider Bar Component.
https://biigpongsatorn.github.io/#/vue-slide-bar
MIT License
154 stars 32 forks source link

stop draggable tooltip #18

Closed saraMElsanan closed 5 years ago

saraMElsanan commented 6 years ago

is there any way to disable the draggable tooltip ?

biigpongsatorn commented 6 years ago

@saraMElsanan Try this, I'm not sure.

<vue-slide-bar>
   <template slot="tooltip" slot-scope="tooltip">
      <span style="display:none;"></span>
   </template>
</vue-slide-bar>
biigpongsatorn commented 6 years ago

You need to hide tooltip right ?

saraMElsanan commented 6 years ago

You need to hide tooltip right ?

no i want to disable the drag action ... well i made it with css ... i added after for the containing div and gave it position absolute , z-index 9 but i got a new issue in the direction, the website i'm working on is rtl and ltr ... i have a problem in rtl , i can't make the slider starts from right and so is the tooltip image any help please

saraMElsanan commented 6 years ago

well i added a new Boolean prop for rtl ... and i manged to do so far ... but i still got a problem in the position of the tooltip ... the problem now is in the translateX and values image so what should i do ?

biigpongsatorn commented 6 years ago

@saraMElsanan I published new version of vue-slide-bar to 1.1.7 use can use new ability for active/disable draggable by prop draggable.

example for disable draggable.

<VueSlideBar v-model="value1" :draggable="false"/>

Hope you like this.

saraMElsanan commented 6 years ago

yes that's a great feature , thanx alot I'm still working on the RTL feature for the component , I manged to make it right but when it comes to drag in RTL it doesn't work , i sent you my updates to your email

Dimatymoshchenko commented 5 years ago

@biigpongsatorn you didn't update npm package, package uses 1.1.5

biigpongsatorn commented 5 years ago

@Craft4u I updated draggable feature to 1.1.7.but RTL not yet.

https://www.npmjs.com/package/vue-slide-bar

biigpongsatorn commented 5 years ago

@saraMElsanan Thank you for your contribution. Currently, I'm so busy, I will review your pr later.

Sorry.

biigpongsatorn commented 5 years ago

@Craft4u Sorry I forget to build lib and I publish old version to 1.1.7, Please update version to 1.1.9