angular-table-resize
angular-table-resize copied to clipboard
Add project test
Because my module is primarily a visual component I can't imagine how unit tests would apply. Could you supply me with some reading material or frameworks I could use? :)
@Tympanix sorry for the delay, I can imagine some types of tests. For example,
When creating table-resize
should have id in table
should have in every TH the div handle`
When the resize happens in column
should modify the width of the column
when the minimun value for equas the value minimun table th
should not modify the width of the column
About the structure of test you can use for example: http://mochajs.org/ https://github.com/domenic/sinon-chai Example the my application https://github.com/julianosaless/management-store/tree/master/src/Store.WebApp/assets/es6/test
@Tympanix anything and so send me a message !!!
Awesome. I will work on some unit testing soon :)
Hello. is this resizeable work with rtl (right to left) direction? when I change my table direction to rtl this resizeable not work correctly. please help me. I really need to this component. thanks
With the css style direction: rtl;
the table behaves a bit abnormal. My suggestion is: use the OverflowResizer which works in this mode. If you need multiple resizers in your app you can easily implement your own implementation that works with your setup. Look in this folder to see how the existing resizers are implented - copy them and tweak them to your liking. I hope this helps
thank you. but I found a solution that not need to implement a new factory. just we need replace "var diffX = newX - orgX" with "var diffX = orgX - newX;" and every thing will be ok.
@Tympanix I can working in this issue ?
If you mean the unit testing i must admit it has been delayed because of studying and other projects. You are very welcome to contribute if you like 👍