jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

JLayout

Hide navigator Hide source code

Grid layout


<?php YsJQuery::usePlugin(YsJQueryConstant::PLUGIN_JLAYOUT); ?>

<?php echo YsJLayout::initGridLayout(array(YsJLayout::HGAP => 3,
                                           YsJLayout::VGAP => 3,
                                           YsJLayout::COLS => 2,
                                           YsJLayout::ROWS => 2)) ?>

    <?php echo YsUIPanel::initWidget('panelOne', 'style="width:100px;height:100px;"') ?>
      One
    <?php echo YsUIPanel::endWidget() ?>
    <?php echo YsUIPanel::initWidget('panelTwo', 'style="width:100px;height:100px;"') ?>
      Two
    <?php echo YsUIPanel::endWidget() ?>
    <?php echo YsUIPanel::initWidget('panelThree', 'style="width:100px;height:100px;"') ?>
      Three
    <?php echo YsUIPanel::endWidget() ?>
    <?php echo YsUIPanel::initWidget('panelFour', 'style="width:100px;height:100px;"') ?>
      Four
    <?php echo YsUIPanel::endWidget() ?>
    
<?php echo YsJLayout::endGridLayout() ?>
<?php
echo
YsJQuery::newInstance()
  ->execute(
    YsJLayout::build('.grid')
  )
?>

One
Two
Three
Four

About

Demos

jQueryUI

Plugins Support - New!

Components - New!

Project Developed by The YepSua Team
SourceForge.net