<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>bindProperty - jControl API</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><img src="../assets/css/logo.png" title="jControl API"></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: 1.0.0</em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
            <li><a href="#api-modules">Modules</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="../classes/a.html">a</a></li>
            
                <li><a href="../classes/acceptType.html">acceptType</a></li>
            
                <li><a href="../classes/area.html">area</a></li>
            
                <li><a href="../classes/article.html">article</a></li>
            
                <li><a href="../classes/asynCallParam.html">asynCallParam</a></li>
            
                <li><a href="../classes/asyncGetCall.html">asyncGetCall</a></li>
            
                <li><a href="../classes/asyncPostCall.html">asyncPostCall</a></li>
            
                <li><a href="../classes/audio.html">audio</a></li>
            
                <li><a href="../classes/barChart.html">barChart</a></li>
            
                <li><a href="../classes/bdo.html">bdo</a></li>
            
                <li><a href="../classes/bindButtonCommand.html">bindButtonCommand</a></li>
            
                <li><a href="../classes/bindFileProperty.html">bindFileProperty</a></li>
            
                <li><a href="../classes/bindProperty.html">bindProperty</a></li>
            
                <li><a href="../classes/body.html">body</a></li>
            
                <li><a href="../classes/br.html">br</a></li>
            
                <li><a href="../classes/button.html">button</a></li>
            
                <li><a href="../classes/canvas.html">canvas</a></li>
            
                <li><a href="../classes/caption.html">caption</a></li>
            
                <li><a href="../classes/chartBase.html">chartBase</a></li>
            
                <li><a href="../classes/checkBox.html">checkBox</a></li>
            
                <li><a href="../classes/collectionModelBase.html">collectionModelBase</a></li>
            
                <li><a href="../classes/columnChart.html">columnChart</a></li>
            
                <li><a href="../classes/command.html">command</a></li>
            
                <li><a href="../classes/containerElement.html">containerElement</a></li>
            
                <li><a href="../classes/customEvent.html">customEvent</a></li>
            
                <li><a href="../classes/d3BubbleChart.html">d3BubbleChart</a></li>
            
                <li><a href="../classes/d3Charting.html">d3Charting</a></li>
            
                <li><a href="../classes/datetimeInput.html">datetimeInput</a></li>
            
                <li><a href="../classes/decentMouseEvent.html">decentMouseEvent</a></li>
            
                <li><a href="../classes/dialogButtonRow.html">dialogButtonRow</a></li>
            
                <li><a href="../classes/dialogSkeleton.html">dialogSkeleton</a></li>
            
                <li><a href="../classes/dialogTitleRow.html">dialogTitleRow</a></li>
            
                <li><a href="../classes/div.html">div</a></li>
            
                <li><a href="../classes/divButton.html">divButton</a></li>
            
                <li><a href="../classes/documentElement.html">documentElement</a></li>
            
                <li><a href="../classes/element.html">element</a></li>
            
                <li><a href="../classes/embed.html">embed</a></li>
            
                <li><a href="../classes/enumMouseButton.html">enumMouseButton</a></li>
            
                <li><a href="../classes/fieldset.html">fieldset</a></li>
            
                <li><a href="../classes/figCaption.html">figCaption</a></li>
            
                <li><a href="../classes/figure.html">figure</a></li>
            
                <li><a href="../classes/fileBrowseButton.html">fileBrowseButton</a></li>
            
                <li><a href="../classes/fileHandlingModelFactory.html">fileHandlingModelFactory</a></li>
            
                <li><a href="../classes/fileInput.html">fileInput</a></li>
            
                <li><a href="../classes/filePropertyModel.html">filePropertyModel</a></li>
            
                <li><a href="../classes/fileTypeModel.html">fileTypeModel</a></li>
            
                <li><a href="../classes/fileValueModel.html">fileValueModel</a></li>
            
                <li><a href="../classes/floatInput.html">floatInput</a></li>
            
                <li><a href="../classes/footer.html">footer</a></li>
            
                <li><a href="../classes/form.html">form</a></li>
            
                <li><a href="../classes/formPost.html">formPost</a></li>
            
                <li><a href="../classes/guid.html">guid</a></li>
            
                <li><a href="../classes/h1.html">h1</a></li>
            
                <li><a href="../classes/h2.html">h2</a></li>
            
                <li><a href="../classes/h3.html">h3</a></li>
            
                <li><a href="../classes/h4.html">h4</a></li>
            
                <li><a href="../classes/h5.html">h5</a></li>
            
                <li><a href="../classes/h6.html">h6</a></li>
            
                <li><a href="../classes/header.html">header</a></li>
            
                <li><a href="../classes/hr.html">hr</a></li>
            
                <li><a href="../classes/hybridMap.html">hybridMap</a></li>
            
                <li><a href="../classes/iframe.html">iframe</a></li>
            
                <li><a href="../classes/img.html">img</a></li>
            
                <li><a href="../classes/inputElement.html">inputElement</a></li>
            
                <li><a href="../classes/intInput.html">intInput</a></li>
            
                <li><a href="../classes/keygen.html">keygen</a></li>
            
                <li><a href="../classes/label.html">label</a></li>
            
                <li><a href="../classes/legend.html">legend</a></li>
            
                <li><a href="../classes/li.html">li</a></li>
            
                <li><a href="../classes/lineChart.html">lineChart</a></li>
            
                <li><a href="../classes/link.html">link</a></li>
            
                <li><a href="../classes/map.html">map</a></li>
            
                <li><a href="../classes/mapBase.html">mapBase</a></li>
            
                <li><a href="../classes/modalDialog.html">modalDialog</a></li>
            
                <li><a href="../classes/modelBase.html">modelBase</a></li>
            
                <li><a href="../classes/modelFactory.html">modelFactory</a></li>
            
                <li><a href="../classes/multiFilePropertyModel.html">multiFilePropertyModel</a></li>
            
                <li><a href="../classes/numericInput.html">numericInput</a></li>
            
                <li><a href="../classes/objectElement.html">objectElement</a></li>
            
                <li><a href="../classes/observable.html">observable</a></li>
            
                <li><a href="../classes/observableCollection.html">observableCollection</a></li>
            
                <li><a href="../classes/ol.html">ol</a></li>
            
                <li><a href="../classes/optGroup.html">optGroup</a></li>
            
                <li><a href="../classes/option.html">option</a></li>
            
                <li><a href="../classes/p.html">p</a></li>
            
                <li><a href="../classes/param.html">param</a></li>
            
                <li><a href="../classes/pieChart.html">pieChart</a></li>
            
                <li><a href="../classes/popup.html">popup</a></li>
            
                <li><a href="../classes/popupMoveHandler.html">popupMoveHandler</a></li>
            
                <li><a href="../classes/position.html">position</a></li>
            
                <li><a href="../classes/radioButton.html">radioButton</a></li>
            
                <li><a href="../classes/restCallBase.html">restCallBase</a></li>
            
                <li><a href="../classes/restDelete.html">restDelete</a></li>
            
                <li><a href="../classes/restGet.html">restGet</a></li>
            
                <li><a href="../classes/restGetAll.html">restGetAll</a></li>
            
                <li><a href="../classes/restPost.html">restPost</a></li>
            
                <li><a href="../classes/restPut.html">restPut</a></li>
            
                <li><a href="../classes/roadMap.html">roadMap</a></li>
            
                <li><a href="../classes/satelliteMap.html">satelliteMap</a></li>
            
                <li><a href="../classes/scrollPanel.html">scrollPanel</a></li>
            
                <li><a href="../classes/select.html">select</a></li>
            
                <li><a href="../classes/serviceProxy.html">serviceProxy</a></li>
            
                <li><a href="../classes/size.html">size</a></li>
            
                <li><a href="../classes/source.html">source</a></li>
            
                <li><a href="../classes/span.html">span</a></li>
            
                <li><a href="../classes/spanText.html">spanText</a></li>
            
                <li><a href="../classes/svg.html">svg</a></li>
            
                <li><a href="../classes/table.html">table</a></li>
            
                <li><a href="../classes/tbody.html">tbody</a></li>
            
                <li><a href="../classes/td.html">td</a></li>
            
                <li><a href="../classes/terrainMap.html">terrainMap</a></li>
            
                <li><a href="../classes/textArea.html">textArea</a></li>
            
                <li><a href="../classes/textBlock.html">textBlock</a></li>
            
                <li><a href="../classes/textInput.html">textInput</a></li>
            
                <li><a href="../classes/textNode.html">textNode</a></li>
            
                <li><a href="../classes/tfoot.html">tfoot</a></li>
            
                <li><a href="../classes/th.html">th</a></li>
            
                <li><a href="../classes/thead.html">thead</a></li>
            
                <li><a href="../classes/touchEvent.html">touchEvent</a></li>
            
                <li><a href="../classes/tr.html">tr</a></li>
            
                <li><a href="../classes/track.html">track</a></li>
            
                <li><a href="../classes/ul.html">ul</a></li>
            
                <li><a href="../classes/valueContainer.html">valueContainer</a></li>
            
                <li><a href="../classes/valueElement.html">valueElement</a></li>
            
                <li><a href="../classes/video.html">video</a></li>
            
                <li><a href="../classes/windowElement.html">windowElement</a></li>
            
                <li><a href="../classes/windowOverlay.html">windowOverlay</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
                <li><a href="../modules/advanced.html">advanced</a></li>
            
                <li><a href="../modules/comm.html">comm</a></li>
            
                <li><a href="../modules/controls.html">controls</a></li>
            
                <li><a href="../modules/D3Chart.html">D3Chart</a></li>
            
                <li><a href="../modules/elements.html">elements</a></li>
            
                <li><a href="../modules/googleCharts.html">googleCharts</a></li>
            
                <li><a href="../modules/googleMaps.html">googleMaps</a></li>
            
                <li><a href="../modules/observe.html">observe</a></li>
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>


            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1>bindProperty Class</h1>
