Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.2K
Views
no se pueden anular los estilos en primeNG con style, styleClass, inputStyle o inputStyleClass Angular-CLI

Finalmente pude hacer que primeNG funcionara con angular-cli. En `.angular-cli.json tengo:

 "styles": [ "../node_modules/primeng/resources/themes/omega/theme.css", "../node_modules/primeng/resources/primeng.css", "styles.css" ],

Estoy tratando de usar CalendarModule así:

 import {CalendarModule} from "primeng/primeng"; @NgModule({ imports: [ CalendarModule ],

En el HTML tengo lo siguiente:

 <p-calendar styleClass="test" [(ngModel)]="validationDate" inputStyleClass="test" [showIcon]="true" dateFormat="dd.mm.yy"></pcalendar>

En el componente css

 @Component({ selector: 'user-validation', templateUrl: 'user-validation.component.html', styleUrls: ['user-validation.component.css'] })

user-validation.component.css

 .test{ width: 25px; }
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

tratar

 /deep/ .test{ width: 25px !important; }

o

 >>> .test{ width: 25px !important; }
over 4 years ago · Santiago Trujillo Report

0

Esto funcionó para mí -

 <p-calendar name = "calendarMod" [showIcon]="true" [(ngModel)]="actionDate" dateFormat="mm/dd/yy" [inputStyle] = "{'width':'85px'}" ></p-calendar>
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!