ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\UI\Component\MainControls\MainBar Interface Reference

This describes the MainBar. More...

+ Inheritance diagram for ILIAS\UI\Component\MainControls\MainBar:
+ Collaboration diagram for ILIAS\UI\Component\MainControls\MainBar:

Public Member Functions

 withAdditionalEntry (string $id, $entry)
 Append an entry. More...
 
 getEntries ()
 
 withAdditionalToolEntry (string $id, Slate\Slate $entry, bool $initially_hidden=false, ?Button\Close $close_button=null)
 Append a tool-entry. More...
 
 getToolEntries ()
 
 withActive (string $active)
 
 getActive ()
 
 withToolsButton (Button\Bulky $button)
 Set button for the tools-trigger. More...
 
 getToolsButton ()
 Returns the button of the tools-trigger. More...
 
 getEntryClickSignal ()
 Get the signal that is triggered when any entry in the bar is clicked. More...
 
 getToolsClickSignal ()
 Get the signal that is triggered when any entry in the tools-button is clicked. More...
 
 getToolsRemovalSignal ()
 Get the signal that is used for removing a tool. More...
 
 getDisengageAllSignal ()
 This signal disengages all slates when triggered. More...
 
 getInitiallyHiddenToolIds ()
 There are tools that are rendered invisible before first activation. More...
 
 getEngageToolSignal (string $tool_id)
 Signal to engage a tool from outside the MainBar. More...
 
 getCloseButtons ()
 Buttons to close tools; maybe configure with callback. More...
 
 withClearedEntries ()
 Get a copy of this MainBar without any entries. More...
 
 getToggleToolsSignal ()
 Signal to toggle the tools-section. More...
 
- Public Member Functions inherited from ILIAS\UI\Component\Component
 getCanonicalName ()
 Get the canonical name of the component. More...
 
 reduceWith (\Closure $fn)
 The scheme starts at the leaves of the structure and applies the function to each leave and moves up the tree recursively. More...
 
- Public Member Functions inherited from ILIAS\UI\Component\JavaScriptBindable
 withOnLoadCode (Closure $binder)
 
 withAdditionalOnLoadCode (Closure $binder)
 Add some onload-code to the component instead of replacing the existing one. More...
 
 getOnLoadCode ()
 Get the currently bound on load code. More...
 

Detailed Description

This describes the MainBar.

Definition at line 33 of file MainBar.php.

Member Function Documentation

◆ getActive()

ILIAS\UI\Component\MainControls\MainBar::getActive ( )

Referenced by ILIAS\UI\Implementation\Component\MainControls\Renderer\bindMainbarJS().

+ Here is the caller graph for this function:

◆ getCloseButtons()

ILIAS\UI\Component\MainControls\MainBar::getCloseButtons ( )

Buttons to close tools; maybe configure with callback.

Returns
array <string, Button>

Referenced by ILIAS\UI\Implementation\Component\MainControls\Renderer\renderToolEntry().

+ Here is the caller graph for this function:

◆ getDisengageAllSignal()

ILIAS\UI\Component\MainControls\MainBar::getDisengageAllSignal ( )

This signal disengages all slates when triggered.

Referenced by ILIAS\UI\Implementation\Component\MainControls\Renderer\bindMainbarJS(), and ILIAS\UI\Implementation\Component\MainControls\Renderer\renderMainbarEntry().

+ Here is the caller graph for this function:

◆ getEngageToolSignal()

ILIAS\UI\Component\MainControls\MainBar::getEngageToolSignal ( string  $tool_id)

Signal to engage a tool from outside the MainBar.

Referenced by ILIAS\UI\Implementation\Component\MainControls\Renderer\bindMainbarJS(), and ILIAS\UI\examples\Layout\Page\Standard\pagedemoContent().

+ Here is the caller graph for this function:

◆ getEntries()

ILIAS\UI\Component\MainControls\MainBar::getEntries ( )
Returns
array <string, Button|Link|Slate>

Referenced by ILIAS\UI\Implementation\Component\MainControls\Renderer\renderMainbarEntry().

+ Here is the caller graph for this function:

◆ getEntryClickSignal()

ILIAS\UI\Component\MainControls\MainBar::getEntryClickSignal ( )

Get the signal that is triggered when any entry in the bar is clicked.

◆ getInitiallyHiddenToolIds()

ILIAS\UI\Component\MainControls\MainBar::getInitiallyHiddenToolIds ( )

There are tools that are rendered invisible before first activation.

Returns
string[]

Referenced by ILIAS\UI\Implementation\Component\MainControls\Renderer\renderToolEntry().

+ Here is the caller graph for this function:

◆ getToggleToolsSignal()

ILIAS\UI\Component\MainControls\MainBar::getToggleToolsSignal ( )

◆ getToolEntries()

◆ getToolsButton()

ILIAS\UI\Component\MainControls\MainBar::getToolsButton ( )

Returns the button of the tools-trigger.

Referenced by ILIAS\UI\Implementation\Component\MainControls\Renderer\renderMainbarEntry().

+ Here is the caller graph for this function:

◆ getToolsClickSignal()

ILIAS\UI\Component\MainControls\MainBar::getToolsClickSignal ( )

Get the signal that is triggered when any entry in the tools-button is clicked.

◆ getToolsRemovalSignal()

ILIAS\UI\Component\MainControls\MainBar::getToolsRemovalSignal ( )

Get the signal that is used for removing a tool.

◆ withActive()

ILIAS\UI\Component\MainControls\MainBar::withActive ( string  $active)
Exceptions

Referenced by DashboardLayoutProvider\getMainBarModification().

+ Here is the caller graph for this function:

◆ withAdditionalEntry()

ILIAS\UI\Component\MainControls\MainBar::withAdditionalEntry ( string  $id,
  $entry 
)

Append an entry.

Parameters
Button\Bulky | Link\Bulky | Slate\Slate$entry
Exceptions

Referenced by ilLSViewLayoutProvider\getMainBarModification(), ILIAS\UI\examples\Layout\Page\Standard\getUIMainbar(), and ILIAS\UI\Implementation\Component\MainControls\Renderer\renderMainbarEntry().

+ Here is the caller graph for this function:

◆ withAdditionalToolEntry()

ILIAS\UI\Component\MainControls\MainBar::withAdditionalToolEntry ( string  $id,
Slate\Slate  $entry,
bool  $initially_hidden = false,
?Button\Close  $close_button = null 
)

Append a tool-entry.

Define a tools-trigger via "withToolsButton" first.

Exceptions

Referenced by ilLSViewLayoutProvider\getMainBarModification(), and ILIAS\LTI\Screen\LtiViewLayoutProvider\getMainBarModification().

+ Here is the caller graph for this function:

◆ withClearedEntries()

ILIAS\UI\Component\MainControls\MainBar::withClearedEntries ( )

◆ withToolsButton()

ILIAS\UI\Component\MainControls\MainBar::withToolsButton ( Button\Bulky  $button)

Set button for the tools-trigger.

Referenced by ilTestPlayerLayoutProvider\getMainBarModification(), and ILIAS\UI\examples\Layout\Page\Standard\pagedemoMainbar().

+ Here is the caller graph for this function:

The documentation for this interface was generated from the following file: