I am working with SmartGwt.
Is it possible to hide the combobox dropdown button if it has only one Item?
のようなプロパティsetShowPickerIcon(false)を使用します。このプロパティを使用すると、SelectPicker Icon ドロップダウン ボタンが非表示になります。
Imho, it is not possible, but you can replace it with TextItem which has no dropdown button dynamically. Either by invoking setVisible(false/true) or by removing/adding it from/to the form.
変更リスナーを追加します。要素が 1 つしかない場合は、 を呼び出しますsetVisible(false)。