]> source.dussan.org Git - vaadin-framework.git/commitdiff
fix reference to deprecated `FontAwesome.TIMES` (#10731)
authorIbanga Enoobong Ime <enoimeibanga@gmail.com>
Mon, 19 Mar 2018 17:15:26 +0000 (18:15 +0100)
committerIlia Motornyi <elmot@vaadin.com>
Mon, 19 Mar 2018 17:15:26 +0000 (19:15 +0200)
documentation/tutorial.adoc

index b1df5d2a9336f04a2b55ab6fcc664e7d252320d1..fe8c4b09d7039fdd801ea304adf097a5423edea6 100644 (file)
@@ -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.