ng2-md-datatable icon indicating copy to clipboard operation
ng2-md-datatable copied to clipboard

If can drag the scroll column width ?

Open ghost opened this issue 7 years ago • 1 comments

I want to drag the scroll column width? how?

Hope to have some online Demo better experience this Component , Like this component ❤️

ghost avatar May 06 '17 06:05 ghost

Hey, many thanks! That's a good question, it sounds actually challenging. I'd like to focus first on a fix for mobile rendering, but that's definitely something that could be tackled in a near future.

How? We could set a "draggable" boolean input property on MdDataTableHeaderComponent to enable the feature. And a dynamic "width" property on MdDataTableColumnComponent that renders a style attribute. The drag'n'drop would be handled by a nifty-but-easy RxJS chain. During the drag we would make sure to pause Angular's change detection by using NgZone.

Who's up for the challenge?

fredguile avatar May 09 '17 12:05 fredguile