PHP code example of pteal79 / plugin-image-lightbox
1. Go to this page and download the library: Download pteal79/plugin-image-lightbox library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Native\Mobile\Attributes\OnNative;
use Pteal79\ImageLightbox\Events\ClosePressed;
#[OnNative(ClosePressed::class)]
public function handleClose(?string $imageId = null): void
{
// lightbox has been dismissed
}
use Native\Mobile\Attributes\OnNative;
use Pteal79\ImageLightbox\Events\EditPressed;
#[OnNative(EditPressed::class)]
public function handleEdit(?string $imageId = null): void
{
// open your edit UI here
}
use Native\Mobile\Attributes\OnNative;
use Pteal79\ImageLightbox\Events\MarkupPressed;
#[OnNative(MarkupPressed::class)]
public function handleMarkup(?string $imageId = null): void
{
//
}
use Native\Mobile\Attributes\OnNative;
use Pteal79\ImageLightbox\Events\DeletePressed;
#[OnNative(DeletePressed::class)]
public function handleDelete(?string $imageId = null): void
{
// perform your delete logic here
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.