Is it possible to submit text to the popup’s navbar from a component?
- component: oh-button
config:
action: popup
actionModal: widget:whatever
actionModalConfig:
label: text in header
Is it possible to submit text to the popup’s navbar from a component?
- component: oh-button
config:
action: popup
actionModal: widget:whatever
actionModalConfig:
label: text in header
I don’t think so, at the moment. The sheet and popup have a title that can be filled with a config label, but that context is separate from what is supplied by the actionModalConfig
property. It is used only internally for MainUI modals, as you have shown. I just don’t see anyway of accessing the component context directly via the actions configuration.
You can build a clone of the modal with a title yourself, of course, but that’s the only option I see as things stand right now
The addition of an actionModalTitle
parameter would certainly be an elegant solution to this problem.
It might be worth a feature request or PR.