# 토픽 목록 항목의 style 속성을 동적으로 수정하기

**URL:** https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415
**Category:** Development
**Created:** [1월 9, 2025, 11:08오후 UTC](https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415 "2025-01-09T23:08:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [1월 10, 2025, 6:52오전 UTC](https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415/2 "2025-01-10T06:52:39Z")

</div>

> [@merefield](#):
>
> 제가 이해한 바로는, 이것은 비추천(deprecated)되는 메서드입니다.

그렇습니까? 😕 네이티브 클래스 문법으로 업데이트하는 것만으로 충분한 것이 아닌가요?

> [@modifyClass를 사용하여 핵심 동작 변경](https://meta.discourse.org/t/using-modifyclass-to-change-core-behavior/262064?u=don):
>
> 고급 테마와 플러그인의 경우, Discourse는 modifyClass 시스템을 제공합니다. 이를 통해 코어 JavaScript 클래스의 많은 기능을 확장하고 오버라이드할 수 있습니다. modifyClass를 사용할 때 modifyClass는 Discourse의 보다 안정적인 커스터마이징 API(예: plugin-api 메서드, plugin outlets, transformers)를 통해 커스터마이징을 할 수 없는 경우를 제외하고는 최후의 수단으로 사용해야 합니다. 코어의 코드는 언제든지 변경될 수 있습니다. 따라서 modifyClass를 통해 만든 커스터마이징도 언제든지 깨질 수 있습니다. 이 API를 사용할 때는 프로덕션 사이트에 문제가 도달하기 전에 이를 포착할 수 있는 제어가 이루어지도록 해야 합니다. 예를 들어, 테마/플러그인에 자동화된 테스트를 추가하거나, 스테이징 사이트를 사용하여 Discourse 업데이트를 테마/플러그인에 대해 테스트할 수 있습니다. 기본 사용법 …

---

_[View the full topic](https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415)._
