Get PanelSettings for current panel

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]

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.

1 Like

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

Thank you

1 Like

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