简体   繁体   中英

Can YUIs DataTable have resizeable but not moveable columns?

I have implemented column resizing with YUIs DataTable as demonstrated in this example:

http://developer.yahoo.com/yui/examples/datatable/dt_complex_clean.html

Is there anyway to enable column resizing without column moving?

Yes. Set "resizable" to true in your column definitions (it defaults to false ). Your link has an example of this on line #79.

Don't set draggableColumns in the datatable configuration (it defaults to false ). This is done in the example on line #99.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM