Histórico da Página
Index
Índice | ||||||
---|---|---|---|---|---|---|
|
Speaking of configuring Ranking widgets ...
The settings for the Ranking widget allow it to be customized according to information display preferences.
That widget displays the engagement ranking of the users on the platform according to the configured group.
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 Ranking widget
...
01. On the edit screen of the Ranking 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 Ranking group |
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. |
...