Comments (3)
Thanks, so my assumption above was correct. I will try some Vaadin components and see how to handle these "state" attributes that the component owns and distinguish them from "props" that the consumer typically provides.
from api-viewer-element.
Hi, thanks for the issue. Could you please elaborate a bit with some concrete example of what you would expect?
web component may render differently than its origin html snippet
If you mean some "state" attributes (e.g. in Vaadin components we use has-value
, has-label
etc based on presence of a certain property), then it's out of scope for now. If CEM analyzer supports states, we can add those of course.
from api-viewer-element.
take spectrum's button for example.
in order to render the following button
we should simply author <sp-button>OK</sp-button>
the rendered dom tree, however, would output
<sp-button dir="ltr" variant="cta" focusable="" tabindex="0" role="button" size="m">OK</sp-button>
but we wouldn't want authors to get the wrong information and have all that unnecessary code presented in the source
tab
from api-viewer-element.
Related Issues (20)
- Error: UNKNOWN_VALUE: Unknown value: CustomElement.js HOT 3
- Custom elements without exports are not recognized HOT 12
- Support `deprecated` flag
- Distinguish between static properties and instance properties
- The npm watch task is not notified about file changes HOT 3
- CDN errors HOT 6
- Reconsider the demo template syntax
- Style get side effect when rendering in <api-demo>
- Providing shadow part styles to template HOT 3
- Initialize demo imperatively, with code
- How to document methods and method arguments? HOT 6
- Add online playground to demo HOT 1
- cssProperties ignore custom ordering in its JSON value array HOT 1
- Support for Custom Elements Manifest 1.0.0? HOT 2
- feat: setting manifest with json script
- refactor: separate knobs from manifest
- refactor: state management
- Make it possible to pass complex properties (objects, arrays) to element HOT 1
- Support for lit 2 components 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 api-viewer-element.