Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
14 | public function render(array $parameters, HTMLNode $previous): HTMLNode |
||
15 | { |
||
16 | $id = 'upload' . HTMLFramework::counter(); |
||
17 | $vmodel = 'file'; // TODO: test |
||
18 | return HTMLNode::factory( |
||
19 | 'div', |
||
20 | [ |
||
21 | 'class' => 'formularium-upload' |
||
22 | ], |
||
23 | HTMLNode::factory( |
||
24 | 'v-file-input', |
||
25 | [ |
||
26 | 'id' => $id, |
||
27 | 'v-model' => $vmodel, |
||
28 | ], |
||
29 | $parameters[self::LABEL] ?? '' |
||
30 | ) |
||
40 |