Histórico da Página
Index
Índice | ||||||
---|---|---|---|---|---|---|
|
Speaking of configuring Widget level and experience ...
The settings of the Level and Experience widget allow it to be customized according to display preferences, such as a title and a color.
That widget displays the user engagement level and their experience so far according to their score and acquired skills.
Estado | ||||
---|---|---|---|---|
|
HTML |
---|
<a id="toggleAll" href="#" >Expand/hide additional information. </a>
<script type="text/javascript">
var abertos = 0;
var fechados = 0;
function contador() {
abertos = 0;
fechados = 0;
jQuery(".expand-control").each( function() {
if (document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded") {
fechados++;
} else {
abertos++;
}
});
}
AJS.toInit(function() {
contador();
var soma = abertos + fechados;
$("#toggleAll").html('Expand/hide ' + soma + ' additional information.');
AJS.$('#toggleAll').click(function() {
contador();
if (abertos >= fechados) {
jQuery(".expand-control").each(
function() {
if (document.getElementById(this.id).children[0].className == "expand-control-icon icon expanded") {
jQuery(this).trigger("click");
}
}
)
} else {
jQuery(".expand-control").each(
function() {
if (document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded") {
jQuery(this).trigger("click");
}
}
)
}
});
});
</script> |
Basic Path
...
Nota |
---|
To use this widget, acquire the Gamification component from TOTVS Store. |
Configure level and experience widget
...
01. On the edit screen of the level and experience widget, define the desired settings for it.
Expandirpanel | ||
---|---|---|
| ||
To access the widget edit mode, you need to edit the page on which it is located or will be added. Title Style |
02. Click Save.
Expandir | title | Learn more
---|
Painel |
For the changes in the widget settings to be displayed to users, it is necessary to post the page on which it is located. More information about posting pages can be found at Add page and Edit page. |
Informações | ||
---|---|---|
| ||
This documentation is valid from the 1.5.10 update. If you use a previous update, it may contain information different from what you see on your platform. |
...