# Get PanelSettings for current panel

**URL:** <https://forum.litium.com/t/get-panelsettings-for-current-panel/1712>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [October 20, 2020, 6:55am UTC](https://forum.litium.com/t/get-panelsettings-for-current-panel/1712 "2020-10-20T06:55:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonaskihlstrom](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/jonaskihlstrom/32/130_2.png) [@jonaskihlstrom](https://forum.litium.com/u/jonaskihlstrom)\
**Post date:** [October 20, 2020, 6:55am UTC](https://forum.litium.com/t/get-panelsettings-for-current-panel/1712/1 "2020-10-20T06:55:35Z")

</div>

Hi,

I would like to reuse the same controller and view for many custom panels. How can I get the settings model from the panel when I don’t use Angular?

Litium version: _[7.4]_

---

<div class="post-metadata">

**Author:** ![ton.nguyen](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/ton.nguyen/32/989_2.png) [@ton.nguyen](https://forum.litium.com/u/ton.nguyen)\
**Post date:** [October 20, 2020, 9:58am UTC](https://forum.litium.com/t/get-panelsettings-for-current-panel/1712/2 "2020-10-20T09:58:27Z")

</div>

To clarify, have you implemented an IPanelDefinition? Either by implementing IPanelDefinition or extending PanelDefinitionBase.

Their `GetSettingAsync` method returns the settings object for the panel. If you have created it, you can inject that panel definition to your class and invoke `GetSettingsAsync`.

---

<div class="post-metadata">

**Author:** ![jonaskihlstrom](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/jonaskihlstrom/32/130_2.png) [@jonaskihlstrom](https://forum.litium.com/u/jonaskihlstrom)\
**Post date:** [October 20, 2020, 10:53am UTC](https://forum.litium.com/t/get-panelsettings-for-current-panel/1712/3 "2020-10-20T10:53:15Z")

</div>

I have extended PanelDefinitionBase and when I injected IPanelDefinition it worked perfect!

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [November 17, 2020, 10:53am UTC](https://forum.litium.com/t/get-panelsettings-for-current-panel/1712/4 "2020-11-17T10:53:28Z")

</div>

Closed on November 17, 2020, 10:53am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
