Using Pjax with Tabs::widget

Is there anyway to place the Pjax tags around the content of a tab?

The reason I ask is that I wrapped the entire tabs widget with Pjax tags like so:


<?php Pjax::begin(['id' => 'my-tabs']); ?>

    <?= Tabs::widget([

****Widget Params*******

]);

?>

<?php Pjax::end(); ?>

and when a Pjax call is made from the 3rd tab, the entire tab widget is refreshed back to the 1st tab.

I tried doing something like this in the tabs widget params:


'content' => Pjax::begin(['id' => 'my-tabs']) . 'tab content' . Pjax::end()

but i get an error about how Yii can’t echo Pjax.