ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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.
$DIC
Definition: xapitoken.php:46