title: Access knockout binding from child element
body: <p>Lets say i have this:</p>
  
  <pre><code>&lt;div data-bind="enable: false"&gt;
      &lt;div data-bind="someCustomBinding: myValue"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is is possible for me to access the 'enable' binding of the parent container from within the custom binding?</p>
  
  <p><strong>== Clarification: ==</strong></p>
  
  <p>In a custom binding you can gain access to the current binding value with the valueAssessor. you can also gain access to other bindings through allBindings and even values on different related contexts via the bindingContext.</p>
  
  <p>I was just wondering if you could access the binding of a parent html element from within a custom binding (in a similar way to the valueAccessor)</p>
  
  <p>Something like this (sudo code):</p>
  
  <pre><code>ko.bindingHandlers.someCustomBinding=
  {
      init: (element, valueAccessor, allBindings) =&gt;
      {
          var parentIsEnabled = 
               ko.GetContextFor($(element).parent()).get('enable');
      }
  }
  </code></pre>