if($render[0]=="hideNoselectionOption"){
$resposta="
<div id="hideNoselectionOption" class="ui-selectonemenu ui-widget ui-state-default ui-corner-all " aria-owns="hideNoselectionOption_panel" role="combobox" aria-haspopup="listbox" aria-expanded="false">
<div class="ui-helper-hidden-accessible"><input id="hideNoselectionOption_focus" name="hideNoselectionOption_focus" type="text" autocomplete="off" aria-labelledby="label:selecao" /></div>
<div class="ui-helper-hidden-accessible"><select id="hideNoselectionOption_input" name="hideNoselectionOption_input" tabindex="-1" autocomplete="off" aria-hidden="true" aria-label="Hide NoSelection Option" onchange="DinarteCoelho.ab({s:"hideNoselectionOption",e:"valueChange",f:"formulario",p:"hideNoselectionOption",u:"hideNoselectionOption"});" data-p-label="Ocultar opção sem Seleção" data-p-hl="onemenu">
<option value="Option1" selected="selected" data-escape="true">Opção 1</option>
<option value="Option2" data-escape="true">Opção 2</option>
<option value="Option3" data-escape="true">Opção 3</option>
</select></div><label id="hideNoselectionOption_label" class="ui-selectonemenu-label ui-inputfield ui-corner-all">Ocultar opção sem Seleção </label>
<div class="ui-selectonemenu-trigger ui-state-default ui-corner-right"><span class="ui-icon ui-icon-triangle-1-s ui-c"></span></div>
<div id="hideNoselectionOption_panel" class="ui-selectonemenu-panel ui-widget ui-widget-content ui-corner-all ui-helper-hidden ui-shadow ui-input-overlay">
<div class="ui-selectonemenu-items-wrapper" style="max-height:200px"></div>
</div>
</div>
<script id="hideNoselectionOption_s" type="text/javascript">
DinarteCoelho.cw("SelectOneMenu", "widget_hideNoselectionOption", {
id: "hideNoselectionOption"
, appendTo: "@(body)"
, label: "Hide NoSelection Option"
, renderPanelContentOnClient: true
, behaviors: {
valueChange: function (ext, event) {
DinarteCoelho.ab({
s: "hideNoselectionOption"
, e: "valueChange"
, f: "formulario"
, p: "hideNoselectionOption"
, u: "hideNoselectionOption"
}, ext);
}
}
});
</script>
";
}
if($render[0]=="icon"){
$resposta="<span id="icon" class="ui-inputgroup-addon"><i class="pi pi-".$_POST["icone_input"].""></i></span>";
}
if($render[0]=="lazy"){
sleep(1);
$resposta="
<select id="lazy_input" name="lazy_input" tabindex="-1" autocomplete="off" aria-hidden="true" aria-label="Lazy" data-p-label="Lazy" data-p-hl="onemenu">
<option value="" selected="selected" data-escape="true">Selecione Um</option>
<option value="Opção 0" data-escape="true">Opção 0</option>
<option value="Opção 1" data-escape="true">Opção 1</option>
<option value="Opção 2" data-escape="true">Opção 2</option>
<option value="Opção 3" data-escape="true">Opção 3</option>
<option value="Opção 4" data-escape="true">Opção 4</option>
<option value="Opção 5" data-escape="true">Opção 5</option>
<option value="Opção 6" data-escape="true">Opção 6</option>
<option value="Opção 7" data-escape="true">Opção 7</option>
<option value="Opção 8" data-escape="true">Opção 8</option>
<option value="Opção 9" data-escape="true">Opção 9</option>
<option value="Opção 10" data-escape="true">Opção 10</option>
<option value="Opção 11" data-escape="true">Opção 11</option>
<option value="Opção 12" data-escape="true">Opção 12</option>
<option value="Opção 13" data-escape="true">Opção 13</option>
<option value="Opção 14" data-escape="true">Opção 14</option>
<option value="Opção 15" data-escape="true">Opção 15</option>
<option value="Opção 16" data-escape="true">Opção 16</option>
<option value="Opção 17" data-escape="true">Opção 17</option>
<option value="Opção 18" data-escape="true">Opção 18</option>
<option value="Opção 19" data-escape="true">Opção 19</option>
</select>
";
}
dc.cw("SelectOneMenu", "widget_option", {
id: "option"
, appendTo: "@(body)"
, label: "Basic"
, renderPanelContentOnClient: true
});
dc.cw("SelectOneMenu", "widget_group", {
id: "group"
, appendTo: "@(body)"
, label: "Grouping"
, renderPanelContentOnClient: true
});
dc.cw("SelectOneMenu", "widget_city", {
id: "city"
, editable: true
, appendTo: "@(body)"
, label: "Editable"
, renderPanelContentOnClient: true
});
dc.cw("SelectOneMenu", "widget_labeled", {
id: "labeled"
, appendTo: "@(body)"
, alwaysDisplayLabel: true
, label: "Sempre Mostrar o Rótulo"
, renderPanelContentOnClient: true
});
dc.cw("SelectOneMenu", "widget_advanced", {
id: "advanced"
, appendTo: "@(body)"
, label: "Advanced"
, filter: true
, filterMatchMode: "startsWith"
});
dc.cw("SelectOneMenu", "widget_lazy", {
id: "lazy"
, appendTo: "@(body)"
, label: "Lazy"
, dynamic: true
, renderPanelContentOnClient: true
});
dc.cw("SelectOneMenu", "widget_hideNoselectionOption", {
id: "hideNoselectionOption"
, appendTo: "@(body)"
, label: "Hide NoSelection Option"
, renderPanelContentOnClient: true
, behaviors: {
valueChange: function (ext, event) {
dc.ab({
s: "hideNoselectionOption"
, e: "valueChange"
, f: "formulario"
, p: "hideNoselectionOption"
, u: "hideNoselectionOption"
}, ext);
}
}
});
dc.cw("SelectOneMenu", "widget_longItemLabel", {
id: "longItemLabel"
, appendTo: "@(body)"
, label: "Long Item Label"
, renderPanelContentOnClient: true
});
dc.cw("SelectOneMenu", "widget_trl", {
id: "trl"
, appendTo: "@(body)"
, label: "RTL"
, renderPanelContentOnClient: true
});
dc.cw("SelectOneMenu", "widget_icone", {
id: "icone"
, appendTo: "@(body)"
, behaviors: {
valueChange: function (ext, event) {
dc.ab({
s: "icone"
, e: "valueChange"
, f: "formulario"
, p: "icone"
, u: "icon"
}, ext);
}
}
});