Comments (5)
Hello @BrainMaestro
As you said, the reason why components are prefixed with mdl
is to make a difference between custom components and native tags like a
or img
, I'm not sure if it's on the HTML5 spec or not, however it does make sense to make the difference. Here's an article about it: http://www.html5rocks.com/en/tutorials/webcomponents/customelements/
You can already register them without a prefix:
import { MdlCheckbox as Checkbox } from 'vue-mdl'
new Vue({
components: {
Checkbox
}
})
IMO it is possible to add an option when registering the plugin to customise the prefix or event delete it:
Vue.use(VueMdl, { prefix: ('' | null | undefined) })
// --> <checkbox></checkbox>
Vue.use(VueMdl, { prefix: 'foo' })
// --> <foo-checkbox></foo-checkbox>
In that case, PR are welcome
from vue-mdc.
Oh that seems like a really cool idea! I'm new to vue but i'll try.
from vue-mdc.
Some tips: the code you have to update is here; https://github.com/posva/vue-mdl/blob/develop/src/vue-mdl.js#L50-L57
You have to add an optional options
parameter to the install function (http://vuejs.org/api/#Vue-use)
from vue-mdc.
After giving it more thought, the change doesn't seem worth it.
Separate question. Do you plan on expanding your components past those in Material Design Lite which is missing quite a few of the components. Or would you rather not do the styling involved.
Great project btw
from vue-mdc.
Ok, no problem
Yes, I do. I also accepts other contributions sometimes. At th moment there is the select and dialog component. They're both unde the custom components category
Thanks!
from vue-mdc.
Related Issues (20)
- An in-range update of vue is breaking the build 🚨
- An in-range update of vue-template-compiler is breaking the build 🚨
- An in-range update of vue is breaking the build 🚨
- An in-range update of vue is breaking the build 🚨
- An in-range update of vue-template-compiler is breaking the build 🚨
- I thought these were real Web Components ie. custom elements HOT 1
- is this compatible with HOT 1
- An in-range update of vue-template-compiler is breaking the build 🚨
- An in-range update of vue is breaking the build 🚨
- An in-range update of extract-text-webpack-plugin is breaking the build 🚨 HOT 1
- How to use single component? HOT 3
- Not working with Nuxt - SSR ready? HOT 4
- problem with checkboxes in Safari 10.0.1 HOT 1
- Demo return invalid request
- Closing drawer doesn't release body scroll block HOT 2
- Documentation HOT 1
- Bind menu dynamically to list items
- mdl-spinner not working HOT 1
- Handle dialog accept/cancel events HOT 1
- MDL Slider - valueNumber missing setter
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-mdc.