1,856
การแก้ไข
| บรรทัดที่ 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 | * '''in_table''' ''(str: defaults to {{code|lang=python|False}} for free-standing forms)'': The name of the table with this form as the 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). | * '''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'''. ( | * '''in_modal''' ''(str: defaults to {{code|lang=python|False}} for free-standing forms)'': the ID of the modal with this form as the '''MAIN SUBMITTING COMPONENT'''. (See [[CuneiModal]] for details.) | ||
* '''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]]) | * '''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: 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.) | * '''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.) | ||