createShadowRoot method

  1. @DomName('Element.createShadowRoot')
  2. @DocsEditable()
  3. @SupportedBrowser(SupportedBrowser.CHROME, '25')
  4. @Experimental()
ShadowRoot createShadowRoot()

Source

@DomName('Element.createShadowRoot')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME, '25')
@Experimental()
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#api-shadow-aware-create-shadow-root
ShadowRoot createShadowRoot() =>
    _blink.BlinkElement.instance.createShadowRoot_Callback_0_(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/createShadowRoot.html