Help forum
- Shoelace dropdown hidden by other elements
danishnizzle
19 7 months ago
4 Jul 2024, 17:07
I 'm using the Shoelace UI package and having some trouble with a dropdown that 's getting covered up by a list item below it . Been doing the todo tut and trying to add feature to have options menu to duplicate /delete todo . First image shows list item component I 've created which contains my options menu as I intend it to look , 2nd shows the issue . 3rd just shows that it seems to only impact the dropdown when it goes to list items below it . I 'm this is using the popover API as z -index doesn 't seem to have any impact . - Dynamically Display a PDF
Aburio
β 17 7 months ago
20 Jun 2024, 12:34
Hi all , I 'm currently trying to create a simple public one -page app to generate a bike insurance quote . The page consists of a form where users enter their last name , first name , and the bike value . When users submit the form , I want to call an API that returns a PDF and display this PDF on the same page to the user with the ability to print or send a copy by email . I created a PDF viewer component that uses custom code to insert an HTML object tag with the PDF encoded in base64 : function renderPDF({ element, base64PDF }, ctx) {
// Create the object element as a string
const objectHTML = `<object data="data:application/pdf;base64,${base64PDF}" type="application/pdf" width="100%" height="100%">
<p>Your browser does not support PDFs.
<a href="data:application/pdf;base64,${base64PDF}">Download the PDF</a>
</p>
</object>`;
// Set the innerHTML of the provided element
element.innerHTML = objectHTML;
}I can display a PDF with that method using a custom component , but where I 'm struggling is how I can plug the form submit to call my API , convert the returned PDF into base64 , and insert the value into my custom component . P .S : Thanks to the Day 3 Tutorial video , I found my mistake . I removed the 'prevent default . - Move a project to a different organization?
Bishop
4 7 months ago
19 Jun 2024, 14:45
Is there a way to do this at the moment ? - Setting html lang
mbirkegaard
2 7 months ago
19 Jun 2024, 11:00
We have a customer request for setting the html lang tag ( "da " instead of "en " ) . I read that a ticket had been created for this . Did this get implemented ? - Blank canvas on editor
yoelfdz
12 7 months ago
16 Jun 2024, 21:22
Hey Team toddle , I have the editor of a project I 'm working on blank since yesterday , have not figured out why and need to continue - Truncate Text
Alex
9 9 months ago
4 May 2024, 06:54
Are we able to truncate text values in Toddle ? I want to limit text from overflowing like shown in the screenshot - Can I configure more than one domain in the application?
TuTo
27 9 months ago
17 Apr 2024, 15:59
My platform is a Saas b2b service and my clients can configure their own domain within the platform . For example , clientAdomain .com , clientBdomain .com , clientCdomain .com . All these domains lead to the same application , but depending on the domain is the information that is displayed to the client . Is it possible to do this ? - Importing existing HTML
perroseo
29 11 months ago
2 Mar 2024, 16:43
Hi ! Playing around with Toddle right now , looks very promising . But is it possible to import an existing HTML page with its CSS and add logic to it through Toddle ? - Streaming from OpenAI into a div?
Bishop
49 11 months ago
29 Feb 2024, 00:48
Wonder if anyone has done that . . . - how self hosting works?
Guilherme Demacchi
9 11 months ago
17 Feb 2024, 14:53
Hey guys , not a toddle dev yet but I 'm researching over nocode platforms that has self hosting capabilities , saw that info on toddle website and got curious about it but there 's not much information about it on the docs . Can someone explain to me how it works , how much does it cost ? - Supabase Many to Many Database Structure
Stockton
86 1 year ago
31 Jan 2024, 19:43
Okay , I want to have the concept of workspaces in my app . 1 workspace can have many users , and 1 user can have many workspaces . I saw the Supabase youtube video on it , but wondering if anyone has done it and can point out any gotcha 's ways to make it better . Particularly around how make the queries efficient and useful . Also , what 's the best way to insert new rows into the many -many table ? Looking for thoughts π Thank you - Login with Discord
SteaL
15 1 year ago
21 Jan 2024, 16:48
Hi , I 'm trying to implement a login with discord option on supabase https://supabase.com/docs/guides/auth/social-login/auth-discord . I have some troubles to implement the login code in toddle : async function signInWithDiscord ( ) { const { data , error } = await supabase .auth .signInWithOAuth ( { provider : 'discord ' , } ) } Did someone already did it ? - Setting up Stripe
Tom Wrench
β 13 1 year ago
6 Nov 2023, 02:11
I 'm starting to dig into the Stripe setup side of things . I 'm wanting to do something a little more custom than the nocode payment links they have available , so I 've been digging into their dev docs a bit . Although I will eventually move the API side of things to go via Comnoco for security reasons , I 'm playing around with them within toddle just to try get something working . First issue - I 'm trying to create a Checkout Session via API ( https://stripe.com/docs/api/checkout/sessions/create ) and whilst it seems to be communicating fine , the line_items appears to be received as a string rather than an array . I 've included screenshots below of both my data setup within the API request and the error from the Stripe logs . Any ideas what I 'm doing wrong here ? - Logout button
Tom Wrench
π28 1 year ago
19 Jul 2023, 07:49
Hi everyone ! Just a quick question on how to get a button to logout a user ? I 'm using Superbase Auth , and thought that simply setting the session cookie to null or blank (instead of containing the token ) would do the trick . However this isn 't the case ! Any tips ? Thanks ! π - Filtering api's data
Julien
β 131 1 year ago
11 Jul 2023, 08:18
Hi guys , I would like to be able to filter data displayed following an API call . I put an input field linked to a variable , but I can 't filter the data . I tried with the filter and match block , but i can 't achev Γ© this What are the best practices for doing this ? Thanks