Woy
November 15, 2015, 12:42am
1
What does the property adjust:true do?
The doc http://docs.webix.com/datatable__sizing.html speaks about two Options “data” or " header" for the adjust property.
But the Example: http://docs.webix.com/samples/15_datatable/09_columns/01_size_by_content.html shows adjust:true
Looking at the page of the api-docs where columns of datatables is describes (http://docs.webix.com/api__ui.datatable_columns_config.html ) it only says:
adjust (boolean) adjusts the width of the column to fit the related content size
I just tried using both “header” and “data” and that indeed seems to work also.
Woy
November 16, 2015, 5:32pm
3
yea, i know the differences between “header” and “data”. i know that the size belongs to header or data, but i wanna know what adjust belongs to if true.
i think the adjust:true is equal to adjust:“data”
If I’m not mistaken, the actual algorithm is :
‘’’
if( not ‘header’)
then adjust relative to the column’s data
else adjust relative to the column’s header
‘’’
( search for “_getColumnConfigSize()” )
so, yes, adjust: true is equivalent to adjust: ‘data’.
Helga
November 17, 2015, 7:19am
5
Actually adjust:true
enables adjustment to the widest item among data items and column headers (in case there are several ones).
We have corrected the documentation to reflect this issue. Thank you for pointing.