Hi,
I’m using the PHP options “Page section at the top” and “Page section at the bottom”.
I would like to change the gridEdit and gridAdd icons at the top AND bottom of the table listings.Using the following code, I was able to change only the BOTTOM icons. (ListOptions_Rendered event)
public function ListOptions_Rendered() {
if (isset($this->OtherOptions["addedit"]->Items["gridadd"])) {
$this->OtherOptions["addedit"]->Items["gridadd"]->Body = '<a class="ew-add-edit ew-grid-add btn btn-success" title="Adicionar Vários Registros" data-caption="Adicionar Vários Registros" href="' . $this->GridAddUrl . '"><i class="fas fa-plus-circle"></i> Grid Add</a>';
}
if (isset($this->OtherOptions["addedit"]->Items["gridedit"])) {
$this->OtherOptions["addedit"]->Items["gridedit"]->Body = '<a class="ew-add-edit ew-grid-edit btn btn-warning" title="Editar Vários Registros" data-caption="Editar Vários Registros" href="' . $this->GridEditUrl . '"><i class="fas fa-edit"></i> Grid Edit</a>';
}
}
I tried using the following code to update the TOP icons, but was unsuccessful. (ListOptions_Load event)
public function ListOptions_Load() {
if (isset($this->OtherOptions["addedit"]->Items["gridadd"])) {
$this->OtherOptions["addedit"]->Items["gridadd"]->Body = '<a class="ew-add-edit ew-grid-add btn btn-success" title="Adicionar Vários Registros" data-caption="Adicionar Vários Registros" href="' . $this->GridAddUrl . '"><i class="fas fa-plus-circle"></i> Grid Add</a>';
}
if (isset($this->OtherOptions["addedit"]->Items["gridedit"])) {
$this->OtherOptions["addedit"]->Items["gridedit"]->Body = '<a class="ew-add-edit ew-grid-edit btn btn-warning" title="Editar Vários Registros" data-caption="Editar Vários Registros" href="' . $this->GridEditUrl . '"><i class="fas fa-edit"></i> Grid Edit</a>';
}
}
What can I do to change the TOP icons?Thank you in advance.