Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Panel - Introduce an API to modify an array of a dynamic panel's footer actions #9026

Open
JaneSjs opened this issue Nov 8, 2024 · 0 comments
Labels
API change Issues that request changes in the API enhancement user issue An issue or bug reported by users

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Nov 8, 2024

In the following ticket, it's required to remove the Next and Previous actions from a Dynamic Panel's footer.
T20634 - Dynamic Panel in Tab mode - Customize the footer actions and hide the Next/Prev actions

Currently, this can be done using the following code:

const dynamicPanel = survey.getQuestionByName("vacation-info");
const footerToolbar = dynamicPanel.footerToolbar;
const prevAction = footerToolbar.getActionById("sv-pd-prev-btn");
const prevActionIndex = footerToolbar.actions.indexOf(prevAction);
footerToolbar.actions.splice(prevActionIndex, 1);

const nextAction = footerToolbar.getActionById("sv-pd-next-btn");
const nextActionIndex = footerToolbar.actions.indexOf(nextAction);
footerToolbar.actions.splice(nextActionIndex, 1);

View Demo

@JaneSjs JaneSjs added enhancement API change Issues that request changes in the API user issue An issue or bug reported by users labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change Issues that request changes in the API enhancement user issue An issue or bug reported by users
Projects
None yet
Development

No branches or pull requests

1 participant