action btns
This commit is contained in:
1 parent
7a90980772
commit
6c2798c123
5 files changed
+53
-51
No files matched your search
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\IGTabel\btn;
|
||||
|
||||
|
||||
class ActionButton
|
||||
{
|
||||
public static function create(array $data): string
|
||||
{
|
||||
$btn_type = $data['btn_type'];
|
||||
$url = $data['url'];
|
||||
$label = $data['label'];
|
||||
return "<a class='btn btn-$btn_type' href='$url' style='margin: 3px'>$label</a>";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user