{"id":18834057,"url":"https://github.com/pimlie/vue-bootstrap-slider","last_synced_at":"2025-04-14T04:32:16.537Z","repository":{"id":57394707,"uuid":"95834801","full_name":"pimlie/vue-bootstrap-slider","owner":"pimlie","description":"Vue.js bindings for seiyria/bootstrap-slider","archived":false,"fork":false,"pushed_at":"2019-03-05T12:54:17.000Z","size":750,"stargazers_count":16,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T01:48:23.810Z","etag":null,"topics":["bootstrap","bootstrap-slider","vue","vue-bootstrap-slider"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pimlie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-30T01:23:21.000Z","updated_at":"2021-05-23T17:46:45.000Z","dependencies_parsed_at":"2022-09-19T17:20:20.705Z","dependency_job_id":null,"html_url":"https://github.com/pimlie/vue-bootstrap-slider","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimlie%2Fvue-bootstrap-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimlie%2Fvue-bootstrap-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimlie%2Fvue-bootstrap-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimlie%2Fvue-bootstrap-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pimlie","download_url":"https://codeload.github.com/pimlie/vue-bootstrap-slider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248821917,"owners_count":21166979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap-slider","vue","vue-bootstrap-slider"],"created_at":"2024-11-08T02:07:02.216Z","updated_at":"2025-04-14T04:32:12.326Z","avatar_url":"https://github.com/pimlie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e :warning: Please note this package is just a wrapper and not really a vue component. If you are looking for a real vue slider component take a look at [vue-slider-component](https://github.com/NightCatSama/vue-slider-component) which recently added support for custom themes\n\n# Vue.js Bootstrap Slider\n[![npm](https://img.shields.io/npm/dt/vue-bootstrap-slider.svg?style=flat-square)](https://npmjs.com/package/vue-bootstrap-slider)\n[![npm](https://img.shields.io/npm/v/vue-bootstrap-slider.svg?style=flat-square)](https://npmjs.com/package/vue-bootstrap-slider)\n\n\u003e Easily use [seiyria's Bootstrap Slider component](https://github.com/seiyria/bootstrap-slider) in Vue.js\n\nClick [here](https://pimlie.github.io/vue-bootstrap-slider/example.html) for a live example\n\n## How to install\nInstall from npm with:\n```\nnpm install --save vue-bootstrap-slider\n```\n\nThe default export of this package is a VuePlugin.\n```js\nimport bFormSlider from 'vue-bootstrap-slider';\nVue.use(bFormSlider)\n```\nif you wish to import the component you can use:\n```js\nimport bFormSlider from 'vue-bootstrap-slider/es/form-slider';\n```\n\nNext import the bootstrap-slider styles (or use less or sass):\n```js\nimport 'bootstrap-slider/dist/css/bootstrap-slider.css'\n```\n\n## Options\n\n### `debounce`\n- Default: `0` milliseconds\nThe events triggered by `bootstrap-slider` originates from mouse-move events and can easily flood your listeners. Setting this value will debounce the events trigger. You can also just debounce or throttle your own listener\n\n### `trigger-slide-event`\n- Default: `false`\nIf the slide event should be triggered when programmatically setting the value\n\n### `trigger-change-event`\n- Default: `false`\nIf the change (and input) event should be triggered when programmatically setting the value\n\n\nSee [bootstrap-slider](https://github.com/seiyria/bootstrap-slider) for a full list of options\n\n\u003e :exclamation: When listening to slider events, listen to the kebab-case'd event name and not the camelCase'd. E.g. listen for `@slide-start` and not for `@slideStart`\n\n\n## Example\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cb-form-slider :value=\"value\" @slide-start=\"slideStart\" @slide-stop=\"slideStop\"\u003e\u003c/b-form-slider\u003e\n    \u003cp\u003eSlider has value {{ value }}\u003c/p\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n  data () {\n    return {\n      value: 5\n    }\n  },\n  methods: {\n    slideStart () {\n      console.log('slideStarted')\n    },\n    slideStop () {\n      console.log('slideStopped')\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n### Exclude jQuery dependency\nBy default seiyria/bootstrap-slider requires jquery which means that if you include this package you will also add jquery to your project. If you do not use jquery anywhere in your project, check [here](https://github.com/seiyria/bootstrap-slider#how-do-i-exclude-the-optional-jquery-dependency-from-my-build) how to prevent the full jquery library from being added to your project build.\nIf you are using `nuxt` you can set the following in your `nuxt.config.js`:\n```js\n{\n  build: {\n    extend (config, ctx) {\n      config.resolve.alias['jquery'] = '~components/jquery-stub.js'\n    }\n  }\n}\n```\n\n### Direct access to the Slider object from your component\n```js\n\u003cb-form-slider ref=\"mySlider\"\u003e\u003c/b-form-slider\u003e\n\nconst mySlider = this.$refs.mySlider\nmySlider.slider.refresh()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimlie%2Fvue-bootstrap-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpimlie%2Fvue-bootstrap-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimlie%2Fvue-bootstrap-slider/lists"}