Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MudTable: Add TableClass parameter #11351 #11352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 18, 2025

Conversation

nathanhqws
Copy link
Contributor

@nathanhqws nathanhqws commented May 17, 2025

Description

This PR adds a new TableClass parameter to MudTable<T>, allowing consumers to apply custom CSS classes directly to the rendered <table> element.
Fixes #11351 .

How Has This Been Tested?

Tested on production site that uses a Bootstrap template and classes successfully applied to html table element.

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or improvement to the website or code docs)

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@github-actions github-actions bot added enhancement New feature or request PR: needs review labels May 17, 2025
/// The custom CSS classes to apply to the table.
/// </summary>
[Parameter]
public string? TableClass { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing category attribute.

Copy link

codecov bot commented May 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.12%. Comparing base (34a2365) to head (ebaecac).
Report is 2 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev   #11352   +/-   ##
=======================================
  Coverage   91.12%   91.12%           
=======================================
  Files         465      465           
  Lines       14400    14403    +3     
  Branches     2787     2787           
=======================================
+ Hits        13122    13125    +3     
  Misses        642      642           
  Partials      636      636           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nathanhqws
Copy link
Contributor Author

Apologies, category added.

Copy link

@ScarletKuro ScarletKuro changed the title Add TableClass parameter to MudTable for custom table styling #11351 MudTable: Add TableClass parameter #11351 May 18, 2025
@ScarletKuro ScarletKuro merged commit 8ab99c5 into MudBlazor:dev May 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MudTable: Add TableClass property
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.