Пример #1
0
    'name' => 'checkbox',
    'options' => [
        'check_1' => 'Option 1',
        'check_2' => 'Option 2',
        'check_3' => 'Option 3',
        'check_4' => 'Option 4',
        'check_5' => 'Option 5'
    ],
    'required' => true,
    'hint' => 'The hint for the form control.',
    'errorMessage' => 'This form control has errors',
    'selected' => [
        'check_1',
        'check_3',
        'check_4'
    ]
]);
</pre>
</code>		

<h3>SAMUIKit Code Sample</h3>
<form class="usa-form-large">
<?php 
echo SAMUIKit\FormTemplates::addressForm(['label' => 'Mailing address', 'name' => 'mailing-address']);
?>
</form>
<?php 
include_once './partials/htmlClose.php';
?>