Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb61a5ef

Browse files
committed
Add formatted column factory.
To complimentyajra/laravel-datatables#2193
1 parent925fe1b commitb61a5ef

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎src/Html/Column.php‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,23 @@ public static function make($data, $name = '')
150150
returnnewstatic($attr);
151151
}
152152

153+
/**
154+
* Make a new formatted column instance.
155+
*
156+
* @param string $name
157+
* @return Column
158+
*/
159+
publicstaticfunctionformatted($name)
160+
{
161+
$attr = [
162+
'data' =>$name .'_formatted',
163+
'name' =>$name,
164+
'title' =>self::titleFormat($name),
165+
];
166+
167+
returnnewstatic($attr);
168+
}
169+
153170
/**
154171
* Create a checkbox column.
155172
*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp