Comments (4)
@usamamashkoor you can do it like this:
<head>
... your other scripts here ...
<script src="//cdn.jsdelivr.net/npm/[email protected]"></script>
</head>
And then before you construct your Vue application, add this:
window['vue-js-toggle-button'].default.install(Vue);
from vue-js-toggle-button.
This is page with a cdn url
https://www.jsdelivr.com/package/npm/vue-js-toggle-button?tab=collection
but not sure how to import and Vue.use(ToggleButton)
it?
from vue-js-toggle-button.
Also wondering how to use the Component in a simple HTML page. I don't have the ability 'import' due to the software I'm integrating with. With the BootstrapVue components they "just work" as long as I reference the js/css URLs, but this one I can't figure out how to render the components.
from vue-js-toggle-button.
... or you can use this call
Vue.use(window['vue-js-toggle-button'].default)
from vue-js-toggle-button.
Related Issues (20)
- Request: Remove scoped attribute on <style> HOT 2
- how to use rtl? HOT 2
- Toggle is not visually focusable
- Focus for accessibility HOT 2
- No animation when sync is true HOT 1
- Toggle button stuck on switch HOT 2
- The button doesn't switch with Vuex HOT 1
- reverse button switch state HOT 1
- text color & padding between text and swticher
- Display both labels
- toggle is not very sensitive,click is better
- Support font-size property
- Project Abandoned HOT 1
- Add loading/busy flag to show spinner inside toggle
- Css Issue
- Images /Icons as labels HOT 1
- Not able to test using jest HOT 1
- Can not custom font-weight of labels
- Vue3 support solution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-js-toggle-button.