Giter VIP home page Giter VIP logo

Comments (2)

joelshepherd avatar joelshepherd commented on May 9, 2024 1

Hi! I plan to do a few changes to the dashboard CSS in the future, however customisability does fit the mantra of what Tabliss is about, so I do support the idea. Maybe mark it as Advanced/supply a warning message under the CSS box that states changes this is for advanced usage and the styles may update from time to time (or I could add something to that effect).

As for actual implementation, you are correct about the two components, one for dashboard that handles the actual widget logic, and one for settings that goes in the settings menu. Now I don't think there is a nice "React way" to inject user-definable CSS into the global scope, so you may need to settle for a dirty document.createElement hack to have it work. Just make sure you remove it again when the component is unmounted! Check the font widget for which lifecycle functions attach and detach are called from.

from tabliss.

defmonk0 avatar defmonk0 commented on May 9, 2024

If I started working on this, would you accept a PR? My idea is to supply a new widget with a textbox in the settings to paste the CSS, and then add a style tag to the UI with the css inside.

I've not used react in the past (I've been in more in the Angular camp), so if you can think of a significantly better way, let me know. From what I understand by looking at the source, the widget has two elements: a default one (for the UI), and a settings one (for the left-side settings bar). It seems pretty straightforward.

@joelshepherd

from tabliss.

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.