É útil para inserir valores numéricos em um intervalo..
$render[0]='alerta';
$resposta='
<span id="alerta" class="ui-growl-pl" data-widget="widget_alerta" data-summary="data-summary" data-severity="all,error" data-redisplay="true"></span>
<script id="alerta_s" type="text/javascript">
DinarteCoelho.cw("Growl", "widget_alerta", {
id: "alerta"
, sticky: false
, life: 6000
, escape: true
, keepAlive: false
, msgs: [{
summary: "Você selecionou: '.$_POST['basico_hidden'].'"
, detail: ""
, severity: "info"
, severityText: "Information"
}]
});
</script>
';
dc.cw("Growl", "widget_alerta", {
id: "alerta"
, sticky: false
, life: 6000
, escape: true
, keepAlive: false
, msgs: []
});
dc.cw("Knob", "widget_basico", {
id: "basico"
, labelTemplate: "{value}"
, styleClass: "ui\-knob"
, behaviors: {
change: function (ext, event) {
dc.ab({
s: "alerta"
, e: "change"
, f: "formulario"
, p: "basico"
}, ext);
}
}
});
dc.cw("Knob", "widget_maxmin", {
id: "maxmin"
, labelTemplate: "{value}"
, styleClass: "ui\-knob"
});
dc.cw("Knob", "widget_ocultar", {
id: "ocultar"
, labelTemplate: "{value}"
, styleClass: "ui\-knob"
});
dc.cw("Knob", "widget_etiqueta", {
id: "etiqueta"
, labelTemplate: "{value}%"
, styleClass: "ui\-knob"
});
dc.cw("Knob", "widget_desabilitado", {
id: "desabilitado"
, labelTemplate: "{value}"
, styleClass: "ui\-knob"
});
dc.cw("Knob", "widget_cursor", {
id: "cursor"
, labelTemplate: "{value}"
, styleClass: "ui\-knob"
});
dc.cw("Knob", "widget_espessura", {
id: "espessura"
, labelTemplate: "{value}"
, styleClass: "ui\-knob"
});
dc.cw("Knob", "widget_tema", {
id: "tema"
, labelTemplate: "{value}"
, colorTheme: "hot\-sneaks"
, styleClass: "ui\-knob"
});
dc.cw("Knob", "widget_cores", {
id: "cores"
, labelTemplate: "{value}"
, styleClass: "ui\-knob"
, fgColor: "#2196F3"
, bgColor: "#495057"
});