You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using the progress-circle multiple times in a page.
Do do so I set the value in data tag as <div class="nota-analise big circulo" data-score="9">
When I call my javascript it is called looking for that value. It don't work when their's no score set.
my javascript.
var notas = cj('.nota-analise').all(); notas.forEach(function(nota){ var score = cj(nota).attr('data-score'); new CircleProgress(nota, { max: 1, max: 10, value: score, textFormat: 'value', indeterminateText: '--' }); });
doesn't matter what I set in value (null, undefined), it never set as indeterminated.
Can you help me?
The text was updated successfully, but these errors were encountered:
Hello,
Circle Progress replicates the behavior of the native progress element. The progress element cannot be reverted to indeterminate state by means of setting a property, but only by removing the "value" attribute.
In Circle Progress there are of course no attributes as it is not an HTML element. Thus for now there is no way to set the state to indeterminate once a value has been assigned.
I think the feature you are requesting is needed. However, in your use case, if I understand it correctly, you are only setting the value once at the initiation. So, you can simply skip the value property, like so:
Hi,
I'm using the progress-circle multiple times in a page.
Do do so I set the value in data tag as
<div class="nota-analise big circulo" data-score="9">
When I call my javascript it is called looking for that value. It don't work when their's no score set.
my javascript.
var notas = cj('.nota-analise').all();
notas.forEach(function(nota){ var score = cj(nota).attr('data-score'); new CircleProgress(nota, { max: 1, max: 10, value: score, textFormat: 'value', indeterminateText: '--' }); });
doesn't matter what I set in value (null, undefined), it never set as indeterminated.
Can you help me?
The text was updated successfully, but these errors were encountered: