Jet\UI_tabs
Renderer represents navigation by tabs. It inherits from Jet\UI_Renderer_Single.
Each tab is represented by its own Jet\UI_tabs_tab renderer.
Each tab must have its own ID and title. It is also necessary to specify a creator - a function that generates a URL to which the tab will be directed based on the tab ID.
Overview of methods
Method | Meaning of |
---|---|
public __construct( array $tabs, callable $tab_url_creator, ?string $selected_tab_id=null ) |
Parameters:
|
public getTab( string $id ) : UI_tabs_tab |
Returns an instance of a specific tab based on the ID. |
public getTabs( ) : UI_tabs_tab[] |
Returns a list of all bookmarks. |
public getSelectedTabId( ) : string |
Returns the ID of the active tab. |