Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(datepicker): add date picker popup version #273

Closed
kambojankit opened this issue Mar 11, 2016 · 106 comments
Closed

feat(datepicker): add date picker popup version #273

kambojankit opened this issue Mar 11, 2016 · 106 comments

Comments

@kambojankit
Copy link

@valorkin i am trying to use the date-picker popup, instead of date-picker (as per our needs), but i am unable to make it work yet.
I was trying out to update the code, but could not make my changes successfully.
can i as for your suggestions, some pointers or approach to complete what is left in the popup.

@valorkin valorkin changed the title Unable to use Date Picker Popup feat(datepicker): add date picker popup version Mar 24, 2016
@sanjayjha
Copy link

So is this resolved? If yes can I get an example to use this feature?

@jhuntoo
Copy link
Contributor

jhuntoo commented Mar 30, 2016

I really need this in my project - is there anything I can do to help this along?

@kambojankit
Copy link
Author

@jhuntoo @sanjayjha i was unable look at it due to urgent project needs. For the time being we settled with ng2-datepicker. Hope that helps.

@sanjayjha
Copy link

Any update on this?

@softgandhi
Copy link

+1. I would also love to get this feature.

@rolandoldengarm
Copy link

+1 for me as well.

@piotrmalecki
Copy link

+1

2 similar comments
@AlexandrAnash
Copy link

+1

@spatlollaa
Copy link

+1

@dothedesign
Copy link

+1 please

@malifai
Copy link

malifai commented May 2, 2016

+1

3 similar comments
@danielle5
Copy link

+1

@steveburkett
Copy link

+1

@fuitattila
Copy link

+1

@jasonkrot
Copy link

plusone

@Mighnus
Copy link

Mighnus commented May 26, 2016

I like the same feature. Is it planed?

@valorkin
Copy link
Member

yeap, just I after I will get modals working

@NandanPhadke
Copy link

Thanks @valorkin. I require this for my project as well. Looking forward to using this.

@valorkin
Copy link
Member

valorkin commented Jun 2, 2016

modals is working already, so I am working on datepicker popups

@sraparlatmw
Copy link

+1

4 similar comments
@boban100janovski
Copy link

+1

@ElBart00
Copy link

+1

@vibrant-aaronstreate
Copy link

+1

@geejay
Copy link

geejay commented Jun 21, 2016

+1

@Dinistro
Copy link
Contributor

Please stop post +1, this messes up our notifications...

@wtreur
Copy link

wtreur commented Apr 13, 2017

@exedor I seem to have your example with the popup over working together with @pnahtanoj css trick, but I used the .popover class instead. Like so:

/deep/ .popover {
  max-width: none;
}

Perhaps this is a version difference? I'm using 1.6.3

