소스 검색

Replace FontAwesome with VaadinIcons in an example (#9534)

FontAwesome is deprecated
tags/8.1.0.beta2
manishpatelUK 7 년 전
부모
커밋
1eb6c9402c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      documentation/layout/layout-formlayout.asciidoc

+ 3
- 3
documentation/layout/layout-formlayout.asciidoc 파일 보기

@@ -27,16 +27,16 @@ The following example shows typical use of [classname]#FormLayout# in a form:
----
FormLayout form = new FormLayout();
TextField tf1 = new TextField("Name");
tf1.setIcon(FontAwesome.USER);
tf1.setIcon(VaadinIcons.USER);
tf1.setRequiredIndicatorVisible(true);
form.addComponent(tf1);

TextField tf2 = new TextField("Street address");
tf2.setIcon(FontAwesome.ROAD);
tf2.setIcon(VaadinIcons.ROAD);
form.addComponent(tf2);

TextField tf3 = new TextField("Postal code");
tf3.setIcon(FontAwesome.ENVELOPE);
tf3.setIcon(VaadinIcons.ENVELOPE);
form.addComponent(tf3);
// normally comes from validation by Binder
tf3.setComponentError(new UserError("Doh!"));

Loading…
취소
저장