本文整理汇总了PHP中Canvas::onTap方法的典型用法代码示例。如果您正苦于以下问题:PHP Canvas::onTap方法的具体用法?PHP Canvas::onTap怎么用?PHP Canvas::onTap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Canvas
的用法示例。
在下文中一共展示了Canvas::onTap方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load_grid
$statusLabel->setClass("inputcommon");
$statusLabel->onTap(changeStatus());
/*
$statusButton = new ButtonBar();
$statusButton -> setCaption("change");
//$statusButton -> setImage("img/ico_thumb.png");
$statusButton -> setClass("buttonform");
$statusButton -> onTap(changeViewType());
*/
$table_list = new Table();
$table_list->addControl($name, 1, 1, 1, 4, "Left", "Middle");
$table_list->addControl($statusLabel, 1, 2, 1, 1, "Right", "Middle");
//$table_list -> addControl($status,1,3,1,1,"Right","Middle");
//$table_list -> addControl($statusButton,1,4,1,1,"Right","Middle");
$table_grid->addPosition($table_list, "0%", "100%", "0", "50dip", "0%", "100%");
$table_grid->onTap(detail());
$table_grid->onLongTap(delete());
$list->addControl($table_grid);
$table->addControl($list);
$win->addControl($table);
$win->Render();
function load_grid()
{
//Make JSON request
$url = "http://52.34.247.215/frameWorkExamples/taskManager/crud/getTask.php";
$httpClient = new httpClient();
$result = $httpClient->Execute('GET', $url);
//Cast response data type
$struct = array(array("ID" => type::Numeric(6), "TASK" => type::Character(150), "STATUS" => type::Numeric(1)));
Data::FromJson($struct, $result);
//Add result to screen vars