npm @ngx-formly/nativescript 5.7.0
v5.7.0

latest releases: 6.3.1, 6.3.0, 6.2.2...
3 years ago

Highlights

  • Observable for validation message (Example)
    The validation message can return an observable value which is useful for an i18n app where the messages are loaded asynchronously.

  • Simplify passing extra parameters to validation (Example)

    validation: [
      { name: 'date-future', options: { days: 5 } }
    ]
  • Allow onInit/afterView/afterContent to return observables (Example)

    {
      hooks: {
        onInit: (field) => {
          // subscription and unsubscribe is handled by formly
          return field.formControl.valueChanges
            .pipe(tap(value => console.warn(value))),
          ;
        }
      }
    }
  • Take account of defined validators in a fieldGroup with empty key (Example)

Bug Fixes

  • schematics: rely sourceRoot to get the project path (#2292) (46885e9), closes #2291

Features

  • bootstrap: support switch style checkboxes (#2263) (5b1a771), closes #2257
  • core: add an alternative way for passing parameters to validation (#2269) (0295bd9), closes #1828
  • core: allow nullable value for group type (#2267) (a34d384), closes #2265
  • core: allow onInit/afterView/afterContent to return observables (#2242) (f91637e), closes #1986
  • core: deprecate doCheck, afterContent and afterView Checked hooks (#2245) (aea28e1)
  • core: support passing observable for validation message (#2241) (a53a737), closes #2214
  • core: support validations for fieldGroup with empty key (#2271) (ffe7df0), closes #2059 #2255
  • ionic: add compareWith input for select type (#2277) (7ef2b8e), closes #2275
  • material: add missing mat-datepicker inputs to datepickerOptions (#2274) (4003729), closes #2221

Don't miss a new nativescript release

NewReleases is sending notifications on new releases.