Ejemplo n.º 1
0
/**
 * Enable a link_button or button
 * @param String $selector The jQuery Selector
 * @param String $funtion The function to bind. Needed to enable a link_button
 * @param boolean $isInternal
 */
function ui_enable_link_button($selector, $funtion = '', $isInternal = true)
{
    return ui_enable_button($selector, $funtion, $isInternal);
}
Ejemplo n.º 2
0
echo ui_link_button(array('value' => 'Enable Link button', 'id' => 'enableLnkBtnId'));
echo ui_link_button(array('value' => 'Disable Link button', 'id' => 'disablelnkBtnId'));
?>

<?php 
echo ui_link_button(array('value' => 'Enable button', 'id' => 'enableBtnId'));
echo ui_link_button(array('value' => 'Disable button', 'id' => 'disableBtnId'));
?>

<?php 
echo add_jquery_support('#enableLnkBtnId', 'click', like_function(ui_enable_button('#lnkBtnId', 'linkEnableAndDisableToggleFunction')));
echo add_jquery_support('#disablelnkBtnId', 'click', like_function(ui_disable_link_button('#lnkBtnId')));
?>

<?php 
echo add_jquery_support('#enableBtnId', 'click', like_function(ui_enable_button('#btnId')));
echo add_jquery_support('#disableBtnId', 'click', like_function(ui_disable_button('#btnId')));
?>



<br><br>
BUTTON PANE
<br>
<?php 
echo ui_button_pane_init($type = 'single', array('idBtn1' => array('value' => 'Hello', 'icon' => 'newwin'), 'idBtn2' => array('value' => 'World', 'icon' => 'newwin')));
?>
  <?php 
echo ui_button_pane_end();
?>
  <?php