Giter VIP home page Giter VIP logo

Comments (5)

posva avatar posva commented on May 28, 2024

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.

BrainMaestro avatar BrainMaestro commented on May 28, 2024

Oh that seems like a really cool idea! I'm new to vue but i'll try.

from vue-mdc.

posva avatar posva commented on May 28, 2024

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.

BrainMaestro avatar BrainMaestro commented on May 28, 2024

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.

posva avatar posva commented on May 28, 2024

Ok, no problem 😄 closing the issue then
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.