kartik-v / yii2-tabs-x

Extended bootstrap tabbed navigation widget for Yii 2.0 with various alignment and styling options.
Other
30 stars 17 forks source link

Handling Bootstrap active tabs via URL #39

Closed yafater closed 5 years ago

yafater commented 8 years ago

I'm using Tab-x. my codes are these

$items = [

[
    'label'=>'<i class="fa fa-plus-circle"></i> '.Yii::t('app', 'Create Category'),
    'linkOptions'=>['data-url'=>Url::to(['/site/createcategory'])],
    'active'=>TRUE
],

]; // Ajax Tabs Above echo TabsX::widget([ 'items'=>$items, 'position'=>TabsX::POS_ABOVE, 'encodeLabels'=>false ]); I want to show my active item that handles via url when my page is loading.How can I do that?

kullarkert commented 8 years ago

@yafater Enable sticky tabs

tsirakis commented 7 years ago

@kullar84 even if you enable the sticky tabs how you trigger the click on ajax content?

aikon2 commented 5 years ago

echo TabsX::widget([ 'enableStickyTabs' => true,

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.