RTO_DOM_style.js
Helper file documentation for
RTO_DOM_style.js.Docs updated: 2025-12-17
Summary
Apply inline styles to a selector inside a controlled tab.
- Exports:
RTOSetRemoteStyle - Depends on: RTO_form_api.js
- Uses data attributes:
data-rto-selector,data-rto-style,data-rto-tabkey
What it is
Apply inline styles to an element inside a controlled tab. It can bind buttons with a JSON style payload.
Download
Download RTO_DOM_style.jsExample
<button
data-rto-tabkey="app"
data-rto-selector="#submit"
data-rto-style='{"outline":"3px solid red"}'
>
Outline submit button
</button>
<script src="../RTO_helpers/RTO_form_api.js"></script>
<script src="../RTO_helpers/RTO_DOM_style.js"></script>
Data attributes
data-rto-tabkeydata-rto-selector(selector)data-rto-style(JSON)