É usado para selecionar um valor booleano usando um botão.
$render = '';
$resposta = '';
dc.cw("Growl", "widget_alerta", {
id: "alerta"
, sticky: false
, life: 6000
, escape: true
, keepAlive: false
, msgs: []
});
dc.cw("SelectBooleanButton", "widget_basico", {
id: "basico"
, onLabel: "Sim"
, offLabel: "Não"
});
dc.cw("SelectBooleanButton", "widget_icone", {
id: "icone"
, onLabel: "Sim"
, offLabel: "Não"
, onIcon: "pi pi\-check"
, offIcon: "pi pi\-times"
});
dc.cw("SelectBooleanButton", "widget_apenasIcone", {
id: "apenasIcone"
//, onLabel: ""
//, offLabel: ""
, onIcon: "pi pi\-check"
, offIcon: "pi pi\-times"
});