We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 925fe1b + b61a5ef commit 5c1f62dCopy full SHA for 5c1f62d
src/Html/Column.php
@@ -150,6 +150,23 @@ public static function make($data, $name = '')
150
return new static($attr);
151
}
152
153
+ /**
154
+ * Make a new formatted column instance.
155
+ *
156
+ * @param string $name
157
+ * @return Column
158
+ */
159
+ public static function formatted($name)
160
+ {
161
+ $attr = [
162
+ 'data' => $name . '_formatted',
163
+ 'name' => $name,
164
+ 'title' => self::titleFormat($name),
165
+ ];
166
+
167
+ return new static($attr);
168
+ }
169
170
/**
171
* Create a checkbox column.
172
*
0 commit comments