0
Vaadin 트리 항목을 캡션을 html로 구문 분석하려고합니다. 문서에서 void setHtmlContentAllowed(boolean htmlContentAllowed) Sets whether html is allowed in the item captions.
메소드를 발견하고 작업이 완료되었다고 생각했습니다. 그러나 유감스럽게도 캡션은 여전히 String으로 이스케이프됩니다. 어떤 아이디어?Vaadin 트리 항목 캡션에 HTML 사용
심지어이 매우 간단한 예에서 나를 위해 작동하지 않습니다
class TestExplorer extends CustomComponent{
val tree = new Tree
tree.setHtmlContentAllowed(true)
tree.setCaptionAsHtml(true)
tree.addItem("<b>test</b>")
val panel = new Panel()
panel.setContent(tree)
setCompositionRoot(panel)
}
vaadin 7.6.8과 함께 일반 Java를 사용하고 있으며이 기능은 [암시 적 캡션, 명시 적 캡션 또는 속성] (https://vaadin.com/)에서 예상대로 작동합니다. docs/-/part/framework/components/components-selection.html # components.selection.captions) (항목 캡션으로 스크롤). 간단하지만 완전한 예제 ([sscce] (http://sscce.org))를 나눌 수 있습니까? – Morfic
설명에서 최소한의 예제 구성 요소를 업데이트했습니다. 너에게 효과가 있니? –
예, Vaadin 7.6.8에서는 일반 항목을 추가 한 후에 굵고 굵은 노드가없는 작은 흰색 패널이 나타납니다 ([this screenshot] (http://imgur.com/) 참조). a/Q39QH)). 어떤 버전을 사용하고 있습니까? – Morfic