Help forum

  • Alfred

    0

    2 months ago

    Approach for unstyled components in Toddle without cluttered component API
    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
  • MachtigeMaxim

    7

    2 months ago

    API POST error
    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?
  • thecandella

    1

    2 months ago

    Todo tutorial - Bearer access_token showing error
    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?
  • Leon Marseglia

    5

    2 months ago

    How do I add array inputs to the api query params? Does it have to be comma seperated?
    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?
  • RakiDawood

    0

    2 months ago

    Cannot edit database item from Toddle
    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
  • Hausia

    2

    2 months ago

    Blocked Navigation
    Hi everyone, does anyone know what could be causing this error? No gating on the page I'm trying to send people to.
  • PeterShaw

    2

    2 months ago

    Add and delete array items
    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.
  • Tom Ireland

    22

    2 months ago

    Advice/tips for component documentation
    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?
  • SOL

    22

    2 months ago

    todo day 3 - update todo input changes/removes task name
    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
  • mix3601

    3

    2 months ago

    Responsive images
    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?
  • Roco

    13

    2 months ago

    Toddle Crashes when getting an item from the supabase Storage
    Hello, as the title says thank you!
  • mdxwired

    34

    2 months ago

    toddle.dev objects... (Editor only?)
    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?
  • mesmoiron

    11

    2 months ago

    How do you stop a button from executing?
    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.
  • Janis

    3

    2 months ago

    How to make a secure toddle webapp?
    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?
  • RakiDawood

    6

    2 months ago

    Styling in Toddle
    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

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.