1,813
การแก้ไข
| บรรทัดที่ 506: | บรรทัดที่ 506: | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Parameters''' || ''(See descriptions under [[#String & Text Area Fields]] sub-section)'' | | style="width:120px;" | '''Parameters''' || ''(See descriptions under [[#String & Text Area Fields]] sub-section)'' | ||
* | * '''class''' ''(str)'': The BootStrap 4 class that dictates the button's appearance. ''(See picture above.)'' | ||
* | * '''confirm_first''' ''(list: {{code|lang=javascript|['<confirm_modal_header>', '<field_name_to_confirm>']}}'': If given, clicking on the submit button shows a confirm modal instead of submitting immediately. This effect is achieved by drawing a fake submit button in the designated space, moving the real submit button into the confirm modal, and adding suffix '_fake' to the form's '''submit_id''' attribute. | ||
* '''width''' ''(str)'': The width of the button. The value can be anything interpretable as CSS size, but {{code|lang=css|'<int>px'}} is recommended. | |||
* '''height''' ''(str)'': The height of the button. The value can be anything interpretable as CSS size, but {{code|lang=css|'<int>px'}} is recommended. | |||
* '''label''' ''(str)'': The text label on the button. | |||
* '''icon_name''' ''(str)'': The name of the icon to appear on the button. ''(See picture above for reference.)'' | |||
* '''custom_color''' ''(list)'': The custom colour scheme for the button. If '''class''' argument is also given, this argument takes precedence. The argument takes the form of 6-membered list, each can be anything interpretable as CSS colour, in this order: | |||
** Normal background colour | |||
** Normal foreground colour | |||
** Normal border colour | |||
** Hover-state background colour | |||
** Hover-state foreground colour | |||
** Hover-state border colour | |||
** Active-state glow colour | |||
* '''slim''' ''(bool)'': Whether the button should match the slim form atyle. | |||
|} | |} | ||