PHP code example of nim4n / custom-actions-button

1. Go to this page and download the library: Download nim4n/custom-actions-button library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nim4n / custom-actions-button example snippets



  'extensions' => [

      'custom-actions-button' => [

          "enable" => true,

          "view" => [
              "label" => "Detail",
              "icon"  => "fa fa-eye",
              "class" => "btn btn-sm btn-info"
          ],

          "edit" => [
              "label" => "Edit",
              "icon"  => "fa fa-edit",
              "class" => "btn btn-sm btn-warning"
          ],

          "delete" => [
              "label" => "",
              "icon"  => "fa fa-trash",
              "class" => "btn btn-sm btn-danger"
          ]

      ]

  ],