Releases: mfdeveloper/ionicx-components
Added trigger component like custom form control
- Added new wrapper of type
page
, usingNavigationController
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 useControlValueAcessor
Angular interface, and transform them to a customFormControl
. This allow change component state byform.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
-
Added
event.stopPropagation()
andevent.preventDefault()
when clicks on<ion-monthpicker-trigger>
button. This avoid execute others click events that exists on the same page -
Added a new
EventEmiter
calledafterEvent
. 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.