All Projects → tiaanduplessis → jquery-bindings

tiaanduplessis / jquery-bindings

Licence: MIT license
Simple two-way data binding using proxies and requestIdleCallback

Programming Languages

HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to jquery-bindings

bound
Data-binding made easy
Stars: ✭ 21 (+23.53%)
Mutual labels:  bindings, two-way-databinding
ocaml-tracy
Bindings to the Tracy profiler
Stars: ✭ 21 (+23.53%)
Mutual labels:  bindings
vidbacking
vidbacking is a jQuery plugin to create HTML5 / Youtube video as background on webpage with fallback image support. It supports mp4 and webm files as well as Youtube video.
Stars: ✭ 55 (+223.53%)
Mutual labels:  jquery-plugin
htaglib
Haskell bindings for TagLib, an audio meta-data library
Stars: ✭ 20 (+17.65%)
Mutual labels:  bindings
swift-tree-sitter
Swift bindings for the tree-sitter parsing library
Stars: ✭ 29 (+70.59%)
Mutual labels:  bindings
jquery-google-reviews
simple jquery Plugin that utilizes Google API to get data from a Place on Google Maps
Stars: ✭ 33 (+94.12%)
Mutual labels:  jquery-plugin
jquery-jside-menu
jSide Menu is a well designed, simple and clean side navigation menu with dropdowns.
Stars: ✭ 23 (+35.29%)
Mutual labels:  jquery-plugin
rellax
jQuery Rellax Plugin - Parallax awesomeness
Stars: ✭ 14 (-17.65%)
Mutual labels:  jquery-plugin
rsmpeg
A Rust crate that exposes FFmpeg's power as much as possible.
Stars: ✭ 390 (+2194.12%)
Mutual labels:  bindings
gfort2py
Library to allow calling fortran code from python
Stars: ✭ 60 (+252.94%)
Mutual labels:  bindings
DotNetJS
Consume C# in JavaScript with comfort: single-file UMD library, auto-generated 2-way bindings and type definitions
Stars: ✭ 551 (+3141.18%)
Mutual labels:  bindings
Hashtegny
jQuery Plugin aggregates hashtags from different social media networks. Posts are displayed in a unique, & attractive grid, and animated layout.
Stars: ✭ 52 (+205.88%)
Mutual labels:  jquery-plugin
popsicle
Popsicle aims to bridge the JUCE c++ framework to python.
Stars: ✭ 102 (+500%)
Mutual labels:  bindings
readingbar
A simple progress bar that indicates the length & your current reading position of an article/page
Stars: ✭ 19 (+11.76%)
Mutual labels:  jquery-plugin
imgui
ImGui bindings for Nim via cimgui
Stars: ✭ 117 (+588.24%)
Mutual labels:  bindings
hoedown
rust bindings for hoedown
Stars: ✭ 16 (-5.88%)
Mutual labels:  bindings
ripple-effect-click
Add ripple effect to any element you want when the click action happens ("ripple effect")
Stars: ✭ 15 (-11.76%)
Mutual labels:  jquery-plugin
jquery-accessible-simple-tooltip-aria
jQuery accessible simple tooltip window, using ARIA
Stars: ✭ 22 (+29.41%)
Mutual labels:  jquery-plugin
ajxnetcore
Its an innovative method to turn an ASP.NET Core Application Into Single Page Application, While enhancing the Software performance both on server and client side.
Stars: ✭ 31 (+82.35%)
Mutual labels:  jquery-plugin
cl-wlroots
Common lisp bindings for wlroots, a library for writing Wayland compositors
Stars: ✭ 32 (+88.24%)
Mutual labels:  bindings
example

jquery-bindings

Simple two-way data binding using proxies and requestIdleCallback (661 Bytes gzipped)

Table of Contents

Table of Contents
  • Install
  • Install
  • Usage
  • API
  • Contribute
  • License
  • About

    Inspired by a pen, simple data bindings that rely on Proxies (ensure this is polyfilled for older browsers) and requestIdleCallback (Shimmed if not available).

    Install

    <script src="https://cdn.rawgit.com/tiaanduplessis/jquery-bindings/master/jquery-bindings.min.js"></script>
    <!-- Or -->
    <script src="https://unpkg.com/jquery-bindings/jquery-bindings.min.js"></script>
    • Using package manager:
    $ npm install jquery-bindings
    # OR
    $ yarn add jquery-bindings

    Usage

    Create html with data-bind attributes:

    <p>
        <label>First Name:</label>
        <input type="text" data-bind="firstName" />
        <label>Last Name:<label/>
        <input type="text" data-bind="lastName" />
        <br> Age:
        <input type="number" data-bind="age">
    </p>

    create a initial object and initialize $.bindings

    var obj = {
      firstName: 'Tiaan',
      lastName: 'du Plessis'
    }
    
    var bindings = $.bindings(obj)
    
    // bindings variable can be updated directly and trigger DOM updates
    // DOM updates will trigger updates in the bindings variable 
    
    bindings.firstName = 'Dupie'
    
    // New properties can be added as long as the associated data-bind attribute exists
    bindings.age = 24

    See the example for more information.

    API

    $.bindings(object, options)

    object

    • Plain JS object

    options

    attribute
    • Name of attribute to bind. defaults to data-bind

    Contributing

    Contributions are welcome!

    1. Fork it.
    2. Create your feature branch: git checkout -b my-new-feature
    3. Commit your changes: git commit -am 'Add some feature'
    4. Push to the branch: git push origin my-new-feature
    5. Submit a pull request :D

    Or open up a issue.

    License

    Licensed under the MIT License.

    Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].