Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 477 Bytes

button.md

File metadata and controls

27 lines (20 loc) · 477 Bytes

Button

按钮,Filter、Grid 和 From 都支持在左上、左下、右上和右下四个方位添加按钮。

Example

$filter->addRightTopButton('分派工单', $url);

按钮添加响应行为

$form->addRightTopButton('Delete')
	->action(function () use ($blog) {
		$blog->delete();
		flash('Blog removed.')
		return redirect('/blog-list');
	})

防止重复点击

$form->addRightTopButton('Pay')
    ->preventRepeatClick();