Alien-GvaScript

 view release on metacpan or  search on metacpan

doc/html/Form.html  view on Meta::CPAN

  <div class="TN_node" id="remove">
    <h3 class="TN_label">remove</h3>
    <div class="TN_content">
      <pre>  GvaScript.Form.remove(repeat_block[, live_update]);</pre>

<p>Removes a repetition block from the DOM. The argument is either
a DOM element or a string containing the element id.</p>
<p>param <code>Boolean</code> live_update: flag to indicate whether the 'remaining'
repeatable sections are to be also removed from DOM, recreated by re-merging
the data with repeat template, then finally re-appended to the DOM.
Default true.</p>
<p>All repetition blocks above the removed block are renumbered,
leaving no hole in the index sequence. To do so, these
blocks are also removed from the DOM, and then added
again through the <a href="#add">/add</a> method. This operation is implemented
by <i>Alien::GvaScript::Repeat/remove</i>.</p>
<p>The recreated blocks are then re-populated with their
previous input values.</p>

    </div>
  </div>
  <div class="TN_node" id="autofocus">
    <h3 class="TN_label">autofocus</h3>
    <div class="TN_content">
      <pre>  GvaScript.Form.autofocus(element);</pre>

<p>Inspects DOM children of  <code>element</code>, and gives focus to the 
first child that has an <code>autofocus</code> attribute.</p>

    </div>
  </div>

    </div>
  </div>
  <div class="TN_node" id="GvaScript_Forms">
    <h2 class="TN_label">GvaScript.Forms</h2>
    <div class="TN_content">
      <p>namespace that holds all active instances of GvaScript.Form</p>
<p>instances are unique per form id</p>
  <div class="TN_node" id="METHODS">
    <h3 class="TN_label">METHODS</h3>
    <div class="TN_content">
        <div class="TN_node" id="get">
    <h4 class="TN_label">get</h4>
    <div class="TN_content">
      <pre>  GvaScript.Forms.get(id)</pre>

<p>finds and returns the GvaScript.Form instance where id is the unique id of the form HTMLElement.</p>

    </div>
  </div>

    </div>
  </div>

    </div>
  </div>
  <div class="TN_node" id="GvaScript_Form_Responders">
    <h2 class="TN_label">GvaScript.Form.Responders</h2>
    <div class="TN_content">
      <p>A repository of global listeners notified about every step of the GvaSript.Form lifecycle.</p>
<p>Sometimes, you need to provide generic behaviors over all GvaScript.Form(s) in a single application.</p>
<p>To achieve this, GvaScript.Form provides global Responders that will be executed for every GvaScript.Form instance.</p>
<p>Responders by default are executed <b>after</b> the instance specific event callback.</p>
  <div class="TN_node" id="METHODS">
    <h3 class="TN_label">METHODS</h3>
    <div class="TN_content">
        <div class="TN_node" id="register">
    <h4 class="TN_label">register</h4>
    <div class="TN_content">
      <pre>  GvaScript.Form.Responders.register({eventName: handler}[, {eventName: handler}[, ...]]})</pre>

<p>adding one or more global form events responders.</p>
<p>Supported <b>eventNames</b>: <code>onInit, onChange, onBeforeSubmit, onSubmit, on[XXX]</code> where <code>on[XXX]</code> is a custom event name.</p>

    </div>
  </div>
  <div class="TN_node" id="unregister">
    <h4 class="TN_label">unregister</h4>
    <div class="TN_content">
      <pre>  GvaScript.Form.Responders.unregister({eventName: handler}[, {eventName: handler}[, ...]]})</pre>

<p>unregistering one or more global form events responders.</p>

    </div>
  </div>

    </div>
  </div>

    </div>
  </div>
  <div class="TN_node" id="GvaScript_Form_EarlyResponders">
    <h2 class="TN_label">GvaScript.Form.EarlyResponders</h2>
    <div class="TN_content">
      <p>Identical to GvaScript.Form.Responders except that these responders would be executed <b>before</b> the instance specific callback.</p>

    </div>
  </div>

</div>
</body>
</html>



( run in 0.395 second using v1.01-cache-2.11-cpan-9bca49b1385 )