Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to add dynamic title to <oj-dialog/> ?

lucborsJan 16 2018 — edited Jan 16 2018

Hi,

I'm using JET (v4.1.0) and was trying to make a dynamic title for an oj-dialog .

I created an observable whose value is dynamically set based on the user action and the change should be reflected in the header when the dialog is opened.

This however is not working. Does <oj-dialog/> support this?

<!-- this is for the dialog that pops up for editing and creating -->

<div id="dialogWrapper">

\<oj-dialog style="display:none" id="dataDialog" title='\[\[dialogTitle\]\]'>

    \<div class="oj-form-layout">

....

....

And the observable is like this:

self.dialogTitle = ko.observable('initial title');

The dialog title displays like this:

pastedImage_5.png

Am I missing something?

Thanks

This post has been answered by Duncan Mills-Oracle on Jan 16 2018
Jump to Answer
Comments
Post Details
Added on Jan 16 2018
2 comments
645 views