label($label); $this->id(Str::slug(Str::transliterate($label, strict: true))); } public static function make(string $label): static { $static = app(static::class, ['label' => $label]); $static->configure(); return $static; } public function getId(): string { return $this->getContainer()->getParentComponent()->getId() . '-' . parent::getId() . '-tab'; } /** * @return array */ public function getColumnsConfig(): array { return $this->columns ?? $this->getContainer()->getColumnsConfig(); } }