ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
unavailable_action.php
Go to the documentation of this file.
1 <?php
8 {
9  global $DIC;
10  $f = $DIC->ui()->factory();
11  $renderer = $DIC->ui()->renderer();
12 
13  $button = $f->button()->toggle('', '#', '#')
14  ->withAriaLabel("Switch the State of XY")
15  ->withUnavailableAction();
16 
17  return $renderer->render([$button]);
18 }
unavailable_action()
This example provides the given button with an unavailable action.
global $DIC
Definition: goto.php:24