Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 392 Bytes

4-5-add-additional-settings-to-built-in-form-components.md

File metadata and controls

10 lines (7 loc) · 392 Bytes

4-5 Add additional settings to built-in form components

Using the $ form element -> setExtra() method, you can add any additional syntax to the form element, for example:

$Text->setExtra("class='form-control'");
$Text->setExtra("style='width: 90%'");
$Text->setExtra("placeholder='請輸入標題'");