(Also: @pnahtanoj, thanks for the /deep/ trick to bypass Angular2's css encapsulation.

@lexon0011
Copy link

Is there a roadmap or a date from when the popup in the datepicker will be supported?

@ericocampos
Copy link

I've done my pop up calendar using a few features:

  • input-group
  • input-group-addon
  • dropdown-menu

<div class="input-group" dropdown> <input type="text" class="form-control" value="{{dtFinal | date:'dd/MM/yyyy'}}"> <div class="input-group-addon calendar-point" dropdownToggle> <span class="icon-calendar"></span> </div> <div dropdownMenu class="dropdown-menu dropdown-date"> <datepicker [(ngModel)]="dtFinal" [minDate]="minDate" [showWeeks]="true"></datepicker> </div> </div>

Here is a picture of it:
date-picker-popup

@lexon0011
Copy link

Thanks for your response - good workaround, but if I click on the "next" or "previous" button in the month pane, then the drowdown/datepicker will be closed. Is there a simple way to avoid this behavior?

@ericocampos
Copy link

@lexon0011 I solved this with <div class="input-group dropdown" dropdown autoClose="outsideClick">, but we have another problem, when I choose a date, the calendar will not close, only when I click outside it , For me it's ok, but for you it may not be the best solution

@Hesesses
Copy link

So disappointed to see that this issue hasnt been fixed in a year :(

@gardecki
Copy link

gardecki commented Jun 6, 2017

Do you know any well working Angular 2+ datepicker alternative with popup "feature"? I think it's not worth relying on ngx-bootstrap as "top priority issue" hasnt been fixed in a year :/

@ericocampos
Copy link

ericocampos commented Jun 6, 2017

@gardecki I've found this one https://www.npmjs.com/package/angular2-material-datepicker, when I was looking for this, I don't test it yet, since I skipped this part of the project to do other things more important.

@fleskesvor
Copy link

For my own project, I'm "wrapping" ng-bootstrap's datepicker in a custom component to achieve two-way binding with a date string, since that one can't handle date objects or strings, but has a nice popup. It's a hacky solution, I know, but there are no good alternatives yet that I know of.

@malifai
Copy link

malifai commented Jun 6, 2017

@gerdecki I'm using materialize-css. No need for an angular wrapper around it, you can easily create one yourself if you need one.

@bubby248
Copy link

bubby248 commented Jun 6, 2017

Well I used kekeh mydatepicker.This served all my purpose

@lucasselliach
Copy link

@bubby248 I'm using too. But the ngx-mydatepicker. (from kekeh)

difference between these two is that with the ngx-mydatepicker you can define the style of input box, calendar and clear buttons.

@kamikaze
Copy link

f-ing sh*t... 1 year and still nothing? this is a joke

@fleskesvor
Copy link

This is a free and open source project—you have paid nothing and are owed nothing. If you are unhappy with the progress, you can find an alternative, or make a fork and fix it yourself.

@fabiohbarbosa
Copy link

+1

@eestein
Copy link

eestein commented Jul 23, 2017

@ericocampos answer works, but it's missing * before dropdownMenu:


<div class="input-group" dropdown> 
    <input type="text" class="form-control" value="{{dtFinal | date:'dd/MM/yyyy'}}"> 
    <div class="input-group-addon calendar-point" dropdownToggle> 
        <span class="icon-calendar"></span> 
    </div> 
    <div *dropdownMenu class="dropdown-menu dropdown-date"> 
        <datepicker [(ngModel)]="dtFinal" [minDate]="minDate" [showWeeks]="true"></datepicker> 
    </div> 
</div>

@FloRest
Copy link

FloRest commented Jul 24, 2017

Are you still planning to do it ?

@valorkin
Copy link
Member

There are already working version of datepicker in @next version,
in next couple of weeks it should be available in latest version

@valorkin
Copy link
Member

Popup datepicker *

@lexon0011
Copy link

is it also available for the timepicker?

@wagnereliakim
Copy link

Incrementing the @ericocampos and @eestein implementation's, because the 'popup' was closing on month navigation..

            <div class="input-group" #dataAberturaInicio="bs-dropdown" dropdown [autoClose]="false">
              <input id="dataAberturaInicio" type="text" class="form-control" readonly
                     value="{{consultaAvancadaForm.get('dataAberturaInicio').value | date:'dd/MM/yyyy'}}">
              <div class="input-group-addon calendar-point" dropdownToggle>
                <span class="fa fa-calendar"></span>
              </div>
              <div *dropdownMenu class="dropdown-menu dropdown-date">
                <datepicker formControlName="dataAberturaInicio" [showWeeks]="false"
                (selectionDone)="dataAberturaInicio.hide()"></datepicker>
              </div>
            </div>

@DavesBrain
Copy link

At the risk of "piling on", wondering what the current status of this issue is.
I am using ngx-bootstrap datepicker but need to place it in a popup.
Safe to say this is still under development?

@valorkin
Copy link
Member

Polishing https://valorkin.github.io/ngx-bootstrap/#/datepicker#examples
Date and date range picker, they are available in @next for several months, but not documented yet

@valorkin valorkin reopened this Aug 14, 2017
@valorkin
Copy link
Member

working version is merged in development branch
on monday it will be tested\released in minimal configuration
next week will be testing stabilization
and will be adding one feature after another

@valorkin
Copy link
Member

added :)
Work in progress, it has minimal functionality
but I am fully focused on datepicker now,
so next update of it will be next week

new datepicker (new style and pop up version)
available in v1.9.0+
check this out: http://valor-software.com/ngx-bootstrap/#/datepicker#examples

@valorkin
Copy link
Member

and, forgive me for such long waiting time :(

@shubhv1
Copy link

shubhv1 commented Aug 30, 2018

@valorkin Do we anything like standalone timepicker on popup?
In my project, I am using ngx only and I don't want to install any other module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests