Menu

Maslosoft Framework Logo Maslosoft Framework Documentation
Flexible Application Foundation


Signal Tabs

This is kind of tabs that will collect additional tabs via signals. These require property $signal to be set to instance of TabsSignalInterface, or array of this kind of signals.

Tabs collected by signals will be appended to existing tabs.

For sake of simplicity, example below uses existing user account tabs (AccountTabs) signal.

Content of one
Content of two
New Address
echo SignalTabs::widget([
	'signal' => new AccountTabs(new User),
	'items' => [
		[
			'label' => 'Item one',
			'content' => 'Content of one'
		],
		[
			'label' => 'Item two',
			'content' => 'Content of two'
		],
	]
]);