question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Class configuration not working

See original GitHub issue

I’m setting up a smart-table, but I can’t add a class to an entire column. I’ve got this configuration:

settings = { columns: { SERIENUMERO: { title: this.translate.instant("invoices.NUMERO"), type: 'text', class: 'align-center' }, TOTAL: { title: this.translate.instant("invoices.TOTAL"), type: 'text', valuePrepareFunction: (cell,row) => row.TOTAL + " € ", }, FECHA: { title: this.translate.instant("invoices.FECHA"), type: 'date' }, EMPRESA: { title: this.translate.instant("invoices.EMPRESA"), type: 'string' }, PDF: { title: this.translate.instant("invoices.PDF"), type: 'custom', valuePrepareFunction: (cell,row) => row, renderComponent: InvoicePDFButtonComponent } }, actions: { add: false, edit: false, delete: false }, };

But in the “SERIENUMERO” column I can’t add the “align-center” class. It’s courious, because if I check the HTML result code, I found the “align-center” class on the of that column. But I want it in the entire column, not only on the header. Is this possible? Or this is a bug?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

1reaction
Alokeencommented, Jan 20, 2020

Same in 2020, v1.5.0, Angular 8.0.

column.class styles only the TH elements.

0reactions
pishangujeniyacommented, Nov 19, 2021

➕👍 Same problem here, class is only applied to element i.e. Header of the Ng2SmartTable

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Boot: Configuration Class is simply ignored and not ...
Service 2 starts incorrectly: the above configuration class is simply ignored and not initialized. The services are started in separate JVMs.
Read more >
4.3. Aggregating @Configuration classes with @Import - Spring
These scenarios have required providing all @Configuration classes to the constructor of a JavaConfigApplicationContext , and this is not always ideal.
Read more >
3 ways to solve Eclipse - main class not found error - Java67
2. Check for missing library · Go to configure build path · Check which JAR is missing · Remove them and add them...
Read more >
Spring @Configuration Annotation - DigitalOcean
Spring @Configuration annotation allows us to use annotations for dependency injection. Let's understand how to create Spring Configuration ...
Read more >
Discover test configuration on enclosing class for nested test ...
However, if a @Nested class does not declare its own test configuration, Spring will not find the configuration from the enclosing class.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found