DNNCommunity / DNNCommunity/DNN.Wiki
Add Support for Table Classes
- Dominant language
- C#
- Stars
- 15
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
## Description
Styling tables is kind of a pain with this module unless you write all the css yourself. With today's web ecosystem relying on platforms such as Foundation, Bootstrap, etc. I think it would be useful to set custom styles for all module tables. This will allow people to make pretty tables relatively easy without having to write much custom css and leverage their existing css that is already loaded in their theme.
## Describe the solution you'd like
I think we should create a module property that allows someone to plug in the custom css tables they would like used. Then when the module calls the create table code in the WikiModuleBase.cs:558 - `CreateTable()` we could read the module setting and plug it into the table creation logic. This should then take effect across the module.
Contributor guide
Research direction
Start at WikiModuleBase.cs:558 and inspect CreateTable(), then trace how module properties are defined and read. Add the requested configurable table CSS class and verify that the setting is applied consistently to tables created across the module.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100