action button class
This commit is contained in:
1 parent
772ad48961
commit
0f47f73dda
10 files changed
+67
-29
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<?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