UNPKG

isu-elements

Version:

Polymer components for building web apps.

1,602 lines 1.4 MB
{ "schema_version": "1.0.0", "elements": [ { "description": "Example:\r\n ```html\r\n <isu-avatar size=\"50\" src=\"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\"></isu-avatar>\r\n <isu-avatar size=\"large\" src=\"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\"></isu-avatar>\r\n <isu-avatar size=\"medium\" src=\"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\"></isu-avatar>\r\n <isu-avatar size=\"small\" src=\"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\"></isu-avatar>\r\n <isu-avatar shape=\"square\" size=\"50\" src=\"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\"></isu-avatar>\r\n <isu-avatar shape=\"square\" size=\"large\" src=\"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\"></isu-avatar>\r\n <isu-avatar shape=\"square\" size=\"medium\" src=\"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\"></isu-avatar>\r\n <isu-avatar shape=\"square\" size=\"small\" src=\"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\"></isu-avatar>\r\n <isu-avatar icon=\"search\"></isu-avatar>\r\n <isu-avatar src=\"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\"></isu-avatar>\r\n <isu-avatar>user</isu-avatar>\r\n <isu-avatar shape=\"square\" size=\"100\" fit=\"fit\" src=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\"></isu-avatar>\r\n <isu-avatar shape=\"square\" size=\"100\" fit=\"contain\" src=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\"></isu-avatar>\r\n <isu-avatar shape=\"square\" size=\"100\" fit=\"cover\" src=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\"></isu-avatar>\r\n <isu-avatar shape=\"square\" size=\"100\" fit=\"none\" src=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\"></isu-avatar>\r\n <isu-avatar shape=\"square\" size=\"100\" fit=\"scale-down\" src=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\"></isu-avatar>\r\n ```", "summary": "", "path": "isu-avatar.js", "properties": [ { "name": "__dataEnabled", "type": "boolean", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 179, "column": 6 }, "end": { "line": 179, "column": 24 } }, "metadata": { "polymer": { "readOnly": false } }, "defaultValue": "false", "inheritedFrom": "PropertiesChanged" }, { "name": "__dataClientsReady", "type": "boolean", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1331, "column": 6 }, "end": { "line": 1331, "column": 30 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__dataPendingClients", "type": "Array", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1333, "column": 6 }, "end": { "line": 1333, "column": 32 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__dataToNotify", "type": "Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1335, "column": 6 }, "end": { "line": 1335, "column": 26 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__dataLinkedPaths", "type": "Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1337, "column": 6 }, "end": { "line": 1337, "column": 29 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__dataHasPaths", "type": "boolean", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1339, "column": 6 }, "end": { "line": 1339, "column": 26 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__dataCompoundStorage", "type": "Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1341, "column": 6 }, "end": { "line": 1341, "column": 33 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__dataHost", "type": "Polymer_PropertyEffects", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1343, "column": 6 }, "end": { "line": 1343, "column": 22 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__dataTemp", "type": "!Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1345, "column": 6 }, "end": { "line": 1345, "column": 22 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__dataClientsInitialized", "type": "boolean", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1347, "column": 6 }, "end": { "line": 1347, "column": 36 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__data", "type": "!Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1349, "column": 6 }, "end": { "line": 1349, "column": 18 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__dataPending", "type": "(!Object | null)", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1351, "column": 6 }, "end": { "line": 1351, "column": 25 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__dataOld", "type": "!Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1353, "column": 6 }, "end": { "line": 1353, "column": 21 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__computeEffects", "type": "Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1355, "column": 6 }, "end": { "line": 1355, "column": 28 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__computeInfo", "type": "Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1357, "column": 6 }, "end": { "line": 1357, "column": 25 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__reflectEffects", "type": "Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1359, "column": 6 }, "end": { "line": 1359, "column": 28 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__notifyEffects", "type": "Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1361, "column": 6 }, "end": { "line": 1361, "column": 27 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__propagateEffects", "type": "Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1363, "column": 6 }, "end": { "line": 1363, "column": 30 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__observeEffects", "type": "Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1365, "column": 6 }, "end": { "line": 1365, "column": 28 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__readOnly", "type": "Object", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1367, "column": 6 }, "end": { "line": 1367, "column": 22 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "__templateInfo", "type": "!TemplateInfo", "description": "", "privacy": "private", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1369, "column": 6 }, "end": { "line": 1369, "column": 26 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "_overrideLegacyUndefined", "type": "boolean", "description": "", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1371, "column": 6 }, "end": { "line": 1371, "column": 36 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "PropertyEffects" }, { "name": "PROPERTY_EFFECT_TYPES", "type": "?", "description": "", "privacy": "public", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 1374, "column": 4 }, "end": { "line": 1376, "column": 5 } }, "metadata": { "polymer": { "readOnly": true } }, "inheritedFrom": "PropertyEffects" }, { "name": "_template", "type": "HTMLTemplateElement", "description": "", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/element-mixin.js", "start": { "line": 558, "column": 6 }, "end": { "line": 558, "column": 21 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "ElementMixin" }, { "name": "_importPath", "type": "string", "description": "", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/element-mixin.js", "start": { "line": 560, "column": 6 }, "end": { "line": 560, "column": 23 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "ElementMixin" }, { "name": "rootPath", "type": "string", "description": "", "privacy": "public", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/element-mixin.js", "start": { "line": 562, "column": 6 }, "end": { "line": 562, "column": 20 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "ElementMixin" }, { "name": "importPath", "type": "string", "description": "", "privacy": "public", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/element-mixin.js", "start": { "line": 564, "column": 6 }, "end": { "line": 564, "column": 22 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "ElementMixin" }, { "name": "root", "type": "(StampedTemplate | HTMLElement | ShadowRoot)", "description": "", "privacy": "public", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/element-mixin.js", "start": { "line": 566, "column": 6 }, "end": { "line": 566, "column": 16 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "ElementMixin" }, { "name": "$", "type": "!Object.<string, !Element>", "description": "", "privacy": "public", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/element-mixin.js", "start": { "line": 568, "column": 6 }, "end": { "line": 568, "column": 13 } }, "metadata": { "polymer": { "readOnly": false } }, "inheritedFrom": "ElementMixin" }, { "name": "icon", "type": "string", "description": "Icon type, refer to the icon type of iron-icon", "privacy": "public", "sourceRange": { "start": { "line": 96, "column": 6 }, "end": { "line": 99, "column": 7 } }, "metadata": { "polymer": { "attributeType": "String" } }, "defaultValue": "\"\"" }, { "name": "src", "type": "string", "description": "Icon source", "privacy": "public", "sourceRange": { "start": { "line": 104, "column": 6 }, "end": { "line": 107, "column": 7 } }, "metadata": { "polymer": { "attributeType": "String" } }, "defaultValue": "\"\"" }, { "name": "size", "type": "string", "description": "Avatar size, the value can be a numeric string or one of large, medium, small", "privacy": "public", "sourceRange": { "start": { "line": 113, "column": 6 }, "end": { "line": 116, "column": 7 } }, "metadata": { "polymer": { "observer": "\"onSizeChange\"" } }, "defaultValue": "\"large\"" }, { "name": "shape", "type": "string", "description": "Avatar shape, the value can be one of circle or square", "privacy": "public", "sourceRange": { "start": { "line": 122, "column": 6 }, "end": { "line": 126, "column": 7 } }, "metadata": { "polymer": { "observer": "\"onShapeChange\"", "attributeType": "String" } }, "defaultValue": "\"circle\"" }, { "name": "fit", "type": "string", "description": "Image adaptation type, type refer to https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit", "privacy": "public", "sourceRange": { "start": { "line": 132, "column": 6 }, "end": { "line": 135, "column": 7 } }, "metadata": { "polymer": { "attributeType": "String" } }, "defaultValue": "\"cover\"" }, { "name": "alt", "type": "string", "description": "Alt text for unsuccessful image loading", "privacy": "public", "sourceRange": { "start": { "line": 140, "column": 6 }, "end": { "line": 142, "column": 7 } }, "metadata": { "polymer": { "attributeType": "String" } } } ], "methods": [ { "name": "_stampTemplate", "description": "Stamps the provided template and performs instance-time setup for\nPolymer template features, including data bindings, declarative event\nlisteners, and the `this.$` map of `id`'s to nodes. A document fragment\nis returned containing the stamped DOM, ready for insertion into the\nDOM.\n\nThis method may be called more than once; however note that due to\n`shadycss` polyfill limitations, only styles from templates prepared\nusing `ShadyCSS.prepareTemplate` will be correctly polyfilled (scoped\nto the shadow root and support CSS custom properties), and note that\n`ShadyCSS.prepareTemplate` may only be called once per element. As such,\nany styles required by in runtime-stamped templates must be included\nin the main element template.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/property-effects.js", "start": { "line": 2783, "column": 4 }, "end": { "line": 2816, "column": 5 } }, "metadata": {}, "params": [ { "name": "template", "type": "!HTMLTemplateElement", "description": "Template to stamp" }, { "name": "templateInfo", "type": "TemplateInfo=", "description": "Optional bound template info associated\n with the template to be stamped; if omitted the template will be\n automatically bound." } ], "return": { "type": "!StampedTemplate", "desc": "Cloned template content" }, "inheritedFrom": "PropertyEffects" }, { "name": "_addMethodEventListenerToNode", "description": "Adds an event listener by method name for the event provided.\n\nThis method generates a handler function that looks up the method\nname at handling time.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/template-stamp.js", "start": { "line": 537, "column": 4 }, "end": { "line": 542, "column": 5 } }, "metadata": {}, "params": [ { "name": "node", "type": "!EventTarget", "description": "Node to add listener on" }, { "name": "eventName", "type": "string", "description": "Name of event" }, { "name": "methodName", "type": "string", "description": "Name of method" }, { "name": "context", "type": "*=", "description": "Context the method will be called on (defaults\n to `node`)" } ], "return": { "type": "Function", "desc": "Generated handler function" }, "inheritedFrom": "TemplateStamp" }, { "name": "_addEventListenerToNode", "description": "Override point for adding custom or simulated event handling.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/template-stamp.js", "start": { "line": 553, "column": 4 }, "end": { "line": 555, "column": 5 } }, "metadata": {}, "params": [ { "name": "node", "type": "!EventTarget", "description": "Node to add event listener to" }, { "name": "eventName", "type": "string", "description": "Name of event" }, { "name": "handler", "type": "function (!Event): void", "description": "Listener function to add" } ], "return": { "type": "void" }, "inheritedFrom": "TemplateStamp" }, { "name": "_removeEventListenerFromNode", "description": "Override point for adding custom or simulated event handling.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/template-stamp.js", "start": { "line": 566, "column": 4 }, "end": { "line": 568, "column": 5 } }, "metadata": {}, "params": [ { "name": "node", "type": "!EventTarget", "description": "Node to remove event listener from" }, { "name": "eventName", "type": "string", "description": "Name of event" }, { "name": "handler", "type": "function (!Event): void", "description": "Listener function to remove" } ], "return": { "type": "void" }, "inheritedFrom": "TemplateStamp" }, { "name": "_createPropertyAccessor", "description": "Creates a setter/getter pair for the named property with its own\nlocal storage. The getter returns the value in the local storage,\nand the setter calls `_setProperty`, which updates the local storage\nfor the property and enqueues a `_propertiesChanged` callback.\n\nThis method may be called on a prototype or an instance. Calling\nthis method may overwrite a property value that already exists on\nthe prototype/instance by creating the accessor.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 113, "column": 4 }, "end": { "line": 122, "column": 5 } }, "metadata": {}, "params": [ { "name": "property", "type": "string", "description": "Name of the property" }, { "name": "readOnly", "type": "boolean=", "description": "When true, no setter is created; the\n protected `_setProperty` function must be used to set the property" } ], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_addPropertyToAttributeMap", "description": "Adds the given `property` to a map matching attribute names\nto property names, using `attributeNameForProperty`. This map is\nused when deserializing attribute values to properties.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 132, "column": 4 }, "end": { "line": 148, "column": 5 } }, "metadata": {}, "params": [ { "name": "property", "type": "string", "description": "Name of the property" } ], "inheritedFrom": "PropertiesChanged" }, { "name": "_definePropertyAccessor", "description": "Defines a property accessor for the given property.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 157, "column": 5 }, "end": { "line": 174, "column": 5 } }, "metadata": {}, "params": [ { "name": "property", "type": "string", "description": "Name of the property" }, { "name": "readOnly", "type": "boolean=", "description": "When true, no setter is created" } ], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "ready", "description": "Stamps the element template.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/element-mixin.js", "start": { "line": 688, "column": 4 }, "end": { "line": 694, "column": 5 } }, "metadata": {}, "params": [], "return": { "type": "void" }, "inheritedFrom": "ElementMixin" }, { "name": "_initializeProperties", "description": "Overrides the default `PropertyAccessors` to ensure class\nmetaprogramming related to property accessors and effects has\ncompleted (calls `finalize`).\n\nIt also initializes any property defaults provided via `value` in\n`properties` metadata.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/element-mixin.js", "start": { "line": 583, "column": 4 }, "end": { "line": 612, "column": 5 } }, "metadata": {}, "params": [], "return": { "type": "void" }, "inheritedFrom": "ElementMixin" }, { "name": "_initializeInstanceProperties", "description": "Called at ready time with bag of instance properties that overwrote\naccessors when the element upgraded.\n\nThe default implementation sets these properties back into the\nsetter at ready time. This method is provided as an override\npoint for customizing or providing more efficient initialization.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 250, "column": 4 }, "end": { "line": 252, "column": 5 } }, "metadata": {}, "params": [ { "name": "props", "type": "Object", "description": "Bag of property values that were overwritten\n when creating property accessors." } ], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_setProperty", "description": "Updates the local storage for a property (via `_setPendingProperty`)\nand enqueues a `_proeprtiesChanged` callback.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 264, "column": 4 }, "end": { "line": 268, "column": 5 } }, "metadata": {}, "params": [ { "name": "property", "type": "string", "description": "Name of the property" }, { "name": "value", "type": "*", "description": "Value to set" } ], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_getProperty", "description": "Returns the value for the given property.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 277, "column": 4 }, "end": { "line": 279, "column": 5 } }, "metadata": {}, "params": [ { "name": "property", "type": "string", "description": "Name of property" } ], "return": { "type": "*", "desc": "Value for the given property" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_setPendingProperty", "description": "Updates the local storage for a property, records the previous value,\nand adds it to the set of \"pending changes\" that will be passed to the\n`_propertiesChanged` callback. This method does not enqueue the\n`_propertiesChanged` callback.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 295, "column": 4 }, "end": { "line": 311, "column": 5 } }, "metadata": {}, "params": [ { "name": "property", "type": "string", "description": "Name of the property" }, { "name": "value", "type": "*", "description": "Value to set" }, { "name": "ext", "type": "boolean=", "description": "Not used here; affordance for closure" } ], "return": { "type": "boolean", "desc": "Returns true if the property changed" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_isPropertyPending", "description": "", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 318, "column": 4 }, "end": { "line": 320, "column": 5 } }, "metadata": {}, "params": [ { "name": "property", "type": "string", "description": "Name of the property" } ], "return": { "type": "boolean", "desc": "Returns true if the property is pending." }, "inheritedFrom": "PropertiesChanged" }, { "name": "_invalidateProperties", "description": "Marks the properties as invalid, and enqueues an async\n`_propertiesChanged` callback.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 330, "column": 4 }, "end": { "line": 340, "column": 5 } }, "metadata": {}, "params": [], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_enableProperties", "description": "Call to enable property accessor processing. Before this method is\ncalled accessor values will be set but side effects are\nqueued. When called, any pending side effects occur immediately.\nFor elements, generally `connectedCallback` is a normal spot to do so.\nIt is safe to call this method multiple times as it only turns on\nproperty accessors once.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 354, "column": 4 }, "end": { "line": 363, "column": 5 } }, "metadata": {}, "params": [], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_flushProperties", "description": "Calls the `_propertiesChanged` callback with the current set of\npending changes (and old values recorded when pending changes were\nset), and resets the pending set of changes. Generally, this method\nshould not be called in user code.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 375, "column": 4 }, "end": { "line": 386, "column": 5 } }, "metadata": {}, "params": [], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_shouldPropertiesChange", "description": "Called in `_flushProperties` to determine if `_propertiesChanged`\nshould be called. The default implementation returns true if\nproperties are pending. Override to customize when\n`_propertiesChanged` is called.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 401, "column": 4 }, "end": { "line": 403, "column": 5 } }, "metadata": {}, "params": [ { "name": "currentProps", "type": "!Object", "description": "Bag of all current accessor values" }, { "name": "changedProps", "type": "?Object", "description": "Bag of properties changed since the last\n call to `_propertiesChanged`" }, { "name": "oldProps", "type": "?Object", "description": "Bag of previous values for each property\n in `changedProps`" } ], "return": { "type": "boolean", "desc": "true if changedProps is truthy" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_propertiesChanged", "description": "Callback called when any properties with accessors created via\n`_createPropertyAccessor` have been set.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 418, "column": 4 }, "end": { "line": 419, "column": 5 } }, "metadata": {}, "params": [ { "name": "currentProps", "type": "!Object", "description": "Bag of all current accessor values" }, { "name": "changedProps", "type": "?Object", "description": "Bag of properties changed since the last\n call to `_propertiesChanged`" }, { "name": "oldProps", "type": "?Object", "description": "Bag of previous values for each property\n in `changedProps`" } ], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_shouldPropertyChange", "description": "Method called to determine whether a property value should be\nconsidered as a change and cause the `_propertiesChanged` callback\nto be enqueued.\n\nThe default implementation returns `true` if a strict equality\ncheck fails. The method always returns false for `NaN`.\n\nOverride this method to e.g. provide stricter checking for\nObjects/Arrays when using immutable patterns.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 440, "column": 4 }, "end": { "line": 447, "column": 5 } }, "metadata": {}, "params": [ { "name": "property", "type": "string", "description": "Property name" }, { "name": "value", "type": "*", "description": "New property value" }, { "name": "old", "type": "*", "description": "Previous property value" } ], "return": { "type": "boolean", "desc": "Whether the property should be considered a change\n and enqueue a `_proeprtiesChanged` callback" }, "inheritedFrom": "PropertiesChanged" }, { "name": "attributeChangedCallback", "description": "Implements native Custom Elements `attributeChangedCallback` to\nset an attribute value to a property via `_attributeToProperty`.", "privacy": "public", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 461, "column": 4 }, "end": { "line": 468, "column": 5 } }, "metadata": {}, "params": [ { "name": "name", "type": "string", "description": "Name of attribute that changed" }, { "name": "old", "type": "?string", "description": "Old attribute value" }, { "name": "value", "type": "?string", "description": "New attribute value" }, { "name": "namespace", "type": "?string", "description": "Attribute namespace." } ], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_attributeToProperty", "description": "Deserializes an attribute to its associated property.\n\nThis method calls the `_deserializeValue` method to convert the string to\na typed value.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 483, "column": 4 }, "end": { "line": 490, "column": 5 } }, "metadata": {}, "params": [ { "name": "attribute", "type": "string", "description": "Name of attribute to deserialize." }, { "name": "value", "type": "?string", "description": "of the attribute." }, { "name": "type", "type": "*=", "description": "type to deserialize to, defaults to the value\nreturned from `typeForProperty`" } ], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_propertyToAttribute", "description": "Serializes a property to its associated attribute.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 503, "column": 4 }, "end": { "line": 509, "column": 5 } }, "metadata": {}, "params": [ { "name": "property", "type": "string", "description": "Property name to reflect." }, { "name": "attribute", "type": "string=", "description": "Attribute name to reflect to." }, { "name": "value", "type": "*=", "description": "Property value to refect." } ], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_valueToNodeAttribute", "description": "Sets a typed value to an HTML attribute on a node.\n\nThis method calls the `_serializeValue` method to convert the typed\nvalue to a string. If the `_serializeValue` method returns `undefined`,\nthe attribute will be removed (this is the default for boolean\ntype `false`).", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properties-changed.js", "start": { "line": 525, "column": 4 }, "end": { "line": 535, "column": 5 } }, "metadata": {}, "params": [ { "name": "node", "type": "Element", "description": "Element to set attribute to." }, { "name": "value", "type": "*", "description": "Value to serialize." }, { "name": "attribute", "type": "string", "description": "Attribute name to serialize to." } ], "return": { "type": "void" }, "inheritedFrom": "PropertiesChanged" }, { "name": "_serializeValue", "description": "Converts a typed JavaScript value to a string.\n\nThis method is called when setting JS property values to\nHTML attributes. Users may override this method to provide\nserialization for custom types.", "privacy": "protected", "sourceRange": { "file": "../@polymer/polymer/lib/mixins/properti