File: D:/HostingSpaces/SBogers10/slenders.komma.pro/app/Komma/Components/ComponentType/Types/Heading.php
<?php
namespace App\Komma\Components\ComponentType\Types;
use App\Komma\Components\Component\ViewComponent;
use App\Komma\Components\ComponentType\ComponentTypes;
use App\Komma\Kms\Core\Attributes\Attribute;
use App\Komma\Kms\Core\Attributes\Documents;
use App\Komma\Kms\Core\Attributes\Models\ImageProperty;
use App\Komma\Kms\Core\Attributes\OnOff;
use App\Komma\Kms\Core\Attributes\TextArea;
use App\Komma\Kms\Core\Attributes\TextField;
class Heading extends AbstractComponentType
{
public function __construct()
{
//Set an id that corresponds to the ComponentTypes enum
$this->id = ComponentTypes::HEADING;
//Set icon and name
$this->name = 'heading';
parent::__construct();
$this->attributes->push((new TextField('Titel'))
->setPlaceholderText('Ex. Ons aanbod')
->mapValueFrom(Attribute::ValueFromComponent, 'title')
);
}
}