Skip to content

Conversation

@spekkie2002
Copy link
Contributor

About styling... I agree with your principles as described in the README, but i do think it's easier if the hardcoded classes in the code could be set by default in the config instead of overriding the methods on every datatables component. This makes it easier to apply your own style and makes the code look a bit cleaner on your project.

Because of that i made the following changes:

  • Extracting the default CSS classes applied by the rowClasses() and cellClasses() methods to the config file.
  • Added a line in the README to let people know they can set these classes in the config.
  • Added comments to the config file to make it look and feel more like an original Laravel config file.

As this is my first pull request to an open-source project ever (better late then never), please let me know if i'm doing something you don't like :-) I'm here to learn!

Extracting the default CSS classes applied by the rowClasses() and cellClasses() methods so it's easier to globally change the style.
Added a short hint in the readme.
Also added some comments to the config file.
@marksalmon marksalmon merged commit 604508f into MedicOneSystems:master Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants