Lines Matching refs:elementPosition
27 * @param int $elementPosition - the position of the element (that's how works {@link Form}
31 public static function toBootStrapInputElementAndGetNewLoopingPosition(Form $form, int $elementPosition, string $formName): int
33 $inputElement = $form->getElementAt($elementPosition);
36 return $elementPosition;
47 $inputId = "user__$formName-input-$elementPosition";
59 $form->replaceElement($newInputField, $elementPosition);
60 $form->addHTML('<div class="form-control-row">', $elementPosition);
61 $form->addHTML("<label for=\"$inputId\" class=\"form-label\">$label</label>", $elementPosition + 1);
62 $form->addHTML('</div>', $elementPosition + 3);
63 return $elementPosition + 3;