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.
1 parent 3367262 commit bff4f72Copy full SHA for bff4f72
src/Html/Button.php
@@ -113,6 +113,23 @@ public function className($value)
113
return $this;
114
}
115
116
+ /**
117
+ * Append a class name to column.
118
+ *
119
+ * @param string $class
120
+ * @return $this
121
+ */
122
+ public function addClass($class)
123
+ {
124
+ if (! isset($this->attributes['className'])) {
125
+ $this->attributes['className'] = $class;
126
+ } else {
127
+ $this->attributes['className'] .= " $class";
128
+ }
129
+
130
+ return $this;
131
132
133
/**
134
* Set text option value.
135
*
0 commit comments