{"id":21404196,"url":"https://github.com/supportclass/sc-data-binding-helpers","last_synced_at":"2025-11-10T02:05:08.697Z","repository":{"id":57741619,"uuid":"100655709","full_name":"SupportClass/sc-data-binding-helpers","owner":"SupportClass","description":"Polymer 2.x mixin that provides some useful methods for data bindings.","archived":false,"fork":false,"pushed_at":"2018-12-07T23:42:55.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T03:30:26.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SupportClass.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-18T00:14:03.000Z","updated_at":"2018-12-07T23:42:57.000Z","dependencies_parsed_at":"2022-08-29T08:51:01.139Z","dependency_job_id":null,"html_url":"https://github.com/SupportClass/sc-data-binding-helpers","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupportClass%2Fsc-data-binding-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupportClass%2Fsc-data-binding-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupportClass%2Fsc-data-binding-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupportClass%2Fsc-data-binding-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SupportClass","download_url":"https://codeload.github.com/SupportClass/sc-data-binding-helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902240,"owners_count":20366258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T16:13:26.113Z","updated_at":"2025-11-10T02:05:08.646Z","avatar_url":"https://github.com/SupportClass.png","language":"TypeScript","readme":"# Polymer.SCDataBindingHelpers [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/SupportClass/sc-data-binding-helpers) [![Build Status](https://travis-ci.org/SupportClass/sc-data-binding-helpers.svg?branch=master)](https://travis-ci.org/SupportClass/sc-data-binding-helpers)\r\n\r\nA Polymer 2.x mixin that provides some useful methods for data bindings. See the [listing on webcomponents.org](https://www.webcomponents.org/element/SupportClass/sc-data-binding-helpers/mixins/Polymer.SCDataBindingHelpers) for full documentation (You'll need to click on \"Show N protected methods\" to see them).\r\n\r\n## Example\r\n\u003c!--\r\n```\r\n\u003ccustom-element-demo\u003e\r\n  \u003ctemplate\u003e\r\n    \u003clink rel=\"import\" href=\"../polymer/polymer-element.html\"\u003e\r\n    \u003clink rel=\"import\" href=\"../polymer/lib/elements/dom-if.html\"\u003e\r\n    \u003clink rel=\"import\" href=\"sc-data-binding-helpers.html\"\u003e\r\n    \u003cnext-code-block\u003e\u003c/next-code-block\u003e\r\n    \u003cmy-element\u003e\u003c/my-element\u003e\r\n  \u003c/template\u003e\r\n\u003c/custom-element-demo\u003e\r\n```\r\n--\u003e\r\n```html\r\n\u003cdom-module id=\"my-element\"\u003e\r\n    \u003ctemplate\u003e\r\n        \u003cstyle\u003e\r\n            :host {\r\n                display: block;\r\n            }\r\n        \u003c/style\u003e\r\n        \r\n        \u003ctemplate is=\"dom-if\" if=\"[[_isTruthy(foo)]]\"\u003e\r\n            foo is: truthy\r\n        \u003c/template\u003e\r\n        \r\n        \u003ctemplate is=\"dom-if\" if=\"[[_isFalsey(foo)]]\"\u003e\r\n            foo is: falsey\r\n        \u003c/template\u003e\r\n    \u003c/template\u003e\r\n    \r\n    \u003cscript\u003e\r\n        /**\r\n         * @customElement\r\n         * @polymer\r\n         * @appliesMixin Polymer.SCDataBindingHelpers\r\n         */\r\n        class MyElement extends Polymer.SCDataBindingHelpers(Polymer.Element) {\r\n            static get is() { \r\n                return 'my-element';\r\n            }\r\n            \r\n            static get properties() { \r\n                return {\r\n                    foo: {\r\n                        type: String,\r\n                        value: 'foo'\r\n                    }\r\n                };\r\n            }\r\n        }\r\n        \r\n        customElements.define(MyElement.is, MyElement);\r\n    \u003c/script\u003e\r\n\u003c/dom-module\u003e\r\n```\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupportclass%2Fsc-data-binding-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupportclass%2Fsc-data-binding-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupportclass%2Fsc-data-binding-helpers/lists"}