AppBuilderAPIGalleryScreen
Базовое описание
Скрин галерея, Можна настроить количество колонок, картинки также могут быт линками на другие действия и скрины
Может содержать только AppBuilderAPIGalleryImageItem элементы
Основные свойства
линк
Основные методы
setGalleryBackground( mixed $iconbackground, mixed $type = null, mixed $attachment = 0, mixed $color = null, mixed $g = null, mixed $b = null ) - устанавливает картинку и цвет фона
setColumns( int $columns ) - устанавливает количество колонок в GalleryScreen и IconScreen
Пример кода
// Highlighted PHP Code include('../api/api.php'); $images = array( 'http://fred-test-images-resized.s3.amazonaws.com/23362_Icon.png', 'http://fred-test-images-resized.s3.amazonaws.com/21454_Icon.jpeg', 'http://fred-test-images-resized.s3.amazonaws.com/23362_Icon.png', 'http://fred-test-images-resized.s3.amazonaws.com/21454_Icon.jpeg', 'http://fred-test-images-resized.s3.amazonaws.com/23362_Icon.png', 'http://fred-test-images-resized.s3.amazonaws.com/23362_Icon.png' ); $screen = new AppBuilderAPIGalleryScreen('GalleryScreen', 4); foreach ($images as $image) { $screen->addChild(new AppBuilderAPIGalleryImageItem($image)); } echo AppBuilderAPI::getScreenResponse($screen);
Comments (0)