1 2 3 | <div th:classappend="${#httpServletRequest.requestURI} == 'url' ? 'on'"> <a href="list">list</a> </div> | cs |
[thymeleaf] 타임리프 th:classappend 동적으로 클래스 추가하기
[thymeleaf] 타임리프 th:classappend 동적으로 클래스 추가하기 타임리프에서 현재 페이지 값 혹은 넘겨받은 값을 기준으로 조건에 맞으면 클래스를 추가하는 경우가 있습니다. 그럴때 아래처럼
solbel.tistory.com
''o'' 카테고리의 다른 글
[Mybatis] Spring X is ambiguous in Result Maps collection 에러 원인과 해결 방법 (0) | 2021.04.19 |
---|---|
[html] 이미지 업로드 (0) | 2021.04.15 |
[MYSQL] where 절 like in (0) | 2021.04.15 |
[GA] Google Analytics 데이터 API로 받아오기 (javascript) (0) | 2021.04.14 |
[google] 로그인 연동 (0) | 2021.04.09 |