Image

class atk4\ui\Image

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

Basic Usage

Implements basic image:

$icon = Image::addTo($app, ['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/2.0.4/public/logo.png';
$icon = Image::addTo($app, [$img, 'disabled']);