Comments (7)
If you do this you need to import BlinkComp in your SRC first.
from domkit.
Can you give an example please, as I don't understand how it will properly resolve the class if the tag name (<blink>
) is different from the class name (BlinkingComp
) from looking at the code here:
Line 70 in e8c6d31
from domkit.
from domkit.
Thanks!
from domkit.
If you do this you need to import BlinkComp in your SRC first.
@ncannasse Could you clarify what you meant here? I also found this issue confusing and I would like to make a PR to make the documentation clearer.
from domkit.
Components are resolved using packages registered with --init MyMacro.init()
that will call for example the following :
domkit.Macros.registerComponentsPath("$");
domkit.Macros.registerComponentsPath("ui.comp.$");
Alternatively, instead of using automatic component resolution you can simply import BlinkingComp
so it's part of the scope and accessible.
from domkit.
Ah, yes, importing seems to make components in other packages accessible.
However, it still does not work if the component class is called BlinkingComp
and the given component name is blink
instead of blinking
, like in the example from above:
@:uiComp("blink")
class BlinkingComp extends h2d.Object implements h2d.domkit.Object {}
from domkit.
Related Issues (20)
- Bitmap : setting src in the css reset src-pos if it was set in SRC declaration HOT 1
- haxelib version is not up to date with Heaps
- Multiple classes attributes
- Rebuild / Bind HOT 6
- [Regression] Text node issue HOT 4
- Failed to load module
- Issue with for iterator
- @:uiInitFunction only works for child classes
- HL bytecode hot reload and DomKit HOT 2
- Domkit License unclear HOT 3
- Adding Bitmap to domkit component, bitmap.dom is null HOT 2
- Transitions HOT 1
- Missing super component registration flow HOT 2
- Array alloc in applyStyle HOT 3
- Multiple CSS files, how to handle HOT 1
- :odd and :even not being refreshed HOT 3
- Uncaught TypeError (JavaScript target) HOT 1
- d9ef202 breaks compilation with the latest released version of haxe HOT 3
- Default component type resolution 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 domkit.