Цю сторінку ще не перекладено українською, тому нижче англійська версія.

table/auto
< >

return function () {
    $self = url('/@object/@action/' . urlencode('table/auto'));
    // the row buttons link back here: the demo only reports the click, nothing is edited
    $act = preg_replace('~[^a-z]~', '', (string) ($_GET['act'] ?? ''));
    $notice = $act ? '<div class="alert alert-info">Button <b>' . $act . '</b>' . (isset($_GET['row']) ? ' of row <b>' . (int) $_GET['row'] . '</b>' : '') . ' was clicked (the demo only shows it).</div>' : '';
    $data = json_decode(file_get_contents(__DIR__ . '/products.json'), true);
    return $notice . table($data)
        ->auto(['auto_no_buttons' => 1])
        ->btn_edit(['link' => $self . '?act=edit&row=%d', 'no_ajax' => 1])
        ->btn_delete(['link' => $self . '?act=delete&row=%d', 'no_ajax' => 1])
        ->footer_add(['link' => $self . '?act=add', 'no_ajax' => 1]);
};
Button edit of row 10053 was clicked (the demo only shows it).
Active Add date Articul Cat id Валюта Description External url Featured Features Id Image Last viewed date Manufacturer id Meta desc Meta keywords Model Назва Old price Ціна Price partner Price promo Price raw Quantity Sku Продано Стан Stock status id Supplier id Update date Url Переглядів Actions
1 1380273998 10051 10077 0

A casual everyday T-shirt.

0 10051 1 1381136755 0 Archives T-shirt, black 45.69 37.00 0.00 0.00 0.00 0 270 0 0 0 1380915940 archives_tee_black 7293 Редагувати Delete
1 1380550100 10052 10077 0

A casual everyday T-shirt.

0 10052 1 1381063010 0 Archives T-shirt, navy 47.67 37.00 0.00 0.00 0.00 0 719 0 0 0 1380750489 archives_tee_navy 5074 Редагувати Delete
1 1380700674 10053 10077 0

A casual everyday T-shirt.

0 10053 1 1381112909 0 Archives T-shirt, purple 47.65 37.00 0.00 0.00 0.00 0 993 0 0 0 1380658853 archives_tee_purple 218 Редагувати Delete
1 1380458053 10056 10077 0

A casual everyday T-shirt.

0 10056 1 1380891988 0 Attacker T-shirt, white 44.84 37.00 0.00 0.00 0.00 0 412 0 0 0 1380913232 attacker_tee_white 5533 Редагувати Delete
1 1380614474 10058 10077 0

A casual everyday T-shirt.

0 10058 1 1380913772 0 Blamo T-shirt, black 50.34 37.00 0.00 0.00 0.00 0 208 0 0 0 1380555531 blamo_tee_black 1796 Редагувати Delete
1 1380753497 10059 10077 0

A casual everyday T-shirt.

0 10059 1 1380953269 0 Blamo T-shirt, white 47.55 37.00 0.00 0.00 0.00 0 518 0 0 0 1380714678 blamo_tee_white 9193 Редагувати Delete
1 1380246724 10060 10077 0

A casual everyday T-shirt.

0 10060 1 1380997096 0 Blamo T-shirt, black and green 51.59 37.00 0.00 0.00 0.00 0 861 0 0 0 1380857698 blamo_tee_black_green 929 Редагувати Delete
1 1380375356 10061 10077 0

A casual everyday T-shirt.

0 10061 1 1381093260 0 Paint Bucket T-shirt, green 52.38 37.00 0.00 0.00 0.00 0 1009 0 0 0 1380772081 paint_bucket_tee_green 3390 Редагувати Delete
1 1380572334 10062 10077 0

A casual everyday T-shirt.

0 10062 1 1381130045 0 Paint Bucket T-shirt, white 53.50 37.00 0.00 0.00 0.00 0 559 0 0 0 1380868762 paint_bucket_tee_white 2041 Редагувати Delete
1 1380397953 10063 10077 0

A casual everyday T-shirt.

0 10063 1 1380916965 0 Paint Bucket T-shirt, purple 47.45 37.00 0.00 0.00 0.00 0 521 0 0 0 1380550201 paint_bucket_tee_purple 4388 Редагувати Delete
1 1380278734 10066 10077 0

A casual everyday T-shirt.

0 10066 1 1381013476 0 Flash T-shirt, white 45.73 35.00 0.00 0.00 0.00 0 90 0 0 0 1380876877 flash_tee_white 194 Редагувати Delete
1 1380419886 10067 10077 0

A casual everyday T-shirt from the premium line.

0 10067 1 1381029428 0 Mix Tape T-shirt, black 60.95 45.00 0.00 0.00 0.00 0 826 0 0 0 1380856288 mix_tape_tee_black 6146 Редагувати Delete
1 1380718569 10245 10077 0

A casual everyday cotton T-shirt.

0 10245 1 1381038049 0 Winner T-shirt, grey 0.00 35.00 0.00 0.00 0.00 0 787 0 0 0 1380900769 winner_tee_grey 4925 Редагувати Delete
1 1380635320 10247 10077 0

A casual everyday cotton T-shirt.

0 10247 1 1381028135 0 Hill T-shirt, white 0.00 35.00 0.00 0.00 0.00 0 518 0 0 0 1380861786 hill_tee_white 3585 Редагувати Delete
1 0 10865 10077 0

A T-shirt made in the USA, 100% cotton.

0 10865 1 0 0 Roseheart T-shirt, black 0.00 35.00 0.00 0.00 0.00 0 0 0 0 0 0 roseheart_tee_black 0 Редагувати Delete
1 0 10866 10077 0

A T-shirt made in the USA, 100% cotton.

0 10866 1 0 0 Liberty T-shirt, black 0.00 35.00 0.00 0.00 0.00 0 0 0 0 0 0 liberty_tee_black 0 Редагувати Delete
1 0 10868 10077 0

A T-shirt made in the USA, 100% cotton.

0 10868 1 0 0 Pray Skull T-shirt, black 0.00 35.00 0.00 0.00 0.00 0 0 0 0 0 0 pray_skull_tee_black 0 Редагувати Delete
1 0 10869 10077 0

A T-shirt made in the USA, 100% cotton.

0 10869 1 0 0 Blood Head T-shirt, black 0.00 40.00 0.00 0.00 0.00 0 0 0 0 0 0 blood_head_tee_black 0 Редагувати Delete
1 0 10872 10077 0

A T-shirt made in the USA, 100% cotton.

0 10872 1 0 0 Outlaw T-shirt, black 0.00 40.00 0.00 0.00 0.00 0 0 0 0 0 0 outlaw_tee_black 0 Редагувати Delete
1 0 10874 10077 0

A T-shirt made in the USA, 100% cotton.

0 10874 1 0 0 Random T-shirt, black 0.00 40.00 0.00 0.00 0.00 0 0 0 0 0 0 random_tee_black 0 Редагувати Delete