Skip to content

[Question]怎么在表格中添加一个自定义的button? #187

Description

@soluty

我希望在表格中自定义一个button进行操作,info.AddActionButton 只会在操作一栏显示,我希望是

info.AddField("head", "field", db.Varchar).FieldDisplay(func(value types.FieldModel) interface{} {
		return template.Default().
			Button().
			SetContent("我的按钮").
			GetContent()
	})

类似这种,但是ButtonAttribute不能添加action,所以这个按钮点击无效果,我要怎么做才能实现这个效果呢?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions