소스 검색

fix reference to deprecated `FontAwesome.TIMES` (#10731)

tags/8.4.0.alpha1
Ibanga Enoobong Ime 6 년 전
부모
커밋
2036525461
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      documentation/tutorial.adoc

+ 2
- 2
documentation/tutorial.adoc 파일 보기

@@ -444,13 +444,13 @@ to the init method, for example right after your _filterText_ configuration:

[source,java]
----
Button clearFilterTextBtn = new Button(FontAwesome.TIMES);
Button clearFilterTextBtn = new Button(VaadinIcons.CLOSE);
clearFilterTextBtn.setDescription("Clear the current filter");
clearFilterTextBtn.addClickListener(e -> filterText.clear());
----

Vaadin contains a set of built in icons, from which we use the "X" icon,
_FontAwesome.TIMES_, here, which most users will recognise as a functionality to clear
_VaadinIcons.CLOSE_, here, which most users will recognise as a functionality to clear
the value. If we set the description to a component, it will be shown as a
tooltip for those users who hover the cursor over the button and wonder what to
do with it. In the click listener, we simply clear the text from the field.

Loading…
취소
저장