Comments (1)
A couple more scattered thoughts for consideration:
-
.stylesheet_signal_vec()
/.stylesheet_signal()
- could be useful, for example to implement responsive design on a per-stylesheet basis rather than per-class. This might be even more powerful than media queries in some cases, e.g. the signal could be driven from a ResizeObserver. (implementation note: it seems that adding/removing stylesheets requires re-assigning the array, see discussion here: WICG/construct-stylesheets#45) -
include_stylesheet!()
- to just include a static .css file. not as powerful as being able to use signals (or real Rust variables, etc.), but I think it's worthwhile to let people choose this approach and would then allow dominator shadow-root components to use PostCSS/SASS/etc. -
There's this polyfill for constructable stylesheets... I haven't tried it yet, but if it works as advertised I think it's fair for dominator to just use the native API and say users must use the polyfill if they want cross-browser support today: https://github.com/calebdwilliams/construct-style-sheets
from rust-dominator.
Related Issues (20)
- generate web components HOT 6
- import and encapsulate CSS HOT 18
- examples, debug mode based on watch? HOT 1
- single string multiple class names HOT 6
- Fix examples in Edge HOT 2
- Isomorphic web app? HOT 1
- Change dependencies to minor version HOT 1
- Feat: add Load to events HOT 1
- Feat: dynamic_class_signal HOT 1
- Feat: with_element method on Dom HOT 2
- Question: Tauri integration HOT 1
- Change style to use AsRef<Element>
- Offset_x method for MouseEvent HOT 1
- How to use child_signal HOT 2
- `const_generics` feature has been replaced HOT 2
- Feat: .attrs! HOT 2
- Getting rid of inlined JS HOT 26
- Add `show_picker()` functionality to `focused_signal()` Upon wasm-bindgen/issues/3036 being implemented. HOT 4
- Add routing::replace_url HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-dominator.