Angular Material Extensions
bash
$ npm install @ng-zi/extensions --save
`
Setup
Import the modules you need, e.g. data-grid and select.
`ts
import { MtxGridModule } from '@ng-zi/extensions/grid';
import { MtxSelectModule } from '@ng-zi/extensions/select';
@NgModule({
...
imports: [MtxGridModule, MtxSelectModule, ...],
...
})
export class YourAppModule {
}
`
Theming
After import modules, you must define a theme. More about theming.
`scss
@use '@ng-zi/extensions' as mtx;
@include mtx.all-component-themes($theme);
`
The @use-based Sass API is only available in the version 12.0.0 and above.
You can also using a pre-built theme which in the "prebuilt-themes" directory of the npm package (@ng-zi/extensions/prebuilt-themes).
`scss
@import '@ng-zi/extensions/prebuilt-themes/indigo-pink.css'
`
Development
`bash
$ git clone git@github.com:Ng-Zi/extensions.git
$ cd extensions
$ yarn
$ yarn run start
`
Navigate to http://localhost:4200/`. The app will automatically reload if you change any of the source files.