<div class="box meta">
    

    

    

    
        
            Module: <a href="../modules/observe.html">observe</a>
        
    

    
</div>



<div class="box intro">
    <p>Data binding between a DOM element and a named property of a model</p>

</div>


    <div class="constructor">
        <h2>Constructor</h2>
        <div id="method_bindProperty" class="method item">
    <h3 class="name"><code>bindProperty</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>viewElement</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>model</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>propertyName</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
            
        
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">viewElement</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                        <p>an object returned by one of the view element constructor. It may optionally implement onError(string), onDismissError() function to respond to invalid values.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">model</code>
                        <span class="type">ModelBase</span>
                    

                    

                    <div class="param-description">
                        <p>an object of class derived from modelBase</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">propertyName</code>
                        <span class="type">String</span>
                    

                    

                    <div class="param-description">
                        <p>name of a property in the model</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

    </div>


<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

        
            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
        
        
        
        
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

            
                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods">
                        
                            <li class="index-item method">
                                <a href="#method_getModel">getModel</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getViewElement">getViewElement</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            

            

            
        </div>

        
            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

                
                    <div id="method_getModel" class="method item">
    <h3 class="name"><code>getModel</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Object</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
            
        
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Returns the model object bound</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Object</span>:
                    
                    <p>model passed into constructor</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getViewElement" class="method item">
    <h3 class="name"><code>getViewElement</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Object</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
            
        
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Returns the view element bound</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Object</span>:
                    
                    <p>view element passed into constructor</p>

                
            </div>
        </div>
    

    
</div>

                
            </div>
        

        

        

        
    </div>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
