Giter VIP home page Giter VIP logo

Comments (3)

cassioscabral avatar cassioscabral commented on May 29, 2024

Could we get some background slot for the title ? I'm using a dynamic url passing down with a prop and will be good to be able to change that. Thanks

P.S.: Are you still working on that ? I'm new to Vue and I believe I could help with this issue and maybe future issues also. Would be a great way to understand more about Vue/Vue-MDL and contribute in general.

from vue-mdc.

posva avatar posva commented on May 29, 2024

Hi. Do you mean like the example in the doc? http://posva.net/vue-mdl/#cards
I'm always looking forward new contributions 😄
I'm not working on this specific thing, so you can go for it. The main issue here is that you have to fix the height too

from vue-mdc.

cassioscabral avatar cassioscabral commented on May 29, 2024

I see that you change the background-url in the CSS like that:

background: url('http://www.getmdl.io/assets/demos/welcome_card.jpg') center / cover;

I would like to change that URL passing the value via some prop or data. I was able to pass a value to media which works since the value is inserted in the img src. But couldn't figure out how to change the background alone. Something like below or just a better way to deal with custom styles in general:

<mdl-card :title="cardTitle" :supporting-text="supportingText" actions="actions" actions-text="View updates" :title-background="myBackground">
</mdl-card>

Sorry if I said something weird, today is the first day of coding with Vue and I'm still confused with a couple stuff =)

I will take a look in this issue more in depth then. Can you explain more about the checkpoints though?

Expand on Title means expand on clicking in the title ?
Menu icon and interactions, it's about the option actions ?
Are there any custom events being fired to be documented ?

Thank you

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.