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

If can drag the scroll column width ? #39

Open
ghost opened this issue May 6, 2017 · 1 comment
Open

If can drag the scroll column width ? #39

ghost opened this issue May 6, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented May 6, 2017

I want to drag the scroll column width? how?

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

@ghost ghost changed the title If can drag the scroll column width ?? If can drag the scroll column width ? May 6, 2017
@fredguile
Copy link
Owner

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?

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

No branches or pull requests

1 participant