autoWidth Boolean

If set to true, the widget automatically adjusts the width of the popup element and does not wrap up the item label.

Example - enable autoWidth

<input id="dropdowntree" style="width: 100px;">
  dataSource: [{ text: "Short item", value: 1 }, { text: "An item with really, really long text", value: 2 }],
  autoWidth: true
In this article
Not finding the help you need? Improve this article