src/Panel/LoadableContent.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Atk4\Ui\Panel;

use Atk4\Ui\Callback;

interface LoadableContent
{
    /**
     * Add JsCallback.
     */
    public function setCb(Callback $cb): void;

    /**
     * Return JS callback URL string.
     */
    public function getCallbackUrl(): string;

    /**
     * The callback for loading content.
     *
     * @param \Closure($this): void $fx
     */
    public function onLoad(\Closure $fx): void;
}