Skip to content

Commit eee61ed

Browse files
committed
Add button align property setter.
1 parent 6096de6 commit eee61ed

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Html/Button.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,17 @@ public function actionClose()
264264

265265
return $this;
266266
}
267+
268+
/**
269+
* Set button alignment.
270+
*
271+
* @param string $align
272+
* @return \Yajra\DataTables\Html\Button
273+
*/
274+
public function align($align = 'button-left')
275+
{
276+
$this->attributes['align'] = $align;
277+
278+
return $this;
279+
}
267280
}

0 commit comments

Comments
 (0)