jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

Expander

Hide navigator Hide source code

External Content




<button id="btnOpenDialog">Show Demo</button>

<?php echo YsUIDialog::initWidget('dialogId','style="display:none" title="Basic dialog"') ?>
  <?php echo YsUIExpander::initWidget('expander'); ?>
    <?php echo YsUIExpander::title('Title'); ?>
      <?php echo YsUIExpander::initContent('contentId','style="height:400px"'); ?>
        Vestibulum ut eros non enim commodo hendrerit. Donec porttitor tellus non magna.
        Nam ligula elit, pretium et, rutrum non, hendrerit id, ante. Nunc mauris sapien,
        cursus in.
      <?php echo YsUIExpander::endContent(); ?>
  <?php echo YsUIExpander::endWidget(); ?>
<?php echo YsUIDialog::endWidget() ?>


<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnOpenDialog')
  ->execute(
    YsUIDialog::build('#dialogId')
      ->_modal(true)
      ->_minWidth(600)
      ->_minHeight(500)
      ->_showAllCaptionButtons()
      ->_buttons(array(
          'Ok' => new YsJsFunction('alert("Hello world")'),
          'Close' =>  new YsJsFunction(YsUIDialog::close('this')))
       )
  );

echo
YsUIExpander::build('#expander')
  ->_expanded(false)
  ->_contentUrl('http://www.jquery.com/')
  ->execute()
?>

Comments

  • Support requests, bug reports, and off-topic comments will be deleted without warning.

blog comments powered by Disqus

About

Demos

jQueryUI

Plugins Support - New!

Components - New!

Project Developed by The YepSua Team
SourceForge.net