Image

class atk4\ui\Image

Implements Image around https://fomantic-ui.com/elements/image.html.

Basic Usage

Implements basic image:

$icon = $app->add(new \atk4\ui\Image('image.gif'));

You need to make sure that argumen specified to Image is a valid URL to an image.

Specify classes

You can pass additional classes to an image:

$img = 'https://raw.githubusercontent.com/atk4/ui/07208a0af84109f0d6e3553e242720d8aeedb784/public/logo.png';
$icon = $app->add(['Image', $img, 'disabled']);