Haltura lets you make the most of its full potential, with methods for manipulating your interface.
The Haltura.render() method will allow you to regenerate new Haltura elements that have not yet been loaded. This method will be useful when you dynamically create new Haltura components.
<button type="button" class="h_btn small" onclick="createButton()">Add new button</button>
<div class="wrapper-example-btn"></div>
<script>
function createButton () {
var new_btn = document.createElement("button");
new_btn.className = "h_btn primary";
new_btn.innerText = "Hello!";
document.querySelector(".wrapper-example-btn").appendChild(new_btn);
Haltura.render();
}
</script>
<button type="button" class="h_btn small" onclick="createButton()">Add new button</button>
<div class="wrapper-example-btn"></div>
<script>
function createButton () {
var new_btn = document.createElement("button");
new_btn.className = "h_btn primary";
new_btn.innerText = "Hello!";
document.querySelector(".wrapper-example-btn").appendChild(new_btn);
Haltura.render();
}
</script>
Class | Definition |
---|---|
Haltura.render() | Forces Haltura to load rendering of new components. |
Haltura wants to provide you with an efficient experience by implementing cookies! Cookies are small files that help us to understand you better and to ensure the proper functioning of our technologies. You have the right to manage them as you wish!
Cookie settings