covalent icon indicating copy to clipboard operation
covalent copied to clipboard

td-data-table: Posibility to hide columns depending on screen resolution

Open vertigo7x opened this issue 9 years ago • 3 comments

Do you want to request a feature or report a bug?

feature

Feature Request

Add the possibility to hide or show columns depending on screen resolution or orientation.

What is the expected behavior?

Depending on screen resolution, the columns might be shown or hidden.

Other information

I've implemented a solution using the atomic components with the TdMediaService and a method witch is called on every resolution change. I would like to use the same mechanism but I don't know how to access (or even if it's possible) the refresh method of the td-data-table from component side.

vertigo7x avatar Jun 07 '17 09:06 vertigo7x

Yeah, you can access the data table within a component and call its refresh method via @ViewChild

emoralesb05 avatar Jun 08 '17 01:06 emoralesb05

Thanks for your response @emoralesb05. I'm a newbie with Angular and sometimes it's hard to know all the possibilities it offers. Thanks for the great work you and your team are doing! Works perfectly!

PS: Closing because it's already possible with @ViewChild access to context

vertigo7x avatar Jun 08 '17 08:06 vertigo7x

No worries! Thanks for the support 😄

emoralesb05 avatar Jun 08 '17 09:06 emoralesb05