ListOption button title

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
philmills
User
Posts: 555

ListOption button title

Post by philmills »

I want my custom listoption button to have the same style of hover title as copy/edit/delete buttons.
I inspected code of the other buttons and I got this far:

    public function listOptionsLoad()
    {
		$opt = &$this->ListOptions->Add("wizard");
		$opt->Header = Language()->phrase('SchoolLessonsDist_15');
		$opt->OnLeft = true; 
		$opt->MoveTo(7); 
    }

    public function listOptionsRendered()
    {

		$this->ListOptions["wizard"]->Body = "<a class='btn btn-default ew-row-link' data-caption='Generate records' href=\"[ ** myurl **]/PlanEdit/".$this->id->CurrentValue."?wizard=1\" data-bs-original-title='Generate records'><i data-phrase='".Language()->phrase('Generate_records')."' class='fa-solid fa-wand-magic-sparkles'></i></a>";
    }

the icon is displaying nicely and the link works, but I can't get the title to display like the others.

how?


arbei
User
Posts: 9384

Post by arbei »

You may compare your HTML attributes with the other buttons and find out what you have missed.


philmills
User
Posts: 555

Post by philmills »

ew-icon class was missing :)


Post Reply