Giter Site home page Giter Site logo

RFC: Progress bar widget about rmlui HOT 2 CLOSED

viciious avatar viciious commented on August 29, 2024
RFC: Progress bar widget

from rmlui.

Comments (2)

mikke89 avatar mikke89 commented on August 29, 2024

Looks useful to me. However I would implement it a bit differently. It is a bit inflexible and awkward to specify the images in attributes. Instead, I suggest doing it more like this:

  • Generate an extra underlying (non-dom) element, kind of like we do in scrollbars, which represents the "filled" value.
  • Now, we can easily use decorators as normal, we can have one for the background, and a separate one for the fill.
  • Clip the fill element such that its width is proportional to its value. We could use an attribute to tell whether this should happen up/down/left/right.

This would be more flexible, allowing us to use any decorator including sprites to style both the background and fill, or just background-color if we like.

Also, it should be part of the controls library in my opinion.

As for the sample, I think we should create a demo sample that demonstrates all the controls (and possibly other features in general), which includes this.

from rmlui.

mikke89 avatar mikke89 commented on August 29, 2024

Implemented in 634543b.

from rmlui.

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.