Code Monkey home page Code Monkey logo

Comments (4)

marcosmoura avatar marcosmoura commented on May 18, 2024 1

I have plans to implement the first.
The config is good for the theming engine, but I need to think about on the impacts that this will cause, like toggling this property. In this case the mdCore should remove/add the class if the property change? The md-content component is a must have, but I don't think that needs to be shipped with a md-scroll class by default.

But without doubt the scrollbar thing will be optional. :)

from vue-material.

marcosmoura avatar marcosmoura commented on May 18, 2024 1

Already implemented and will be shipped on the very next release (v0.3.0)

from vue-material.

marcosmoura avatar marcosmoura commented on May 18, 2024

Thanks for reporting this.
You're right. Another reason: When using only a single component the scrollbars come for free with mdCore module. This is not good at all. This will change on 0.3.0.
I have some ideas to deal with scrollbars:

A css class:

<html class="md-scrollbar">

A css class and a configurable property in mdCore component:

Vue.material.scrollBar = true 

In this scenario the md-scrollbar will be added to html tag by default.

As a component:

<md-content></md-content>

In this case will be like a container div with some options:

  • md-scroll
  • md-scroll-y
  • md-scroll-x

And this will work like on Angular Material.

What do you think?

from vue-material.

fiws avatar fiws commented on May 18, 2024

👍 sounds good for me! Do you plan to implement all 3 solutions or just one? I think the css class and the component are a good idea.
The config property seems unnecessary. (just my opinion again) But I'm fine with it, if it is false by default.

from vue-material.

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.