Help forum
- Approach for unstyled components in Toddle without cluttered component API
Alfred
0 2 months ago
29 Oct 2024, 10:48
Has anyone figured out a solid approach for creating more flexible , style -customizable components ? From my understanding , Toddle 's components wouldn 't fully support an unstyled approach due to Shadow DOM encapsulation . This means the only way to add flexibility is through custom properties (CSS variables ) . However , if I want to recreate Radix UI 's layout box components —which support nearly all CSS property configurations —this would lead to a very cluttered component attribute API . Has anyone found a good approach for achieving and organising this level of styling flexibility in components ? - https://www.radix-ui.com/themes/docs/components/box - https://www.chakra-ui.com/docs/components/box#as-prop - API POST error
MachtigeMaxim
7 2 months ago
28 Oct 2024, 17:28
Hey , so im making a web app and I need to pull data from a POST request . I get an error 500 on that request telling me (AttributeError : 'str ' object has no attribute 'get ' ) It is caused (I think ) because the backend receives the JSON message sent via the POST request as a string instead of a JSON object . This is the body payload : { "question " : "Wat is het wereldnieuws van vandaag ? " } When I do a cURL api request in Postman everything works fine . What could it be ? - Todo tutorial - Bearer access_token showing error
thecandella
1 2 months ago
27 Oct 2024, 04:12
Hi all , I 'm in the final bits of the Todo tutorial . I 'm on the stage where we 're in the HomePage and creating a GET API from the todos database in Xano . I 've installed the toddle chrome extension and I 've opened up the preview app and logged in to store the login details in session cookies . However , when I select "Bearer <access _token > , it still shows me "Unauthorized - Authentication Required " . I 've looked at the API request history on Xano and when doing it in the preview app , the request was successful . Any ideas on what 's going wrong ? - How do I add array inputs to the api query params? Does it have to be comma seperated?
Leon Marseglia
5 2 months ago
25 Oct 2024, 13:03
I 'm trying to create a filter where a user can select multiple options - I 've figured out that the input needs to be an array with join filter which makese sense . But does that mean you can 't pass arrays into xano from toddle ? - Cannot edit database item from Toddle
RakiDawood
0 2 months ago
25 Oct 2024, 02:09
This video explains it - https://www.loom.com/share/123b9fc6aec64189879a7a09a77c07a3 I have used the same api in two toddle workspaces and it seems that I cannot get it to xano . thank you in advance - Blocked Navigation
Hausia
2 2 months ago
25 Oct 2024, 01:11
Hi everyone , does anyone know what could be causing this error ? No gating on the page I 'm trying to send people to . - Add and delete array items
PeterShaw
2 2 months ago
24 Oct 2024, 20:07
Hi all , when clicking on an item in a repeated list I want to add it to an array . By clicking the trash icon it should be removed from the array again . Ideally the array should be limited to 4 items . So it should not be possible to add more than 4 items without removing another one . - Advice/tips for component documentation
Tom Ireland
22 2 months ago
24 Oct 2024, 17:30
Hey , community and toddle-hero 's . I 'm looking for some advice /tips on component documentation . I 'd like to auto -create (as much as can ) documentation on components that I 've created so that I can see what attributes each component expects , what attributes types are e .g . boolean , string , etc . , and capture additional explanatory information . I 've had a couple of ideas but not sure how to implement them yet and if it 'd be a simple approach . @Max - I saw you did this with Spark Pro . Do you have any pointers ? - todo day 3 - update todo input changes/removes task name
SOL
22 2 months ago
24 Oct 2024, 12:12
Hey I 'm trying to complete the 7 day quick start tutorial . Completed most of day 3 except right now I 'm facing this problem where checking off a task marks it as completed but removes the task name from the db in xano . can anyone tell me what I 'm doing wrong here - Responsive images
mix3601
3 2 months ago
24 Oct 2024, 05:27
Does toddle support responsive images ? I mean , do i have to create each version of the image size myself , or can toddle process an image for me ? - Toddle Crashes when getting an item from the supabase Storage
Roco
13 2 months ago
23 Oct 2024, 22:33
Hello , as the title says thank you ! - toddle.dev objects... (Editor only?)
mdxwired
34 2 months ago
23 Oct 2024, 17:22
Hi all . Scenario : I would like to use generative AI (specifically Claude 3 .5 Sonnet ) to quickly lay out my pages based on some highly specific instructions and visual queues from Figma . Question : Do the toddle objects (the underlying structures if you cut from the toddle .dev editor and paste into a notepad ) have to be created first in the editor in order to 'claim ' a unique 'source ' identifier ? . . .or is there a way that I can allow Claude to create new ones outside of toddle and then paste in successfully ? I have already done the 'build in toddle , cut and paste into Claude , have Claude refine , and cut and paste back into toddle ' successfully , but obviously those identifiers already existed . Thoughts ? - How do you stop a button from executing?
mesmoiron
11 2 months ago
23 Oct 2024, 10:03
Hi , I have a variable and if it is empty /reset than some other button should not do the click event . I want to prevent empty items added to the to do list . I have tried the click event or the add item workflow , but in the formula the variable keeps disappearing if I set the first value as an empty string . Depending on my test run , the formula keeps changing , while I try to set the desired logic . - How to make a secure toddle webapp?
Janis
3 2 months ago
22 Oct 2024, 13:27
You may have also seen the indie hacking drama on X regarding security vulnerabilities in ShipFast . That got me thinking what the best practices are to create secure WebApps in toddle with Supabase ? Is there like a checklist or guidelines in terms of what should be considered ? Of course securing the backend and appropriate RLS policies are essential but what about the front end ? - Styling in Toddle
RakiDawood
6 2 months ago
22 Oct 2024, 13:02
Is there video or a playlist where I can learn about styling in toddle ? I am currently struggling to absolute fix a repeated form to the whole page as a popup . This was pretty easy in webflow with its CMS list . Thanks in advance everyone ! https://www.loom.com/share/54e2023f9afa41cca9a60bc3ad8d5f85 - A video explaining the issue