Jet\UI_tabsJS_tab
Renderer of a single tab / tab within the tab content switching element. Inherits from Jet\UI_Renderer_Single .
A renderer aggregates another renderer to create a container of content belonging to a given tab.
Use:
$tabs = UI::tabsJS( 'create_menu_item_target_tabs', [
'tab_direct_mvc' => Tr::_( 'MVC link' ),
'tab_direct_link' => Tr::_( 'Direct link' ),
]);
?>
<?= $tabs->start() ?>
<?= $tabs->tab( 'tab_direct_mvc' )->content()->start() ?>
... tab content ...
<?= $tabs->tab( 'tab_direct_mvc' )->content()->end() ?>
<?= $tabs->tab( 'tab_direct_link' )->content()->start() ?>
... tab content ...
<?= $tabs->tab( 'tab_direct_link' )->content()->end() ?>
<?= $tabs->end() ?>
Overview of methods
Method | Význam |
---|---|
public __construct( string $id, string $title ) |
Parameters:
|
public getIsSelected( ) : bool |
Indicates whether the bookmark is selected. |
public setIsSelected( bool $is_selected ) : void |
Sets whether the tab is selected. |
public getTitle( ) : string |
Returns the title of the bookmark. |
public setTitle( string $title ) : void |
Sets the title of the bookmark. |
public content( ) : UI_tabsJS_content |
Bookmark content renderer . That is, the container in which the content belonging to the given tab should be. |