Hello,
When I customize my module, I need to override "SettingsBlock" properties (props). More details, the original code is:
===
SettingsBlock.props = {
title: { type: String, optional: 1 },
tip: { type: String, optional: 1 },
slots: Object,
class: { type: String, optional: 1 },
};
===
in (web/static/src/webclient/settings_form_view/settings/settings_block.js).
I just want to modify "slots" value (just it). There 2 potential solutions (I think):
1. Create new js in my module and then override entirely SettingsBlock.props, looks like that:
===
SettingsBlock.props = {
...SettingsBlock.props,
slots: { type: Object, optional: 1 },
}
===
2. Use "patch" to avoid all impacts to code base (recommended). However, I don't know how to use.
Please help. Many thanks.