ssuperczynski / ngx-easy-table

The Easiest Angular Table. 12kb gzipped! Tree-shakeable. 55 features and growing!
https://ngx-easy-table.eu
MIT License
376 stars 101 forks source link

Allow custom classes #197

Closed dburner closed 5 years ago

dburner commented 5 years ago

Is your feature request related to a problem? Please describe. Allow custom class for table element (to allow custom boostrap themeing).

Describe the solution you'd like Maybe add another property in config that maps different classes for example:

var config = {
   styles: {
      tableElement: "table table-bordered table-striped table-sm" // allow multiple classes
   }
}

Describe alternatives you've considered I'm not verry familiar with Angular 2+ but there may be another option to make something like an INgxTableSettings service that will override the classes maybe. Would it be possible to use the <ng-template> tag for the <table> element as well?

Additional context Same thing goes for the pager I guess (allow placing of boostrap classes). I would like my application to be compatible with styles from this website: https://bootswatch.com/, therefore if I use boostrap classes in ngx easy table I can apply any skin from that site.

Also thanks for the awesome library :+1:

ssuperczynski commented 5 years ago

I just started work on this feature, it was on my TODO list :). Version 8 will be released today, so this feature should be available soon with version 9.

dburner commented 5 years ago

Oh, great to hear it, thanks !

ssuperczynski commented 5 years ago

I'll leave this issue open, it will help me to keep it in mind

ssuperczynski commented 5 years ago

Feature has been released. See https://github.com/ssuperczynski/ngx-easy-table/releases/tag/9.0 for more details.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.