Spec-Zone.ru › Dart 2

dart:html

registerElement method

  1. @deprecated
void registerElement(
  1. String tag,
  2. Type customElementClass,
  3. {String? extendsTag}
)

Deprecated: This is a legacy API based on a deprecated Web Components v0.5 specification. Web Components v0.5 doesn't work on modern browsers and can only be used with a polyfill.

The latest Web Components specification is supported indirectly via JSInterop and doesn't have an explicit API in the dart:html library.

Implementation

@deprecated
void registerElement(String tag, Type customElementClass,
    {String? extendsTag}) {
  registerElement2(
      tag, {'prototype': customElementClass, 'extends': extendsTag});
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-html/Document/registerElement.html

Spec-Zone.ru

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