class PolymerDeclaration


Warning this class is experimental and subject to change.

The data associated with a polymer-element declaration, if it is backed by a Dart class instead of a JavaScript prototype.

Static Methods

isInstanceAttribute(name) → bool

Constructors

PolymerDeclaration(HtmlElement element, String name, Type type, PolymerDeclaration superDeclaration)

Properties

element → HtmlElement

The polymer-element for this declaration.

read-only
extendee → String

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
name → String

The name of the custom element.

read-only
publishedProperties → Iterable<String>

The names of published properties for this polymer-element.

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
sheets → List<Element>

read-only
styles → List<Element>

read-only
superDeclaration PolymerDeclaration

If we extend another custom element, this points to the super declaration.

read-only
syntax PolymerExpressions

read / write
templateContent → DocumentFragment

read-only
type → Type

The Dart type corresponding to this custom element declaration.

read-only

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

accumulateInstanceAttributes() → void

addAttributeDelegates(Map<String, String> delegates) → void

cacheSheets() → void

cacheStyles() → void

createPropertyAccessors() → void

cssTextForScope(String scopeDescriptor) → String

cssTextToScopeStyle(String cssText, String scopeDescriptor) → StyleElement

desugar() → void

Implement various declarative features.

explodeObservers() → void

Fetch a list of all methods annotated with ObserveProperty so we can observe the associated properties.

fetchTemplate() → Element

findNodes(String selector, [bool matcher(Element e)]) → List<Element>

inferObservers() → void

Fetch a list of all *Changed methods so we can observe the associated properties.

initResolvePath() → void

installBindingDelegate(Element template) → void

installGlobalStyles() → void

Promotes external stylesheets and style elements with the attribute polymer-scope='global' into global scope. This is particularly useful for defining @keyframe rules which currently do not function in scoped or shadow style elements. (See wkb.ug/72462)

installLocalSheets() → void

Takes external stylesheets loaded in an <element> element and moves their content into a style element inside the <element>'s template. The sheet is then removed from the <element>. This is done only so that if the element is loaded in the main document, the sheet does not become active. Note, ignores sheets with the attribute 'polymer-scope'.

installSheets() → void

Install external stylesheets loaded in <element> elements into the element's template.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
parseHostEvents() → void

Extracts events from the element tag attributes.

publishAttributes(PolymerDeclaration superDecl) → void

publishProperties() → void

register() → void

registerType(String name) → void

resolveElementPaths(Node node) → void

resolvePath(String urlPath, [baseUrlOrString]) → String

styleForScope(String scopeDescriptor) → StyleElement

toString() → String

Returns a string representation of this object.

inherited
urlToPath(String url) → String