Giter Site home page Giter Site logo

Sidebar - Incorrect highlighting about nebular HOT 5 CLOSED

akveo avatar akveo commented on May 5, 2024
Sidebar - Incorrect highlighting

from nebular.

Comments (5)

nnixaa avatar nnixaa commented on May 5, 2024

Hey @jarredszabadi, could you provide your menu config, please?

from nebular.

jarredszabadi avatar jarredszabadi commented on May 5, 2024

`import { NbMenuItem } from 'nebular/theme';

export const MENU_ITEMS: NbMenuItem[] = [
{
title: 'At A Glance',
icon: 'ion-home',
link: '/pages/at-a-glance',
home: true,
},
{
title: 'ANALYTICS',
group: true,
},
{
title: 'Manufacturers',
icon: 'ion-briefcase',
link: '/pages/manufacturers',
},
{
title: 'Equipment',
icon: 'ion-document-text',
link: '/pages/equipment',
},
{
title: 'Gym Capacity',
icon: 'ion-podium',
link: '/pages/gym_capacity',
},
{
title: 'Gym Management',
icon: 'ion-battery-half',
link: '/pages/gym_management',
},
{
title: 'Manufacturer Drill Down',
icon: 'ion-arrow-graph-up-right',
link: '/pages/manufacturer_drill_down',
},
{
title: 'Equipment Drill Down',
icon: 'ion-arrow-graph-up-left',
link: '/pages/equipment_drill_down',
},
];
`

***had to remove the @ from the nebular/theme import for it to show up in the post on github.

from nebular.

Mr-Sloth avatar Mr-Sloth commented on May 5, 2024

Could you add your routes also ? I tried to verify it by having 2 menu items like:
-staff
-staff_list

And did not got the same result.

from nebular.

jarredszabadi avatar jarredszabadi commented on May 5, 2024

`import { RouterModule, Routes } from 'angular/router';
import { NgModule } from 'angular/core';

import { PagesComponent } from './pages.component';
import { AtAGlanceComponent } from './at_a_glance/at_a_glance.component';
import { ManufacturerComponent } from './manufacturer/manufacturer.component';
import { EquipmentComponent } from './equipment/equipment.component';
import { GymCapacityComponent } from './gym_capacity/gym_capacity.component';
import { GymManagementComponent } from './gym_management/gym_management.component';
import { ManufacturerDrillDownComponent } from './manufacturer_drill_down/manufacturer_drill_down.component';
import { EquipmentDrillDownComponent } from './equipment_drill_down/equipment_drill_down.component';

const routes: Routes = [{
path: '',
component: PagesComponent,
children: [
{
path: 'at-a-glance',
component: AtAGlanceComponent,
},
{
path: 'manufacturers',
component: ManufacturerComponent,
},
{
path: 'equipment',
component: EquipmentComponent,
},
{
path: 'gym_capacity',
component: GymCapacityComponent,
},
{
path: 'gym_management',
component: GymManagementComponent,
},
{
path: 'manufacturer_drill_down',
component: ManufacturerDrillDownComponent,
},
{
path: 'equipment_drill_down',
component: EquipmentDrillDownComponent,
},
{
path: '',
redirectTo: 'at-a-glance',
pathMatch: 'full',
}],
}];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class PagesRoutingModule {
}
`

from nebular.

nnixaa avatar nnixaa commented on May 5, 2024

Closing as it's been a while and similar issues have been fixed.

from nebular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.