在polymer-dart 1.0.rc中访问静态属性的不同方法有哪些

时间:2015-12-14 03:17:08

标签: dart dart-polymer

给出以下要素

.dart

@PolymerRegister('x-custom')
class XCustom extends PolymerElement {
  XCustom.created() : super.created();

  static const hostAttributes = const {
    'string-attribute': 'Value',
    'boolean-attribute': true,
    'tabindex': 0,
  };
}

中动态生成结果

的.html

<x-custom string-attribute="Value" boolean-attribute tabindex="0">
</x-custom>

在x-custom是孩子的另一个.html和.dart文件中访问静态设置的hostAttributes有哪些不同的方法?

0 个答案:

没有答案