當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Div::setToolTip方法代碼示例

本文整理匯總了PHP中Div::setToolTip方法的典型用法代碼示例。如果您正苦於以下問題:PHP Div::setToolTip方法的具體用法?PHP Div::setToolTip怎麽用?PHP Div::setToolTip使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Div的用法示例。


在下文中一共展示了Div::setToolTip方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getTypeChooseDialog

 private function getTypeChooseDialog()
 {
     $sensorWertOption = new Div("createSensorWert", 250, 40);
     $sensorWertOption->setToolTip("Sensoren die einen Messwert liefern<br><br>z.b. <br>- Helligkeitssensor<br>- Temperatursensor<br>- Abstandssensor");
     $sensorStatusOption = new Div("createSensorStatus", 250, 40);
     $sensorStatusOption->setToolTip("Sensoren die nur 1 oder 0 als Wert liefern<br><br>z.b. <br>- Bewegungsmelder<br>- Regensensor<br>- Lichtschranke");
     $zeitOption = new Div("createZeit", 250, 40);
     $wochentagOption = new Div("createWochentag", 250, 40);
     $sensorWertOption->setStyle("line-height", "40px");
     $sensorStatusOption->setStyle("line-height", "40px");
     $zeitOption->setStyle("line-height", "40px");
     $wochentagOption->setStyle("line-height", "40px");
     $sensorWertOption->setAlign("center");
     $sensorWertOption->setVAlign("middle");
     $sensorStatusOption->setAlign("center");
     $sensorStatusOption->setVAlign("middle");
     $zeitOption->setAlign("center");
     $zeitOption->setVAlign("middle");
     $wochentagOption->setAlign("center");
     $wochentagOption->setVAlign("middle");
     $sensorWertOption->add(new Text("Sensor Wert", 4, true));
     $sensorStatusOption->add(new Text("Sensor Status", 4, true));
     $zeitOption->add(new Text("Uhrzeit", 4, true));
     $wochentagOption->add(new Text("Wochentag", 4, true));
     $sensorWertOption->setBackgroundColor($_SESSION['config']->COLORS['button_background']);
     $sensorStatusOption->setBackgroundColor($_SESSION['config']->COLORS['button_background']);
     $zeitOption->setBackgroundColor($_SESSION['config']->COLORS['button_background']);
     $wochentagOption->setBackgroundColor($_SESSION['config']->COLORS['button_background']);
     $sensorWertLink = new Link("?createSensorWert=ok" . ($this->URL_PARAMS != "" ? "&" . $this->URL_PARAMS : "") . "#createSensorWert", $sensorWertOption, false, "", "", true, false);
     $sensorStatusLink = new Link("?createSensorStatus=ok" . ($this->URL_PARAMS != "" ? "&" . $this->URL_PARAMS : "") . "#createSensorStatus", $sensorStatusOption, false, "", "", true, false);
     $zeitLink = new Link("?createZeit=ok" . ($this->URL_PARAMS != "" ? "&" . $this->URL_PARAMS : "") . "#createZeit", $zeitOption, false, "", "", true, false);
     $wochentagLink = new Link("?createWochentag=ok" . ($this->URL_PARAMS != "" ? "&" . $this->URL_PARAMS : "") . "#createWochentag", $wochentagOption, false, "", "", true, false);
     $t = new Table(array("", "", ""));
     $t->setColSizes(array(null, 5, null));
     $t->setAlignments(array("center", "center", "center"));
     $r = $t->createRow();
     $r->setSpawnAll(true);
     $r->setAttribute(0, new Title("Art der neuen Bedingung auswaehlen", true, 4));
     $t->addRow($r);
     $t->addSpacer(0, 5);
     $r1 = $t->createRow();
     $r1->setAttribute(0, $sensorStatusLink);
     $r1->setAttribute(1, "");
     $r1->setAttribute(2, $sensorWertLink);
     $t->addRow($r1);
     $t->addSpacer(0, 5);
     $r2 = $t->createRow();
     $r2->setAttribute(0, $zeitLink);
     $r2->setAttribute(1, "");
     $r2->setAttribute(2, $wochentagLink);
     $t->addRow($r2);
     return $t;
 }
開發者ID:CyborgOne,項目名稱:cybihomecontrol_ui,代碼行數:53,代碼來源:HomeControlTermCreator.php


注:本文中的Div::setToolTip方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。