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

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

เพิ่มขึ้น 99 ไบต์ ,  8 เมษายน 2567
บรรทัดที่ 220: บรรทัดที่ 220:
On the client-side, forms are going to be present, possibly, on a page along with other forms, tables, and modals. In many cases, they might even have to interact with them. So, CuneiForms need a way to identify themselves and other elements they are meant to work closely with. Below is the list of form attributes whose functions fall in this category:
On the client-side, forms are going to be present, possibly, on a page along with other forms, tables, and modals. In many cases, they might even have to interact with them. So, CuneiForms need a way to identify themselves and other elements they are meant to work closely with. Below is the list of form attributes whose functions fall in this category:
* '''_id''' ''(str)'': The 'prefix' repacked. This value will become the HTML id of the form object. (Note that the attribute name is underscored to avoid conflict with python-native 'id'.)
* '''_id''' ''(str)'': The 'prefix' repacked. This value will become the HTML id of the form object. (Note that the attribute name is underscored to avoid conflict with python-native 'id'.)
* '''in_table''' ''(str)'': The name of the table with this form as the in-line form. (The attribute is set to {{code|lang=python|False}} for free-standing forms.)
* '''in_table''' ''(str)'': The name of the table with this form as the in-line form. (The attribute defaults to {{code|lang=python|False}} for free-standing forms.)
* '''table_linked''' ''(str)'': Similar to {{code|in_table}} but this one applies to full pop-up form (as opposed to in-line form).
* '''table_linked''' ''(str)'': Similar to {{code|in_table}} but this one applies to full pop-up form (as opposed to in-line form).
* '''in_modal''' ''(str)'': the ID of the modal with this form as the '''MAIN SUBMITTING COMPONENT'''. (The attribute is set to {{code|lang=python|False}} for free-standing forms.)
* '''in_modal''' ''(str)'': the ID of the modal with this form as the '''MAIN SUBMITTING COMPONENT'''. (The attribute defaults to {{code|lang=python|False}} for free-standing forms.)
* '''sequence_bound''' ''(bool)'': Whether form submission is linked to advance the edit-mode of the page. (See [[Multi-component Page]])
* '''sequence_bound''' ''(bool: defaults to {{code|lang=python|False}})'': Whether form submission is linked to advance the edit-mode of the page. (See [[Multi-component Page]])
* '''slim''' ''(bool: default to {{code|lang=python|False}})'': Whether to render the form in slim mode. (Normally, form label and field take 2 'rows' on the screen. In slim mode, form label and field share the same 'row', and the field is drawn with less vertical padding.)
* '''slim''' ''(bool: defaults to {{code|lang=python|False}})'': Whether to render the form in slim mode. (Normally, form label and field take 2 'rows' on the screen. In slim mode, form label and field share the same 'row', and the field is drawn with less vertical padding.)
* '''subslim''' ''(bool)'': Similar to {{code|slim}} but applicable '''ONLY TO''' in-line fields of an in-line form. (E.g. fields in an expansion pop-up are not governed by this attribute.)
* '''subslim''' ''(bool: default is determined upon [[CuneiTable]] initiation)'': Similar to {{code|slim}} but applicable '''ONLY TO''' in-line fields of an in-line form. (E.g. fields in an expansion pop-up are not governed by this attribute.)


==== Sequence and Column Names ====
==== Sequence and Column Names ====