I have a treelist working using ExtJS6 but since items are left padded automatically given their depth and text inside it gets truncated for third child and deeper. Since I use it as a menu, having fixed width. I need to remove auto calculated leftpad margin. I did not find anything useful while going through extjs api for treelist. Could anyone please help
相关问题
- Sencha Touch Uncaught typeError: undefined is not
- How I'll create a model from json file? (ExtJS
- Decimal precision in an EXTJS grid
- ExtJS 6 - pivot without CMD
- How to add an Extra button on Extjs grid header me
相关文章
- Sencha Ext.define Uses vs Requires
- Scrolling issues with ExtJS 5 app inside IFrame
- Sencha Touch in WebView
- load different views into viewport
- Abort an ext js grid store ajax call
- Disabling the timezone conversion in ExtJS
- Sencha CMD: 404 errors when running built producti
- GXT EditorGrid: choose cell editor type on a cell
If you look at the code of
treelist
andtreelistitem
and abstract tree list item for a minute, you see that you can use the undocumented config propertyindent:0
or the methodsetIndent(0)
.Not sure why it's not documented, presumably they intend to change the naming in future versions.
I have tested that it's working by opening the dashboard example, expanding the "pages" subtree, and then putting the following line into browser console: