# خطوات إنشاء إجراءات مخصصة صغيرة لاستخدامها في الإضافة؟

**URL:** <https://meta.discourse.org/t/steps-for-creating-custom-small-actions-to-use-in-plugin/144599>\
**Category:** Development\
**Created:** [17 مارس 2020، 3:17م UTC](https://meta.discourse.org/t/steps-for-creating-custom-small-actions-to-use-in-plugin/144599 "2020-03-17T15:17:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [17 مارس 2020، 3:35م UTC](https://meta.discourse.org/t/steps-for-creating-custom-small-actions-to-use-in-plugin/144599/2 "2020-03-17T15:35:27Z")

</div>

يُعد discourse-assign على الأرجح أفضل مثال على ذلك:

> <https://github.com/discourse/discourse-assign/blob/main/lib/topic_assigner.rb#L207-L217>

ثم بعض الأمور لإضافة الأيقونة / المحتوى

[https://github.com/discourse/discourse-assign/blob/master/assets/javascripts/discourse-assign/initializers/extend-for-assigns.js.es6#L158-L169](https://github.com/discourse/discourse-assign/blob/master/assets/javascripts/discourse-assign/initializers/extend-for-assigns.js.es6#L158-L169)

---

_[View the full topic](https://meta.discourse.org/t/steps-for-creating-custom-small-actions-to-use-in-plugin/144599)._
