WebSite-PHP Framework PHP
Multi langues
Mode Ajax simple
Aucun HTML, aucun JavaScript
URL rewrinting
Envoi d'email
Sitemap - RSS - Web service
Télécharger le Framework WebSite-PHP maintenant
 


Loading
 


Tutorial : 2 draggables Objects

Tutoriels

>

Tutoriel Object

>

Tutorial : 2 draggables Objects


Object-03: Tutoriel du composants Object du FrameWork PHP WebSite-PHP.

Tutorial : 2 draggables Objects:

draggable
draggable with revert


Retourner aux tutoriels du composants Object



Code source

Code source


Fichier: /pages/tutorials/object/object-03.php

<?php
class Object03 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : 2 draggables Objects";
        
        
$this->render = new WSPObject();
        
        
$green_square = new WSPObject("draggable");
        
$green_square->setId("my_object_green_3");
        
$green_square->setStyle("background-color:#5BFF4F;");
        
$green_square->setWidth(100);
        
$green_square->setHeight(100);
        
$green_square->setDraggable(true);
        
        
$red_square = new WSPObject("draggable with revert");
        
$red_square->setId("my_object_red_3");
        
$red_square->setStyle("background-color:#FF3300;");
        
$red_square->setWidth(100);
        
$red_square->setHeight(100);
        
$red_square->setDraggable(truetrue);
        
        
$this->render->add($green_square$red_square);
    }
}
?>


Retourner aux tutoriels du composants Object


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Accueil Documentation Télécharger Quick start Tutoriels Wiki Issue Tracker