본문 바로가기
JavaScript

[JavaScript] Feather Icon 동적으로 생성하기

by palbokdev 2023. 3. 13.
$('ul.list-group').append(`<i data-feather="list"></i>`); // 동적 element 생성
feather.replace(); // 아이콘 변환

 

ref : https://github.com/feathericons/feather/issues/758