无法使用自定义 CalloutButton 组件将 * 解析为组件实现
我在名为 uiComponents 的包中有一个自定义 CalloutButton 组件。需要这个自定义 CallOutButton 是因为我需要其中更多属性。
此 CalloutButton 像往常一样添加到我的 MXML 中;
<uiComponents:MyCustomCalloutButton someproperties here >
</uiComponents:My...>
现在,附带的 s:calloutContent 出现编译错误,(几乎标准的)无法解析...
自然,命名空间已导入
我在这里缺少什么?这让我发疯了一个多小时了。任何帮助将不胜感激!
干杯!
I've got a custom CalloutButton component in a package called uiComponents. This custom CallOutButton is needed because I need some more properties in it.
This CalloutButton gets added to my MXML like usual;
<uiComponents:MyCustomCalloutButton someproperties here >
</uiComponents:My...>
Now, the enclosed s:calloutContent gets a compilation error, the (almost standard) could not resolve...
Naturally, the namespace has been imported
What am I missing here? This is driving me nuts for more than an hour now. Any help would be greatly appreciated!
Cheers!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于错误是由
s:calloutContent
标记生成的;不是uiComponents:MyCustomCallOutButton
标记;解决方案是,在许多情况下,封闭的标签必须使用与其父级相同的命名空间,因此将其替换为 uiComponents:calloutContent ,而不是这样:
您需要这样做:
Since the error was generated from the
s:calloutContent
tag ; not theuiComponents:MyCustomCallOutButton
tag; the solution was that in many situations, enclosed tags must use the same namespace as their parent, so replace it withuiComponents:calloutContent
So instead of this:
You'll need to do this: