PrimeNG Calendar with Bootstrap

UI Components for Angular
Post Reply
Niiix
Posts: 18
Joined: 12 Oct 2017, 22:58

12 Oct 2017, 23:09

Hi everyone!
How I can fix a problem?

If I use only PrimeNG, I am get:
Image

If I use PrimeNG+Bootstrap, I am get:
Image
(the right side was slid)

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

13 Oct 2017, 11:19

It seems like Bootstrap framework styles are impacting PrimeNG styles. If it is mandatory to use Bootstrap then you should override the styles as it required.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Niiix
Posts: 18
Joined: 12 Oct 2017, 22:58

13 Oct 2017, 14:10

sudheer wrote:
13 Oct 2017, 11:19
It seems like Bootstrap framework styles are impacting PrimeNG styles. If it is mandatory to use Bootstrap then you should override the styles as it required.
Yes, You are right. But there is his stile:
Image

When i add in Chrome DevTools -> width: 260px; (for example) Calendar look pretty good, but i can't add it in stile :(

And one more.
If I paste p-calendar in tag <form></form> and click repeatedly, it look like:
Image

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

13 Oct 2017, 17:29

Those styles are generated one and you can't control them. But you can try with style classes mentioned in calendar documentation. Or If you can provide me the plunker example then I will try it.Thanks.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Niiix
Posts: 18
Joined: 12 Oct 2017, 22:58

03 Nov 2017, 23:36

i did this like this - in app.component.css add

Code: Select all

.ui-datepicker  {
  width: 270px;
}
And calendar look pretty good :)
THX!

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests