Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

cmdrjs/knockout-cmdrjs

Repository files navigation

knockout-cmdrjs (knockout.cmdr.js)

A cmdrjs component for Knockout.

Build status Bower version

Installing the plugin

Bower

bower install knockout-cmdrjs

Manual

Download files from the releases page.

Basic usage

<script src="knockout.js"></script>
<script src="cmdr.js"></script>
<script src="knockout.cmdr.js"></script>

<cmdr params="{ shell: shell, options: options"></cmdr>

<script>    
    var vm = { 
        shell: ko.observable() //will be set to instance of the Shell class created by component.
        options: {} //set Shell class options here.
    };
    
    ko.applyBindings(vm);
</script>

This component creates a new cmdrjs Shell object and injects it into the template.

About

A cmdrjs component for Knockout.

Resources

License

Stars

Watchers

Forks

Packages

No packages published