{"project":"screenshots","branch":"main","commit":"89b6fe0e7c36363cc78ff5a7ce00ec7949d77363","component":{"name":"HomePage","nodes":{"root":{"tag":"div","type":"element","children":["2vmUcJ8J3ClRAZAm33KHO","qUZX5B_obx9JdrREoZr8I"],"classes":{"bTqdax":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-4qyT4kDwjO9hKEcL8NGa":{"tag":"td","type":"element","children":["eHPw8hL9xMU_xa56tZBid"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-uHEJJtcBImXvnUdQ-kyU":{"tag":"li","type":"element","children":["BUudDkWln98FCsr_SxG28","i7TlqJz8Vlrjwr7XppwxE"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"08BkxHIfTlOj7lmq0nZyL":{"tag":"p","type":"element","children":["GbgCiR-4MmKncgB8vD7fs"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"0XdRFLWxGaHPuyKH6DbdY":{"tag":"div","type":"element","children":["1z1_Y_r3HQIv9onHC8W_g","QRuqU9Jzl1Lz3Aom-NcTp"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"10k1t3N_yL9Tt9zvovRJb":{"tag":"h3","type":"element","children":["V54wWhn9bXaxgGMlMzvx-"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1SyZbOUXu4C5eQo01nNn5":{"type":"text","value":{"type":"value","value":"5. Customizing Button (If using Preview)"}},"1Y6UZKFh6t6uPrtyVzPxt":{"type":"text","value":{"type":"value","value":"Preview"}},"1z1_Y_r3HQIv9onHC8W_g":{"tag":"h4","type":"element","children":["hy4MH7oI2M1GquX5DhVDW"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"29uQl20NFmXv9pOqK_lg-":{"tag":"p","type":"element","children":["HoqDezaAmU5mykIvHM06P"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2IQpny-nF4GKb5QxrEF9i":{"tag":"div","type":"element","children":["zLPUXTO4t1V8nXLsoLC5D","wEPHtPu-10kQb4Y3JiXTK"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2pA6i2vYkVM_cte59h-X_":{"type":"text","value":{"type":"value","value":"a) TakeScreenshotPreview\n\t•\tUse this action to generate a preview of the screenshot before downloading.\n\nb) TakeScreenshotDownload\n\t•\tUse this action to immediately download the screenshot without previewing."}},"2vQmZUdT7iBF0qtA9mIx1":{"tag":"td","type":"element","children":["zd4tyThydB7DRp0hFD7ux"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2vmUcJ8J3ClRAZAm33KHO":{"tag":"style","type":"element","children":["fL3wI4DFlh0-_U_bD0-8x"],"customProperties":{}},"2x2URyCKk3z4UOQltAjF1":{"tag":"h3","type":"element","children":["bOFjWvUzS99RqjtqEf5Oo"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"3ILUTE46Qb1WJKwhFWU4C":{"tag":"li","type":"element","children":["5jM04X_hI5ASzyWw21WC_","fMMQhdn1Td6f6R4ZpEOdR"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"3pIRXOXkia_-HTOP5_4lv":{"tag":"h2","type":"element","children":["RYYtSP6RCzgoznDFFGvik"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"5jM04X_hI5ASzyWw21WC_":{"tag":"h3","type":"element","children":["kFqR2aAhnUSsw5cVTPe1t"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"616n7TVOO6f-PV1o3Ttcf":{"tag":"section","type":"element","children":["rPritJtWLr5om5Mf7ZQl4","dPIDQY2NRCodcOF5VifV1"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"6Bu4eHnh_kPfKdvBkuBg8":{"tag":"td","type":"element","children":["lkE9zOPjk7aP3UEbvINUF"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"6PKDKemaHJ9_WVgRnwuWX":{"type":"text","value":{"type":"value","value":"Take Screenshot With Preview"}},"6Xa465A6aG0j7it6gfCBX":{"type":"text","value":{"type":"value","value":"rawElementId"}},"767dp9jKHwargiC1k_KbV":{"type":"text","value":{"type":"value","value":"Can this capture elements with animations or videos?"}},"7c7x4U4dAOiSdB_EUmtk6":{"type":"text","value":{"type":"value","value":"Captures a specified element on your app, generates a screenshot, and displays it in a preview container. Users can visually confirm the screenshot before choosing to download it."}},"8517kvm1_sZZgUvvxixKN":{"tag":"li","type":"element","children":["10k1t3N_yL9Tt9zvovRJb","bBbyLuA7es8Z9fVN6Wo5s"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8JMmh1JG6yvg9WglgEwJc":{"tag":"div","type":"element","children":["gKOdXbW-on_939JSdA1t-"],"classes":{"CsusC":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8jz_i0f5CEJAk0cy68QEh":{"tag":"h3","type":"element","children":["uKnzjae8FGguvYgGIu2IL"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8kvHb58R-81iJRNZnzD3c":{"tag":"h2","type":"element","children":["C15Y33_ERJ6q8SiKjq0Qh"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8vpM1V4NqGE2EPu6qwkoZ":{"tag":"td","type":"element","children":["MHhW2DLtovKM2gRlh1ze_"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"955vzG3URyn7fwf29BeYP":{"tag":"tr","type":"element","children":["QZzg0UIfFBcemRXMD6Ese","WHSTERcuf-Jkz6paLpEXn"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9gO07fxcZVgY5rDM-_kSX":{"type":"text","value":{"type":"value","value":"Make sure the rawElementId provided matches the id of the element you want to capture. Double-check your Toddle workflow configuration to ensure the correct rawElementId is being passed to the action."}},"9jChZwxVTMJ5NcAwKizGj":{"tag":"p","type":"element","children":["jZxaAwj485lcWlFM2CEOG"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9rMkTYdk5g-I1Cg4GBVOe":{"type":"text","value":{"type":"value","value":"1. Add Elements to Your App"}},"AU6ldSF6LO9rjQYNbvBzG":{"type":"text","value":{"type":"value","value":"takeScreenshotDownload"}},"AeDhzbwEiM7FEc3PW7zxd":{"tag":"td","type":"element","children":["kiV5jmtnkE0ZvLqqkZOO7"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"AgVvr1Z8hMIIyIw0dSO0b":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["Id-azR-EhDdrvjHc18EpX"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BUudDkWln98FCsr_SxG28":{"tag":"h3","type":"element","children":["Oq9sOzqXzMgJrBcJZ5wum"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"C15Y33_ERJ6q8SiKjq0Qh":{"type":"text","value":{"type":"value","value":"Guide"}},"C2ztPypJigHNYahz23c_U":{"type":"text","value":{"type":"value","value":"Arguments"}},"Cpb7dgTTF-nf713MXsC_v":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["wTaDkAt3p1DIQwAgaIyQz"],"classes":{"fBBdzh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"D2aIDiP5YhC6DjhjrFLXh":{"type":"text","value":{"type":"value","value":"Intro"}},"DSvxTTpoTL46m-Jwl9vH2":{"type":"text","value":{"type":"value","value":"Captures a specified element and immediately downloads the screenshot as an image file, bypassing the preview step."}},"Degr92OpPXxW92Qmh0_yg":{"tag":"li","type":"element","children":["Rzt5kho-kWHRTPRWw9J90","k6fWd15VhaVX0WctlXR25"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Dr-eczAyr04LoYRf_l3f3":{"tag":"li","type":"element","children":["ljgmtOH6sXAIwCapNEO5f","XU2-0mjiREkbe7ZbZ3QKl","0XdRFLWxGaHPuyKH6DbdY"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"FaPphDCHrJn_OQN7cP3uS":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["YDnJSbNo8L5tzxIsclxbC"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"GCPBtWkQa5Ex2nDBSxQfs":{"type":"text","value":{"type":"value","value":"Why are linked images missing from the screenshot?"}},"GEs1v_osu0dAZo-dYoKJT":{"type":"text","value":{"type":"value","value":"\t1.\tScreenshot Generation:\n\t•\tCapture screenshots of specific elements on your app using their ID.\n\t•\tSupports cross-origin images and high-resolution rendering.\n\n\t2.\tInteractive Preview:\n\t•\tDisplay the screenshot in a customizable preview container.\n\t•\tUsers can verify the screenshot before deciding to download it.\n\n\t3.\tDownload Functionality:\n\t•\tAllow users to save screenshots with a customizable file name."}},"GJJWjqd7T73b8vmQttYhz":{"tag":"h3","type":"element","children":["1SyZbOUXu4C5eQo01nNn5"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"GQyGHz0tM8OkLzXs4WqlP":{"type":"text","value":{"type":"value","value":"html2canvas captures the current state of an element at the time of rendering. Animations will be frozen at the captured moment, and videos are not rendered into the screenshot."}},"GSUJiqLbnvZQluJGYk7Q-":{"tag":"p","type":"element","children":["tjNqO618p_U2zZDz-Ll-t"],"classes":{"bezJgK":{"formula":{"type":"value","value":true}}},"customProperties":{}},"GbgCiR-4MmKncgB8vD7fs":{"type":"text","value":{"type":"value","value":"a) Add Buttons\n\n• Create buttons to trigger each action.\n\nb) Link Buttons to Workflows\n\n\t•\tFor Preview Screenshot:\n\t•\tAttach a workflow to the “Preview Screenshot” button.\n\t•\tAdd the TakeScreenshotPreview action and configure its arguments.\n\t•\tFor Download Screenshot:\n\t•\tAttach a workflow to the “Download Screenshot” button.\n\t•\tAdd the TakeScreenshotDownload action and configure its arguments."}},"GwHvgf1jqpy0uQud3Txaj":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["gB4X9dtBUXqNJX5etdwYY"],"classes":{"fBBdzh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"H-_DYGIZ0m8bWkDZFzgL0":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["8517kvm1_sZZgUvvxixKN"],"classes":{"fBBdzh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"H4L4-qYWVCIAN9Ehzwldr":{"tag":"h2","type":"element","children":["sw0h1xF3ZqfcsW-IqEId8"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"HoqDezaAmU5mykIvHM06P":{"type":"text","value":{"type":"value","value":"a) For TakeScreenshotPreview\n\n• Add the following arguments to the custom action:\n• rawElementId: The id of the target element to capture (e.g., \"capture\").\n• fileName: The desired file name for the downloaded screenshot (e.g., \"my_preview.png\").\n• previewContainerId: The id of the container where the preview will appear (e.g., \"screenshot-preview\").\n\nb) For TakeScreenshotDownload\n\n• Add the following arguments to the custom action:\n• rawElementId: The id of the target element to capture (e.g., \"capture\").\n• fileName: The desired file name for the downloaded screenshot (e.g., \"my_screenshot.png\")."}},"Id-azR-EhDdrvjHc18EpX":{"tag":"li","type":"element","children":["GJJWjqd7T73b8vmQttYhz","z2craPVyPCc4b2gaVWTJk"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"JHB6uBPJrxungDy9ZxUT2":{"type":"text","value":{"type":"value","value":"fileName"}},"K6TcQZZI9ONDkYqAS6H39":{"tag":"p","type":"element","children":["GEs1v_osu0dAZo-dYoKJT"],"classes":{"sahaH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"LxHuOpEvIUDRqIgCX7CVJ":{"tag":"tr","type":"element","children":["ZZzsMa98zJVK0yNpS8nX2","8vpM1V4NqGE2EPu6qwkoZ"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"LyXTRF_RI1K6dhcVHUnbF":{"type":"text","value":{"type":"value","value":"My image still doesn’t work after adding crossorigin. Why?"}},"M4cc639e8hqxRmUcUPk9p":{"tag":"h3","type":"element","children":["LyXTRF_RI1K6dhcVHUnbF"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"M6VwYutUAVkdMrKmvolcN":{"tag":"h3","type":"element","children":["GCPBtWkQa5Ex2nDBSxQfs"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"MHhW2DLtovKM2gRlh1ze_":{"type":"text","value":{"type":"value","value":"Sets the name of the file for the downloaded screenshot. Pass the name (including .png) as the fileName argument."}},"Mc9k5T_QbzIa9qN8UYMBh":{"tag":"tr","type":"element","children":["2vQmZUdT7iBF0qtA9mIx1","6Bu4eHnh_kPfKdvBkuBg8"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Mha7i3FCSfKs6RDm7Txly":{"tag":"p","type":"element","children":["1Y6UZKFh6t6uPrtyVzPxt"],"classes":{"FtmKd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Myq_nqFzTIOTpoBu3G3Dz":{"tag":"button","type":"element","events":{"click":{"actions":[{"name":"takeScreenshotPreview","version":2,"arguments":[{"name":"rawElementId","formula":{"type":"value","value":"capture"}},{"name":"fileName","formula":{"type":"value","value":"screenshot_example"}},{"name":"previewContainerId","formula":{"type":"value","value":"preview"}},{"name":"buttonClass","formula":{"type":"value","value":"my-button"}},{"name":"showButton","formula":{"type":"value","value":true}},{"name":"buttonText","formula":{"type":"value","value":"Download"}}]}],"trigger":"click"}},"children":["6PKDKemaHJ9_WVgRnwuWX"],"classes":{"eDSzHZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"N2EwsIcm0qIWOV3-RJZkb":{"tag":"p","type":"element","children":["_4urwMm0guVphfh7gERHm"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Ocz0955gPBhgnA5gXkqXn":{"tag":"h2","type":"element","children":["D2aIDiP5YhC6DjhjrFLXh"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Oq9sOzqXzMgJrBcJZ5wum":{"type":"text","value":{"type":"value","value":"Why isn’t a screenshot of my element working?"}},"OuOxHL8buvebYNTi4EL7N":{"tag":"li","type":"element","children":["M4cc639e8hqxRmUcUPk9p","nNnxRvdaadIjQ7cxO2njZ"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Pe_9ID7jz38AZjHeJXBAS":{"type":"text","value":{"type":"value","value":"Can I capture an entire webpage instead of a single element?"}},"QRuqU9Jzl1Lz3Aom-NcTp":{"tag":"table","type":"element","children":["955vzG3URyn7fwf29BeYP","Mc9k5T_QbzIa9qN8UYMBh"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"QZzg0UIfFBcemRXMD6Ese":{"tag":"td","type":"element","children":["6Xa465A6aG0j7it6gfCBX"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"QozClqn4vLraoakHnLOeK":{"tag":"section","type":"element","children":["H4L4-qYWVCIAN9Ehzwldr","RpMEP3bYGiAf_VRNmjWiP","u0rIhrkJALSIkua2QSvP9"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"QsggGXCS67hlRA1u0HCEI":{"tag":"td","type":"element","children":["fX4BGlufgr_uJTpkkJkNf"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"QvqbvWNLOvdoyz-ztwQCw":{"tag":"h3","type":"element","children":["v5FphPFSI1ufYPVw5iIiO"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"RItcltP1cBv4wLww1NImB":{"tag":"h3","type":"element","children":["9rMkTYdk5g-I1Cg4GBVOe"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"RYYtSP6RCzgoznDFFGvik":{"type":"text","value":{"type":"value","value":"FAQ"}},"RpMEP3bYGiAf_VRNmjWiP":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["d5R32V345MlGqEinOVxYQ"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Rzt5kho-kWHRTPRWw9J90":{"tag":"h3","type":"element","children":["767dp9jKHwargiC1k_KbV"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"SjKQTGTSGIP8fyDpcMP0w":{"type":"text","value":{"type":"value","value":"previewContainerId"}},"V54wWhn9bXaxgGMlMzvx-":{"type":"text","value":{"type":"value","value":"Why is the preview container not displaying anything?"}},"Vqxf_8CW-icGEeuw3haqS":{"type":"text","value":{"type":"value","value":"Demo"}},"W8uuoDaDyzHE8Dj1dsZE6":{"tag":"section","type":"element","children":["3pIRXOXkia_-HTOP5_4lv","hQpFeCDYMcvIRISLbQKnY","ewR_8byLxa0q6cjTdtVZo","XS-KpAxUQx5ym9gpNKexq","Cpb7dgTTF-nf713MXsC_v","GwHvgf1jqpy0uQud3Txaj","H-_DYGIZ0m8bWkDZFzgL0","tN-E-FcZ9islZ3vqJCnTR"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"WBc2EIJBH-dfUVw4ie7ZJ":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["vT4TEJW0N0dFrwO8KK7AS"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"WHSTERcuf-Jkz6paLpEXn":{"tag":"td","type":"element","children":["XqLs8XdLrSVs2Ku2GBS_l"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"WS-tTVmH9snc2swXwIMHq":{"tag":"section","type":"element","children":["8kvHb58R-81iJRNZnzD3c","WBc2EIJBH-dfUVw4ie7ZJ","yoN5q_U4JWgyPlHhmTN1w","FaPphDCHrJn_OQN7cP3uS","a0e0ApEh7Fity9uQpQCTM","AgVvr1Z8hMIIyIw0dSO0b"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"XNg8G_089ND1KtHmmrtcH":{"tag":"p","type":"element","children":["q2HcoQybH9AN2SEUxelWl"],"classes":{"sahaH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"XS-KpAxUQx5ym9gpNKexq":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["OuOxHL8buvebYNTi4EL7N"],"classes":{"fBBdzh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"XU2-0mjiREkbe7ZbZ3QKl":{"tag":"p","type":"element","children":["DSvxTTpoTL46m-Jwl9vH2"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"XqLs8XdLrSVs2Ku2GBS_l":{"type":"text","value":{"type":"value","value":"Specifies the ID of the HTML element you want to capture as a screenshot. Requires a string representing the id of the target element."}},"Y96qfNc9FtIXIYnMWqFkT":{"tag":"li","type":"element","children":["ZV2oEvIlmquXsy9a-aSgI","08BkxHIfTlOj7lmq0nZyL"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"YDnJSbNo8L5tzxIsclxbC":{"tag":"li","type":"element","children":["8jz_i0f5CEJAk0cy68QEh","29uQl20NFmXv9pOqK_lg-"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Yh3AI9d9k9e1rA4RPw0m-":{"tag":"tr","type":"element","children":["-4qyT4kDwjO9hKEcL8NGa","QsggGXCS67hlRA1u0HCEI"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"YlWEeDAOOLCHkRZfPohIQ":{"type":"text","value":{"type":"value","value":"a) Use the showButton argument to determine if the button should appear:\n\n• Set to true to display the button.\n• Set to false to hide the button.\n\nb) Change the Button Text\n\n• Use the buttonText argument to set the text displayed on the button.\n• Default text is \"Download Screenshot\", but you can customize it to fit your app's needs.\n\nc) Apply Custom Styles\n\n• Use the buttonClass argument to apply a pre-defined CSS class to the button.\n• This lets you style the button consistently with your app's design.\n• Note - See how it is implemented as a 'Style' element in this example."}},"ZV2oEvIlmquXsy9a-aSgI":{"tag":"h3","type":"element","children":["vzo_G_Vy6PwS5zSsEn6YW"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ZZzsMa98zJVK0yNpS8nX2":{"tag":"td","type":"element","children":["JHB6uBPJrxungDy9ZxUT2"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"_4urwMm0guVphfh7gERHm":{"type":"text","value":{"type":"value","value":"Yes, you can set the rawElementId to the id of the body on your website. However, be cautious as capturing very large pages may cause performance issues."}},"a0e0ApEh7Fity9uQpQCTM":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["Y96qfNc9FtIXIYnMWqFkT"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"a_GW2S9ciu4FpDN3V6zvV":{"tag":"div","type":"element","children":["bGPFFVaSQkeYqRZa_ZsUk"],"classes":{"eZwqpn":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bBbyLuA7es8Z9fVN6Wo5s":{"tag":"p","type":"element","children":["t76a1jPpmxQLd8bHOZ4uD"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bGPFFVaSQkeYqRZa_ZsUk":{"tag":"div","type":"element","attrs":{"id":{"type":"value","value":"capture"}},"children":["zGXtBJ3YoFs9sebHuOHgw","GSUJiqLbnvZQluJGYk7Q-"],"classes":{"xjdEj":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bOFjWvUzS99RqjtqEf5Oo":{"type":"text","value":{"type":"value","value":"takeScreenshotPreview"}},"bdVX813ourWGALtmvHDX6":{"tag":"p","type":"element","children":["uhkdG54Xmn8ReHAiHtXza"],"classes":{"sahaH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"czrN8sKB6TWuy0qUQWQJ7":{"tag":"p","type":"element","children":["n6Ziq0nOxnaEohzD23yrM"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"d5R32V345MlGqEinOVxYQ":{"tag":"li","type":"element","children":["2x2URyCKk3z4UOQltAjF1","y8uuKBJkVjdEdcVPPT6px","2IQpny-nF4GKb5QxrEF9i"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"dPIDQY2NRCodcOF5VifV1":{"tag":"div","type":"element","children":["kD8RJz_wLE2t1EPbp4qrc","qo1NQlCVxps2hZ6tLZKYS"],"classes":{"eZwqpn":{"formula":{"type":"value","value":true}}},"customProperties":{}},"eHPw8hL9xMU_xa56tZBid":{"type":"text","value":{"type":"value","value":"rawElementId"}},"euKLctPPv1MjTRKhCuCCw":{"tag":"button","type":"element","events":{"click":{"actions":[{"name":"takeScreenshotDownload","version":2,"arguments":[{"name":"rawElementId","formula":{"type":"value","value":"capture"}},{"name":"fileName","formula":{"type":"value","value":"screenshot_example"}}]}],"trigger":"click"}},"children":["hyvqprc1122pVGlYcyVzB"],"classes":{"eDSzHZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ewR_8byLxa0q6cjTdtVZo":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["nWankVnSLedvkvtRol-FW"],"classes":{"fBBdzh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"fL3wI4DFlh0-_U_bD0-8x":{"type":"text","value":{"type":"value","value":".my-button {\n    background-color: #2563eb; /* blue background */\n    color: white; /* White text */\n    padding: 10px 20px; /* Padding */\n    border: none; /* No border */\n    border-radius: 4px; /* Rounded corners */\n    cursor: pointer; /* Pointer cursor on hover */\n    font-size: 16px; /* Text size */\n}\n\n.my-button:hover {\n    background-color: #3b82f6;\n}\n"}},"fMMQhdn1Td6f6R4ZpEOdR":{"tag":"p","type":"element","children":["2pA6i2vYkVM_cte59h-X_"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"fX4BGlufgr_uJTpkkJkNf":{"type":"text","value":{"type":"value","value":"Specifies the ID of the HTML element you want to capture as a screenshot. Requires a string representing the id of the target element."}},"gB4X9dtBUXqNJX5etdwYY":{"tag":"li","type":"element","children":["QvqbvWNLOvdoyz-ztwQCw","psw_4o6e3gHxa49Y-Dnz5"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gKOdXbW-on_939JSdA1t-":{"tag":"div","type":"element","children":["jD-wKYaGpnUIkDvD7xK3c","bdVX813ourWGALtmvHDX6","K6TcQZZI9ONDkYqAS6H39","XNg8G_089ND1KtHmmrtcH"],"classes":{"eozNhk":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hQpFeCDYMcvIRISLbQKnY":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["-uHEJJtcBImXvnUdQ-kyU"],"classes":{"fBBdzh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hVG2Qu2I9ihxg1FaW89ym":{"tag":"section","type":"element","children":["Ocz0955gPBhgnA5gXkqXn","8JMmh1JG6yvg9WglgEwJc"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"husK4_kgcZxll-C-yeYoZ":{"tag":"h3","type":"element","children":["Pe_9ID7jz38AZjHeJXBAS"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hy4MH7oI2M1GquX5DhVDW":{"type":"text","value":{"type":"value","value":"Arguments"}},"hyvqprc1122pVGlYcyVzB":{"type":"text","value":{"type":"value","value":"Take Screenshot Without Preview"}},"i7TlqJz8Vlrjwr7XppwxE":{"tag":"p","type":"element","children":["9gO07fxcZVgY5rDM-_kSX"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jD-wKYaGpnUIkDvD7xK3c":{"tag":"h3","type":"element","children":["lUPGFYkSWa1r-o8-U5uH1"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jZxaAwj485lcWlFM2CEOG":{"type":"text","value":{"type":"value","value":"This issue often occurs due to cross-origin restrictions. If an image is hosted on a different domain, the browser may block it unless the image server allows cross-origin access. Add the crossorigin=anonymous attribute to the <img> tag."}},"k6fWd15VhaVX0WctlXR25":{"tag":"p","type":"element","children":["GQyGHz0tM8OkLzXs4WqlP"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"kD8RJz_wLE2t1EPbp4qrc":{"tag":"div","type":"element","attrs":{"id":{"type":"value","value":"preview"}},"children":["Mha7i3FCSfKs6RDm7Txly"],"classes":{"exxkCA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"kFqR2aAhnUSsw5cVTPe1t":{"type":"text","value":{"type":"value","value":"2. Add the Custom Actions"}},"kWhFM_U4aXcesRENJjxHJ":{"type":"text","value":{"type":"value","value":"It is possible to customize the button’s appearance by modifying the JavaScript in the action to include your desired CSS class. Currently, this requires breaking into the JS code within the action. A future update may allow passing a CSS class directly as an argument for easier customization. For now, you can manually add styles in the JS or inline style definitions."}},"kiV5jmtnkE0ZvLqqkZOO7":{"type":"text","value":{"type":"value","value":"Specifies the ID of the container where the screenshot preview will be displayed. Add a container element in your app layout with a unique id. Pass the id of this container as the previewContainerId argument."}},"lUPGFYkSWa1r-o8-U5uH1":{"type":"text","value":{"type":"value","value":"Screenshot Preview and Download for Toddle Apps"}},"ljgmtOH6sXAIwCapNEO5f":{"tag":"h3","type":"element","children":["AU6ldSF6LO9rjQYNbvBzG"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"lkE9zOPjk7aP3UEbvINUF":{"type":"text","value":{"type":"value","value":"Sets the name of the file for the downloaded screenshot. Pass the name (including .png) as the fileName argument."}},"n51sefRvemKRKKZn-JbMT":{"type":"text","value":{"type":"value","value":"Even with the crossorigin=anonymous attribute, the server hosting the image must explicitly allow cross-origin requests. If the server doesn’t support this you will need to download and host the image yourself."}},"n6Ziq0nOxnaEohzD23yrM":{"type":"text","value":{"type":"value","value":"a) Target Element\n\t•\tAdd an element in your app layout that you want to capture as a screenshot.\n\nb) Preview Container (For Preview Action Only)\n\t•\tAdd a container to display the screenshot preview."}},"nNnxRvdaadIjQ7cxO2njZ":{"tag":"p","type":"element","children":["n51sefRvemKRKKZn-JbMT"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"nWankVnSLedvkvtRol-FW":{"tag":"li","type":"element","children":["M6VwYutUAVkdMrKmvolcN","9jChZwxVTMJ5NcAwKizGj"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"psw_4o6e3gHxa49Y-Dnz5":{"tag":"p","type":"element","children":["kWhFM_U4aXcesRENJjxHJ"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"q2HcoQybH9AN2SEUxelWl":{"type":"text","value":{"type":"value","value":"Based on the html2canvas library which renders the current page as a canvas image, by reading the DOM and the different styles applied to the elements. Learn more at html2canvas.hertzen.com"}},"qLKdpaqJuNUl8HT2cYKmY":{"tag":"td","type":"element","children":["SjKQTGTSGIP8fyDpcMP0w"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qUZX5B_obx9JdrREoZr8I":{"tag":"main","type":"element","children":["hVG2Qu2I9ihxg1FaW89ym","616n7TVOO6f-PV1o3Ttcf","QozClqn4vLraoakHnLOeK","WS-tTVmH9snc2swXwIMHq","W8uuoDaDyzHE8Dj1dsZE6"],"classes":{"drWRwT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qo1NQlCVxps2hZ6tLZKYS":{"tag":"div","type":"element","children":["euKLctPPv1MjTRKhCuCCw","Myq_nqFzTIOTpoBu3G3Dz"],"classes":{"exxkCA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"rPritJtWLr5om5Mf7ZQl4":{"tag":"h2","type":"element","children":["Vqxf_8CW-icGEeuw3haqS","a_GW2S9ciu4FpDN3V6zvV"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sw0h1xF3ZqfcsW-IqEId8":{"type":"text","value":{"type":"value","value":"Actions"}},"t76a1jPpmxQLd8bHOZ4uD":{"type":"text","value":{"type":"value","value":"Ensure the previewContainerId matches the id of an existing element in your app layout. Also, confirm the container is visible and styled appropriately to display the image."}},"tN-E-FcZ9islZ3vqJCnTR":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["Degr92OpPXxW92Qmh0_yg"],"classes":{"fBBdzh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"tjNqO618p_U2zZDz-Ll-t":{"type":"text","value":{"type":"value","value":"Lorem ipsum but make it techy: “Loading… Enhancing… Screenshot-ifying… Complete!”"}},"u0rIhrkJALSIkua2QSvP9":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["Dr-eczAyr04LoYRf_l3f3"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"uKnzjae8FGguvYgGIu2IL":{"type":"text","value":{"type":"value","value":"3. Configure Workflow Arguments"}},"uhkdG54Xmn8ReHAiHtXza":{"type":"text","value":{"type":"value","value":"This package provides a way to capture, preview, and download screenshots of specific elements within your Toddle app. It uses the html2canvas library to render DOM elements into images, allowing users to generate screenshots of app content. With built-in preview functionality, users can view the screenshot before downloading it."}},"v5FphPFSI1ufYPVw5iIiO":{"type":"text","value":{"type":"value","value":"Can I style the preview image and download button?"}},"vLC1qEjUNC0_lX83eHfvz":{"tag":"tr","type":"element","children":["qLKdpaqJuNUl8HT2cYKmY","AeDhzbwEiM7FEc3PW7zxd"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"vT4TEJW0N0dFrwO8KK7AS":{"tag":"li","type":"element","children":["RItcltP1cBv4wLww1NImB","czrN8sKB6TWuy0qUQWQJ7"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"vzo_G_Vy6PwS5zSsEn6YW":{"type":"text","value":{"type":"value","value":"4. Attach Actions to a Workflow"}},"wEPHtPu-10kQb4Y3JiXTK":{"tag":"table","type":"element","children":["Yh3AI9d9k9e1rA4RPw0m-","LxHuOpEvIUDRqIgCX7CVJ","vLC1qEjUNC0_lX83eHfvz","OTazmBokBYJ_s-N-LSgzm","uz-_iakFjOcJ3JjhGvYUx","n1X1LCqv62MVOXF4No61F"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"wTaDkAt3p1DIQwAgaIyQz":{"tag":"li","type":"element","children":["husK4_kgcZxll-C-yeYoZ","N2EwsIcm0qIWOV3-RJZkb"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"y8uuKBJkVjdEdcVPPT6px":{"tag":"p","type":"element","children":["7c7x4U4dAOiSdB_EUmtk6"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"yoN5q_U4JWgyPlHhmTN1w":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["3ILUTE46Qb1WJKwhFWU4C"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"z2craPVyPCc4b2gaVWTJk":{"tag":"p","type":"element","children":["YlWEeDAOOLCHkRZfPohIQ"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zGXtBJ3YoFs9sebHuOHgw":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"https://toddle.dev/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/toddle:toddle-default-image.jpg/540"}},"classes":{"eUokYF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zLPUXTO4t1V8nXLsoLC5D":{"tag":"h4","type":"element","children":["C2ztPypJigHNYahz23c_U"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zd4tyThydB7DRp0hFD7ux":{"type":"text","value":{"type":"value","value":"fileName"}},"OTazmBokBYJ_s-N-LSgzm":{"tag":"tr","type":"element","children":["d7CwcBsTd1DEGO8LuYOMI","cJTogsrwkI5H9791BylLw"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"PxtUGAgtemExx6nvX2X0z":{"type":"text","value":{"type":"value","value":"showButton"}},"d7CwcBsTd1DEGO8LuYOMI":{"tag":"td","type":"element","children":["PxtUGAgtemExx6nvX2X0z"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"AsA_l0jxRA7NCK0xSWG_g":{"type":"text","value":{"type":"value","value":"Determines whether the \"Download\" button is displayed in the screenshot preview (true to show, false to hide)."}},"cJTogsrwkI5H9791BylLw":{"tag":"td","type":"element","children":["AsA_l0jxRA7NCK0xSWG_g"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"uz-_iakFjOcJ3JjhGvYUx":{"tag":"tr","type":"element","children":["SOWQTg_MXaTAGA80bQqvA","i-Ze_tP-oxM35jlUombT9"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8E_OlRz0ExgtebV9iRKab":{"type":"text","value":{"type":"value","value":"buttonText"}},"SOWQTg_MXaTAGA80bQqvA":{"tag":"td","type":"element","children":["8E_OlRz0ExgtebV9iRKab"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Puf-pAKF5TLy77Z8rDMsB":{"type":"text","value":{"type":"value","value":"Customizes the text displayed on the \"Download\" button (default: \"Download Screenshot\")."}},"i-Ze_tP-oxM35jlUombT9":{"tag":"td","type":"element","children":["Puf-pAKF5TLy77Z8rDMsB"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"n1X1LCqv62MVOXF4No61F":{"tag":"tr","type":"element","children":["2qUBBIsrzNoRGkhSaX4J0","W7oQi6h_kuRpI4hRjbXt5"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Kbpyt9C0YyMgpNaQy3dX_":{"type":"text","value":{"type":"value","value":"buttonClass"}},"2qUBBIsrzNoRGkhSaX4J0":{"tag":"td","type":"element","children":["Kbpyt9C0YyMgpNaQy3dX_"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"R7hRrelGq4cUkJ7Zq-oxL":{"type":"text","value":{"type":"value","value":"Specifies a CSS class to apply custom styles to the \"Download\" button."}},"W7oQi6h_kuRpI4hRjbXt5":{"tag":"td","type":"element","children":["R7hRrelGq4cUkJ7Zq-oxL"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"route":{"path":[],"query":{}},"onLoad":{"actions":[],"trigger":"load"},"functions":{}},"components":[]}