ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
17 function base()
18 {
19  global $DIC;
20  $f = $DIC->ui()->factory();
21  $r = $DIC->ui()->renderer();
22 
23  //construct with options and labels for aria and button.
24  $fs = $f->input()->viewControl()->fieldSelection(
25  [
26  'c1' => 'column 1',
27  'c2' => 'column 2',
28  'x' => '...'
29  ],
30  'shown columns',
31  'apply'
32  );
33 
34  //it's more fun to view this in a ViewControlContainer
35  $vc_container = $f->input()->container()->viewControl()->standard([$fs])
36  ->withRequest($DIC->http()->request());
37 
38  return $r->render([
39  $f->legacy('<pre>' . print_r($vc_container->getData(), true) . '</pre>'),
40  $f->divider()->horizontal(),
41  $vc_container
42  ]);
43 }
global $DIC
Definition: shib_login.php:25
base()
expected output: > There&#39;s a button with the column selection glyph as a label.
Definition: base.php:17
$r