Skip to content

Releases: mfdeveloper/ionicx-components

Added trigger component like custom form control

07 May 10:31
Compare
Choose a tag to compare
  • Added new wrapper of type page, using NavigationController to navigate. Now, you can do something like this:
constructor(monthPickerCtrl: IonicMonthPickerController) { }

openPicker() {

   const picker = this.monthPickerCtrl.create({
     container: {
          type: 'page'
     }
  });

 picker.present();
}

Or use like a component tag selector

<ion-monthpicker-trigger [container]="{ type: 'page' }"> </ion-monthpicker-trigger>
  • Changed IonicMonthPickerTriggerComponent to use ControlValueAcessor Angular interface, and transform them to a custom FormControl. This allow change component state by form.controls['fieldName'].setValue('myMonth') and track form validation

  • Removed the afterRender event from trigger component. This is not necessary anymore, because you can subscribe for Reactive Form events (change, blur...)

Fixes - Modal open event propagation + change detections

17 Apr 15:57
Compare
Choose a tag to compare
  • Added event.stopPropagation() and event.preventDefault() when clicks on <ion-monthpicker-trigger> button. This avoid execute others click events that exists on the same page

  • Added a new EventEmiter called afterEvent. This is useful to emits to trigger custom actions from a parent component (a page that includes the `'). Thats can be used to update the button title dynamically from another component/page.