ข้ามไปเนื้อหา

ผลต่างระหว่างรุ่นของ "CuneiForm"

เพิ่มขึ้น 1,459 ไบต์ ,  9 เมษายน 2567
บรรทัดที่ 298: บรรทัดที่ 298:


* '''References to DOM Elements & Objects'''
* '''References to DOM Elements & Objects'''
 
** '''form_ele''': Points to the corresponding {{code|lang=html|<form>}} DOM element.
** '''fill_eles'''*: An array collection of the field elements themselves. You might access this array to manipulate the value or status of a field.
** '''fill_ele_divs'''*: An array collection of the fields' ultimate parent {{code|lang=html|<div>}} elements. You might access this array to manage the visibility of a field (along with its adjacent label, buttons, status messages, etc.)
** '''fill_ele_labels'''*: An array collection of the fields' label elements. Accessing this array is rarely required manually.
** '''fill_ele_errmoms'''*: An array collection of the fields' non-label elements. Accessing this array is rarely required manually.
** '''fill_ele_imgboxes'''*: An array collection of the fields' corresponding {{code|lang=html|<img>}} elements. (See note under [[#File & Image Fields]].)
** '''submit_ele''': The submit element (most likely a {{code|lang=html|<btn>}}) of the form.
** '''proxy_submit_ele''': The mock element meant to be used instead of the form's own submit element. Use cases include the need to call additional functions before form submission and form chaining.
** '''linked_modals''': An array collection of 'modal objects' linked to the form via search-and-fill relationships.
'''NOTE THAT''' arrays marked by '''*''' shares the same length as {{code|form_obj.seq}}, with undefined elements padded with {{code|lang=javascript|null}}.


* '''Field-related Attributes'''
* '''Field-related Attributes'''