feat(table): add ability to customize the CSS class generation for columns
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Feature Description
Currently, if we have column say, `bankAccount`, the generated class name would be `cdk-column-bankAccount`/`mat-column-bankAccount`, but then when I use this kind of selector in my scss, I get some lint warnings, as we're supposed to use kebab-case, not camelCase... so we have to keep silencing the warnings everytime we have to do this. What we want to propose is to have an option to customize this css class generation (if possibly, globally).
### Use Case
We want to control my table styles without relying on camelCased selectors.
So, instead of this:
https://github.com/angular/components/blob/59002e1649123922df3532f4be78c485a73c5bc1/src/cdk/table/cell.ts#L144
We'd love to have an option to implement my own css class generator.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia leggendo il codice di generazione delle classi collegato in `src/cdk/table/cell.ts` e il caso d’uso dell’issue. Il risultato richiesto è un’opzione, possibilmente globale, per personalizzare le classi CSS delle colonne generate; l’issue non specifica la relativa API né i test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100