Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
755 views
in Technique[技术] by (71.8m points)

javascript - Add custom sub-header action (ng2-smart-table)

I would like to know if it is possible to add a custom global table action which replaces the 'Add new' button for the ng2-smart-table smart table package, which I use as part of Nebular admin dashboard (https://akveo.github.io/nebular/).

In this case, we want to add a 'Show all' button, which interacts with another element of the application. I know that adding custom actions is it possible, but for our functionality we need this button at thead level.

Maybe an approach could be to modify the default behaviour of the add action at the settings JSON of the smart table, but we didn't achieve it.

Global table actions are mentioned at official docs, at section Table Configuration, hideSubHeader property: https://akveo.github.io/ng2-smart-table/#/documentation

question from:https://stackoverflow.com/questions/65842088/add-custom-sub-header-action-ng2-smart-table

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...