ng-dynamic-forms icon indicating copy to clipboard operation
ng-dynamic-forms copied to clipboard

ui-ng-bootstap ngbDatepicker value should convert to {day, month, number} interface

Open lecnierfreeman opened this issue 9 years ago • 1 comments

I'm submitting a...


[x ] Bug
[ ] Feature Request / Proposal
[ ] Question

I'm using...


NG Dynamic Forms Version: 
        "@ng-dynamic-forms/core": "^1.4.34",
        "@ng-dynamic-forms/ui-ng-bootstrap": "^1.4.34",

[ ] Basic UI
[ ] Bootstrap UI  
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[ ] Material  
[x ] NG Bootstrap
[ ] Prime NG

Description

When using ng-bootstrap ui library ngbDatepicker component expects as [startDate] a type NgbDateStruct that is an interface with {day: number, month: number, year: number} but current implementation only supports string | Date | null making impossible to initialize the start date on the component.

Could be possible to add a converter function or a pipe to transform the value from string and Date to NgbDateStruct: {day: number, month: number, year: number} in DynamicNGBootstrapFormControlComponent ?

lecnierfreeman avatar Oct 27 '17 19:10 lecnierfreeman

@lecnierfreeman Hi! Thanks for reporting this!

There'll be a fix available in 5.0.0 as soon as Angular 5 stable is released.

udos86 avatar Oct 27 '17 23:10 udos86