Code Monkey home page Code Monkey logo

extensions's Introduction

Ng-Matero Extensions

CodeFactor npm GitHub Release Date license Gitter

The Ng-Matero Extensions is an extended component library for Angular Material.

Documentation

Check out the demos and APIs.

Installation

At first, you should install the Angular Material and setup it. Learn more about the setup.

Install the Extensions library:

$ npm install @ng-matero/extensions --save

Setup

Import the modules you need, e.g. data-grid and select.

import { MtxGridModule } from '@ng-matero/extensions/grid';
import { MtxSelectModule } from '@ng-matero/extensions/select';

@NgModule({
  ...
  imports: [MtxGridModule, MtxSelectModule, ...],
  ...
})
export class YourAppModule {
}

Theming

After import modules, you must define a theme. More about theming.

M2 theme

@use '@angular/material' as mat;
@use '@ng-matero/extensions' as mtx;

$theme: mat.define-light-theme(...);

@include mat.all-component-themes($theme);
@include mtx.all-component-themes($theme);

M3 theme

@use '@angular/material' as mat;
@use '@ng-matero/extensions' as mtx;

$config: (...);

$theme: mat.private-deep-merge-all(
  mat.define-theme($config),
  mtx.define-theme($config)
);

html {
  @include mat.all-component-themes($theme);
  @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-matero/extensions/prebuilt-themes).

@import '@ng-matero/extensions/prebuilt-themes/azure-blue.css'

Development

$ git clone [email protected]:ng-matero/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.

License

MIT

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.