Hello @Farzana_Mohammed , thanks for posting into the community.
This question is answered here.
Basically there is a setting under the toolbar options which allows you to enable this.
contentOptions .parameters.toolbarOptions.export = True
const contentOptions = {
parameters: [
...your parameters here
],
locale: "en-US",
sheetOptions: {
initialSheetId: '<YOUR_SHEETID>',
singleSheet: false,
emitSizeChangedEventOnSheetChange: false,
},
toolbarOptions: {
export: false,
undoRedo: false,
reset: false
},
attributionOptions: {
overlayContent: false,
},
};
const embeddedDashboardExperience = await embeddingContext.embedDashboard(frameOptions, contentOptions);
Hope it helps, please mark this solution as solved if that’s the case also to help other members of the community., otherwise let us know.
const embeddingContext = await createEmbeddingContext({
onChange: (changeEvent, metadata) => {
console.log('Context received a change', changeEvent, metadata);
},
});
const frameOptions = {
url: "{{quickSightEmbedUrl}}" ,
container: '#experience-container',
height: "700px",
width: "300px",
resizeHeightOnSizeChangedEvent: true,
onChange: (changeEvent, metadata) => {
switch (changeEvent.eventName) {
case 'FRAME_MOUNTED': {
console.log("Do something when the experience frame is mounted.");
break;
}
case 'FRAME_LOADED': {
console.log("Do something when the experience frame is loaded.");
break;
}
}
},
};
const contentOptions = {
locale: "en-US",
sheetOptions: {
initialSheetId: 'sheet_id',
singleSheet: false,
emitSizeChangedEventOnSheetChange: false,
},
toolbarOptions: {
export: true,
undoRedo: true,
reset: true
},
attributionOptions: {
overlayContent: true,
},
};
const embeddedDashboardExperience = await embeddingContext.embedDashboard(frameOptions, contentOptions);
};
Even after changing to true none of export ,undo redo works
Hi @Farzana_Mohammed,
It has been awhile since we have heard from you. Are you still having issues with the last question you asked, or have you been able to resolve this issue? If so, please provide the solution that worked for you or mark a response above as the solution.
Otherwise, if you still need assistance, please let me know and provide any relevant information as to where you are currently in the process.
If we do not hear back from you in 3 days, I will archive this topic.
Thank you!
Hi @Farzana_Mohammed,
Since we have not heard back from you, I will archive this topic. If you need further assistance, please post a new question in the community and link to this topic to provide relevant information. That will ensure you are at the top of the priority list for a response from one of our QuickSight experts.
Thank you!