The freshness dialog web component <cq-freshness-dialog>
enables users to set the amount
of time within which data point updates are considered recent, or fresh. For example, if the
freshness is set to 10 minutes, data points must have updated within the last 10 minutes to
be considered fresh.
- Since:
-
7.4.0
Example
<cq-dialog>
<cq-freshness-dialog>
<h4 class="title">Set Highlight Duration</h4>
<cq-close></cq-close>
<div style="text-align:center;margin-top:10px;">
<div>
<i>Enter number of minutes and hit "Enter"</i>
<p>
<input name="freshness" stxtap="Layout.setFreshnessEdit()">
</p>
</div>
<p>or</p>
<p>
<div class="ciq-btn" stxtap="Layout.setFreshnessEdit('auto')">Auto Select</div>
</p>
</div>
</cq-freshness-dialog>
</cq-dialog>
Methods
-
open()
-
Opens the nearest WebComponents.cq-dialog to display the freshness dialog.