Giter VIP home page Giter VIP logo

custom-element-get-and-set's Introduction

custom-element-get-and-set

Note: this is the README for the Polymer version, click for the native README version

custom web component for setting and printing properties

<k-set> accepts 3 attributes: property, value, target

property: the name of the property to be setted

value: the value of the property

target: parent | global | Polymer where to store the property. default to Polymer if omitted

parent: will store the property on the parent element

global: will store the property on the global object (window)

Polymer: will store the property on the Polymer object

<k-get> accepts 2 attributes: property, source

property: the name of the property to print

source: scoped | parent | global | Polymer the source where to read the property. default to Polymer if omitted

scoped: try to look if the property is on the parent, if not look on the parent's parent and so on, if not found try looking in Polymer first and global as last.

parent: look on the parent node

global: look on the global object (window)

Polymer: look on the Polymer object

DEMO

custom-element-get-and-set's People

Contributors

kentaromiura avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.