Skip to content

shimaore/teacup-databind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teacup Knockout helper

A Knockout helper plugin for Teacup.

teacup = require 'teacup'
teacup_databind = require 'teacup-databind'
teacup.use teacup_databind()

console.log teacup.render ->
  {input} = teacup

  input '.stylish',
    bind:
      value: 'name'
      disable: 'hasNoName()'

# Outputs <input class="stylish" data-bind="value: name, disable: hasNoName()" />

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published