How to use the aurelia-materialize-bridge.MaterializeFormValidationRenderer function in aurelia-materialize-bridge

To help you get started, we’ve selected a few aurelia-materialize-bridge examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MayGo / tockler / src / welcome.ts View on Github external
constructor(private i18n: I18N, private element: Element, private ea: EventAggregator, controller: ValidationController,
  private trackItemService: TrackItemService) {
    this.controller = controller;
    this.controller.addRenderer(new MaterializeFormValidationRenderer());

    ea.subscribe('i18n:locale:changed', payload => {
      this.i18n.updateTranslations(this.element);
    });

    ValidationRules
    .ensure('firstName')
      .required()
    .ensure('lastName')
      .required()
      .minLength(3)
    .on(this);

    this.status.chromeVersion = process.versions.chrome;
    this.status.electronVersion = process.versions.electron;
    this.status.nodeVersion = process.versions.node;

aurelia-materialize-bridge

Aurelia interface to http://materializecss.com/

MIT
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis

Popular aurelia-materialize-bridge functions