Hi Isomorphic,
Can you please give me an example of how to escape HTML in the dropdown for a MultiComboBoxItem.
I cannot seem to find the combination of settings.
Thanks
Can you please give me an example of how to escape HTML in the dropdown for a MultiComboBoxItem.
I cannot seem to find the combination of settings.
Code:
setOptionDataSource(userDs); setOptionOperationId(UserConstants.OPERATION_FETCH_REFERENCES_PLUS); setForeignDisplayField(UserConstants.USER_NAME); setValueField(UserConstants.USER_NAME); setMultiple(Boolean.TRUE); setWidth(FULL); setEscapeHTML(Boolean.TRUE); setAutoFetchData(Boolean.FALSE); ComboBoxItem properties = new ComboBoxItem(); properties.setWidth(200); properties.setHint("Enter User Id (Username)"); properties.setSortField(UserConstants.USER_NAME); ListGrid pickListProperties = new ListGrid(); pickListProperties.setDataFetchMode(FetchMode.PAGED); pickListProperties.setDataPageSize(SharedConstants.DEFAULT_DATA_PAGE_SIZE); pickListProperties.addFetchDataHandler(event -> { if (event == null) return; DSRequest request = event.getRequestProperties(); if (request != null) request.setTextMatchStyle(TextMatchStyle.STARTS_WITH); }); properties.setEscapeHTML(Boolean.TRUE); properties.setPickListProperties(pickListProperties); setComboBoxProperties(properties);
Comment