Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 501 Bytes

CUSTOMIZATION.md

File metadata and controls

26 lines (22 loc) · 501 Bytes

Custom views

  • Views are provided via VIEWS injection token. It is an array of View objects.
import { VIEWS, VIEW } from 'ngx-explorer';

// define your views
export const MyViews = [
    {
        name: 'Icons',
        icon: 'nxe-th-large',
        component: IconsComponent,
    },
    {
        name: 'List',
        icon: 'nxe-menu',
        component: ListComponent,
    },
] as View[];

// and provide them
providers: [
    { provide: VIEWS, useValue: MyViews }
]