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

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

เพิ่มขึ้น 981 ไบต์ ,  11 เมษายน 2567
บรรทัดที่ 447: บรรทัดที่ 447:


==== Radios ====
==== Radios ====
[[ไฟล์:Form_BoolField.png|300px|thumb|center|alt=Checkboxes and toggles created via 'render_check' and 'render_toggle'.|Checkboxes and toggles created via 'render_check' and 'render_toggle'.]]
'''DO NOT''' rely on argument order farther than ''form'' and ''blank'', '''ALWAYS PROVIDE''' argument keywords.
'''<syntaxhighlight lang="javascript">
render_radio(form, blank,
            field_modal=false, field_tab=false,
            headless=false, col=1,
            hidden=false, tabindex=false,
            disabled=false)
</syntaxhighlight>'''
{| style="margin-left:20px;"
|- style="vertical-align:top;"
| style="width:120px;" | '''Parameters''' || ''(See descriptions under [[#String & Text Area Fields]] sub-section)''
* '''col''' ''(int)'': The number of columns radio options should be divided into. The ordering of radio options is verical first and horizontal second.
* '''disabled''' ''(bool)'': Whether the field should be drawn disabled on page load.
|}


==== File & Image Fields ====
==== File & Image Fields ====