All Projects → arabsight → aurelia-mdc-plugin

arabsight / aurelia-mdc-plugin

Licence: MIT license
MDC (Material Design UI Components) plugin for Aurelia.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to aurelia-mdc-plugin

aurelia-knockout
Adds support for Knockout binding syntax to make transition from Durandal and Knockout to Aurelia simpler.
Stars: ✭ 22 (+69.23%)
Mutual labels:  aurelia, aurelia-plugins
aurelia-mdl-plugin
Material Design Lite plugin for Aurelia.
Stars: ✭ 19 (+46.15%)
Mutual labels:  aurelia, aurelia-plugins
aurelia-virtual-scroll
Aurelia Virtual Scroller
Stars: ✭ 15 (+15.38%)
Mutual labels:  aurelia, aurelia-plugins
aurelia-fontawesome
Font Awesome 5 Aurelia component
Stars: ✭ 15 (+15.38%)
Mutual labels:  aurelia, aurelia-plugins
Webapiclientgen
Strongly Typed Client API Generators generate strongly typed client APIs in C# .NET and in TypeScript for jQuery and Angular 2+ from ASP.NET Web API and .NET Core Web API
Stars: ✭ 134 (+930.77%)
Mutual labels:  aurelia
House
Proof of Concept and Research repository.
Stars: ✭ 37 (+184.62%)
Mutual labels:  aurelia
Aurelia Google Analytics
An Aurelia.io plugin that adds Google Analytics page tracking to your project.
Stars: ✭ 28 (+115.38%)
Mutual labels:  aurelia
Slim.js
Fast & Robust Front-End Micro-framework based on modern standards
Stars: ✭ 789 (+5969.23%)
Mutual labels:  aurelia
au-datatable
Aurelia Datatable, A highly customizable html datatable, build for the Aurelia Framework.
Stars: ✭ 21 (+61.54%)
Mutual labels:  aurelia
Servicestackvs
ServiceStackVS - Visual Studio extension for ServiceStack
Stars: ✭ 117 (+800%)
Mutual labels:  aurelia
Store
Aurelia single state store based on RxJS
Stars: ✭ 103 (+692.31%)
Mutual labels:  aurelia
Aurelia
Aurelia 2, a standards-based, front-end framework designed for high-performing, ambitious applications.
Stars: ✭ 995 (+7553.85%)
Mutual labels:  aurelia
Generator Spfx
Open-source generator to extend the capabilities of the Microsoft SPFx generator
Stars: ✭ 150 (+1053.85%)
Mutual labels:  aurelia
Aurelia Store Examples
Aurelia Store Plugin examples
Stars: ✭ 29 (+123.08%)
Mutual labels:  aurelia
aurelia-dotnet-template
A starting point for new dotnet projects using the aurelia-framework with typescript and webpack.
Stars: ✭ 13 (+0%)
Mutual labels:  aurelia
Bcx Aurelia Dnd
Aurelia Drag and Drop.
Stars: ✭ 20 (+53.85%)
Mutual labels:  aurelia
Aurelia Realworld Example App
Exemplary real world application built with Aurelia
Stars: ✭ 183 (+1307.69%)
Mutual labels:  aurelia
Aurelia Slickgrid
Aurelia-Slickgrid a wrapper of the lightning fast & customizable SlickGrid datagrid with a few Styling Themes
Stars: ✭ 100 (+669.23%)
Mutual labels:  aurelia
Aurelia Toolbelt
A bunch of components from bootstrap 4, jquery and vanilla js for Aurelia framework
Stars: ✭ 63 (+384.62%)
Mutual labels:  aurelia
Aurelia Kendoui Bridge
Stars: ✭ 120 (+823.08%)
Mutual labels:  aurelia

aurelia-mdc-plugin

NPM

Aurelia CLI:

  • Install:
npm i -S material-components-web
npm i -S aurelia-mdc-plugin
  • Bundle with Aurelia-CLI (requirejs):

add mdc & plugin to one of your bundle's dependencies in aurelia.json.

{
    "name": "material-components-web",
    "path": "../node_modules/material-components-web/dist",
    "main": "material-components-web",
    "resources": [
        "material-components-web.css"
    ]
},
{
    "name": "aurelia-mdc-plugin",
    "path": "../node_modules/aurelia-mdc-plugin/dist/amd",
    "main": "index"
}
  • Register the plugin:
export function configure(aurelia) {
    ...
    aurelia.use.plugin('aurelia-mdc-plugin');
    ...
}

with WebPack:

aurelia.use.plugin(PLATFORM.moduleName('aurelia-mdc-plugin'));
  • import the css:
<require from="material-components-web/material-components-web.css"></require>
  • Use it!
<button class="mdc-button
               mdc-button--raised
               mdc-button--primary
               mdc-ripple-surface">
    Print Greeting
</button>
  • Add new or 3rd party MDC-web components:
aurelia.use.plugin('aurelia-mdc-plugin', mdc => mdc.addComponents({
    'mdc-selector': 'MDCClassName'
}));

The plugin automaticaly adds data-mdc-auto-init="MDCRipple" to the button above and initializes it, so you do not have to add it to any of the components available.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].