Spec-Zone.ru › Dart 1

dart:html

Конструктор Element.created

Element.created()

Конструктор создания пользовательского элемента.

Этот конструктор используется DOM, когда пользовательский элемент был создан. Его может вызывать только подкласс Element из конструктора этого класса.

class CustomElement extends Element {
  factory CustomElement() => new Element.tag('x-custom');

  CustomElement.created() : super.created() {
     // Perform any element initialization.
  }
}
document.registerElement('x-custom', CustomElement);

Исходный код

Element.created() : super._created() {
  // Validate that this is a custom element & possibly perform additional
  // initialization.
  _blink.Blink_Utils.initializeCustomElement(this);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Element/Element.created.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API