Skip to content
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

Added color row for tables #2950

Open
wants to merge 4 commits into
base: 15.0-dev
Choose a base branch
from

Conversation

bald-cat
Copy link
Contributor

Fixes #

Proposed Changes

  • Possibility to choose the color of a row in a table.
  • Added method contextual() in Table.php
  • Added method contextualClass() in Color enum
  • Added call closure function in table.blade.php
  • Default using Color::DEFAULT in contextual method not rewrite

];
}

protected function contextual(Repository|Model|string $row): Color
Copy link
Member

Choose a reason for hiding this comment

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

I like the idea of dynamically changing CSS strings based on conditions, but the method name feels too generic. Do you think we could make it more precise?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll come up with something more understandable, I just used a word from the bootstrap documentation :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants