function add(root, classes) {
  const node = ord.reaction.addSlowly('#input_template', root);
  if (Array.isArray(classes) && classes.length) {
    node.addClass(classes);
  }
  updateSidebar();
  // Add live validation handling.
  ord.reaction.addChangeHandler(node, () => {
    validateInput(node);
  });
  // Update the sidebar when the input name is changed.
  const nameNode = node.find('.input_name').first();
  nameNode.blur(updateSidebar);
  return node;
}
/**
 * Adds a reaction input section to the form.
 * @param {!Node} root Parent node for reaction inputs.
 * @param {?Array<string>} classes Additional classes to add to the new node.
 * @return {!Node} The newly added parent node for the reaction input.
 */
Adds a reaction input section to the form.
@param {!Node} root Parent node for reaction inputs.
@param {?Array} classes Additional classes to add to the new node.
@return {!Node} The newly added parent node for the reaction input.
Adds a reaction input section to the form . @param { !Node } root Parent node for reaction inputs . @param { ?Array } classes Additional classes to add to the new node . @return { !Node } The newly added parent node for the reaction input .
function add(root, classes) {
  const node = ord.reaction.addSlowly('#input_template', root);
  if (Array.isArray(classes) && classes.length) {
    node.addClass(classes);
  }
  updateSidebar();
  ord.reaction.addChangeHandler(node, () => {
    validateInput(node);
  });
  const nameNode = node.find('.input_name').first();
  nameNode.blur(updateSidebar);
  return node;
}
function add ( root , classes ) { const node = ord . reaction . addSlowly ( '#input_template' , root ) ; if ( Array . isArray ( classes ) && classes . length ) { node . addClass ( classes ) ; } updateSidebar ( ) ; ord . reaction . addChangeHandler ( node , ( ) => { validateInput ( node ) ; } ) ; const nameNode = node . find ( '.input_name' ) . first ( ) ; nameNode . blur ( updateSidebar ) ; return node ; }
Adds a reaction input section to the form.
Adds a reaction input section to the form .
// Add live validation handling. // Update the sidebar when the input name is changed.