summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorIbanga Enoobong Ime <enoimeibanga@gmail.com>2018-03-19 18:15:26 +0100
committerIlia Motornyi <elmot@vaadin.com>2018-03-19 19:15:26 +0200
commit2036525461599c5ae74173eaf86e032dc89e7bf3 (patch)
treedfd410f64fca82a7240aa5b3fd8343378a73b6ce /documentation
parentc3a167f4226c0d3f7a570b2b89f5180f49c2f85d (diff)
downloadvaadin-framework-2036525461599c5ae74173eaf86e032dc89e7bf3.tar.gz
vaadin-framework-2036525461599c5ae74173eaf86e032dc89e7bf3.zip
fix reference to deprecated `FontAwesome.TIMES` (#10731)
Diffstat (limited to 'documentation')
-rw-r--r--documentation/tutorial.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/tutorial.adoc b/documentation/tutorial.adoc
index b1df5d2a93..fe8c4b09d7 100644
--- a/documentation/tutorial.adoc
+++ b/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.