Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
764 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 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...