Activity
Mon
Wed
Fri
Sun
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Memberships

Snappy Community

490 members • Free

2 contributions to Snappy Community
Few questions regarding AG Grid
I LOVE the AG Grid you have released. Some thigs I am trying to do and I could use help with 1. I would like to add a columns with and action list (Edit, Update, etc) for records that needs a bit more editing than just the inline edit. Can you point me to how I can add such a column?  2. Can I display an image within AG Grid? I have the image stored in Xano with the path, but when I retrieve it I only see the URL for it (see attachment) 3. Last but not least - one of the columns (Categories) allow more than one association - is there a  way to display a one - to -many relationship within the AG grid? THANK YOU!! Elena
Few questions regarding AG Grid
2 likes • Feb 19
@Karl Larson I did! Here is the code { field: "image", headerName: "Image", editable: false, width: 150, sortable: false, filter: false, cellRenderer: (params) => { const container = document.createElement("div"); if (typeof params.value === "string" && params.value.startsWith("http")) { const img = document.createElement("img"); img.src = params.value; img.style.width = "100%"; img.style.height = "auto"; img.style.maxHeight = "80px"; img.style.borderRadius = "5px"; img.style.cursor = "pointer"; img.addEventListener("click", () => { wwLib.executeWorkflow("openImageModal", { imageUrl: params.value, }); }); container.appendChild(img); } else { container.innerHTML = '<i class="ph ph-image" style="font-size: 24px; color: grey;"></i>'; } return container; }, },
2 likes • Feb 19
@Karl Larson A more detailed JS and screenshot of where I am at with Robert's grid return [ { field: "actions", headerName: "Actions", editable: false, width: 80, sortable: false, filter: false, cellRenderer: (params) => { const container = document.createElement("div"); container.style.display = "flex"; container.style.gap = "8px"; container.style.alignItems = "center"; // Edit Link const editLink = document.createElement("a"); editLink.innerHTML = '<i class="ph ph-pencil" style="font-size: 20px; color: #4970f0;"></i>'; editLink.title = "Edit"; editLink.style.cursor = "pointer"; editLink.addEventListener("click", () => { wwLib.wwWorkflow.executeGlobal("2db6303d-dd3e-4e35-a761-3b0d43c8b0bf", { row: params.data, type: "edit" }); }); // Delete Link const deleteLink = document.createElement("a"); deleteLink.innerHTML = '<i class="ph ph-trash" style="font-size: 20px; color: #d3251f;"></i>'; deleteLink.title = "Delete"; deleteLink.style.cursor = "pointer"; deleteLink.addEventListener("click", () => { wwLib.wwWorkflow.executeGlobal("9a7fb3eb-b86b-42f6-b60e-5655ce27cd5f", { row: params.data, type: "delete" }); }); // Activate/Deactivate Link const toggleLink = document.createElement("a"); const isActive = params.data.status === "Active"; toggleLink.innerHTML = isActive ? '<i class="ph ph-toggle-right" style="font-size: 20px; color: #0f973d;"></i>' : '<i class="ph ph-toggle-left" style="font-size: 20px; color: #98a1b2;"></i>'; toggleLink.title = isActive ? "Deactivate" : "Activate"; toggleLink.style.cursor = "pointer"; toggleLink.addEventListener("click", () => { wwLib.wwWorkflow.executeGlobal("7668c3af-0a83-4b58-8e0c-b75649aaefb5", { row: params.data, type: "toggle", currentStatus: isActive ? "Active" : "Inactive" }); }); // Add all links to container container.appendChild(editLink); container.appendChild(deleteLink); container.appendChild(toggleLink); return container; }, }, { field: "knowledgebase_categories",
Issues with Google Oauth
I have followed the instruction to have the "Sign in with Google" to the T but I am getting the attached error see screenshot) - does anybody else have had the same problem? How did you resolve it?
Issues with Google Oauth
1-2 of 2
Elena Blanco
2
12points to level up
@elena-blanco-5932
Old time C++ / ColdFusion developer wanting to learn about low-code/no code

Active 204d ago
Joined Dec 6, 2024
Powered by