Внешний вид

AppBuilderAPIIconItem

Пример кода

// Highlighted PHP Code
include('../api/api.php');

$apps = array(
	array('title' => 'title', 'icon' => 'http://fred-test-images-resized.s3.amazonaws.com/23362_Icon.png'),
	array('title' => 'title', 'icon' => 'http://fred-test-images-resized.s3.amazonaws.com/21454_Icon.jpeg'),
	array('title' => 'title', 'icon' => 'http://fred-test-images-resized.s3.amazonaws.com/23362_Icon.png'),
	array('title' => 'title', 'icon' => 'http://fred-test-images-resized.s3.amazonaws.com/21454_Icon.jpeg'),
);



$screen = new AppBuilderAPIIconScreen('IconScreen', 4);
foreach ($apps as $app) {
	$screen->addChild(new AppBuilderAPIIconItem($app['title'], $app['icon']));
}

echo AppBuilderAPI::getScreenResponse($screen);

Comments (0)

Leave a comment

You are commenting as guest.