Community

Help forum

Ask anything. Search answers from the Nordcraft community or start a new discussion on Discord.

  • Tom Ireland

    1

    2 years ago

    Set input on child text node for contenteditable element
    I'm back to working on my RTE again (pure toddle) for my Shipped app project and I'm doing v2. I have created components for each element e.g. h1, p, etc., and the elements have contenteditable set to true.

    On input, I'm getting event > target > textContent to get the content as I type and setting this in a variable in the component. I have the text node set to the variable content.

    On input, this adds content to the text node (in reverse 🙄 ) but it's also adding content in the element as well e.g. <p>Some content<span>Some content</span></p>

    I'd like to just populate the <span> (text node) with content that is input.

    I did figure out a way to do this last year I'm sure but I just cannot figure it out.

    Any pointers?
  • unicodes

    8

    2 years ago

    is toddle good for blog and main website? (SEO orieted)
    I have learned a lot over the past month using Toddle, and it has been fantastic. I have never tried using Toddle for blogs or main website pages. How does a Toddle website / pages rank?

    Thank you!
  • Fisher

    23

    2 years ago

    Scrollend Event?
    Has anyone gotten the scrollend event working? I know my formula works (checked it with a button), but no matter where I put the scrollend Event it doesn't seem to get triggered. I'd love to see an example if someone has one.

    Thanks!
  • TCG.Store

    11

    2 years ago

    JSON response to array
    Has anyone taken a JSON response from auth API and stored the result into an array in toddle? I was trying to see if there are some best practices?
  • Fisher

    0

    2 years ago

    General API Architecture question
    I am working on a marketplace with a number of different query parameters. I currently have it setup so that each time a parameter is changed in any field, the API runs again to get the updated list of items. I have a couple questions with this.

    Is this best practice? Will this overload my API at some point (lets assume this website will be extremely successful someday lol)?
    Would it be better to pull a lot of data and then filter it further with a Show formula or something?

    I am currently only pulling the first 10 records, but will eventually setup pagination and/or load more on scroll, so I won't grab everything at once ever. Total records are going to max at about 3000 with 50 columns, though the API doesn't grab all of the columns ever, really.

    I suppose my question boils down to API call Mass/Volume vs API call Frequency.

    Thanks!
  • Ben H

    ✅1
    2

    2 years ago

    <text> in svg doesn't display
    I copied an SVG that has text in it to toddle (as text not as a path), but the text doesn't display. Anyone know why? I figured out a workaround, overlaying another HTML text container, but just curious about best practice using SVGs with <text> </text> fields.

    Claude generated the SVG for me:
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 40">
    <rect width="100" height="40" rx="20" fill="#F4EEE8" />
    <text x="50" y="27" font-size="24" fill="#3A3238" text-anchor="middle" font-weight="bold">test text!</text>
    </svg>
  • Vizualinx

    8

    2 years ago

    How to implement zoom in & out functionality
    As shown below i want to be able to zoom in and out the canvas.
    I was thinking of binding the scale of the device div to the range slider, but there isn't an option to bind the scale to a variable. i tried to implement it with custom CSS but couldn't get it to work.
    @Andreas Møller maybe how you implemented it in Toddle could help.
    Thanks!
  • Patrick Mast

    ✅1
    1

    2 years ago

    How to synchronize scroll events between two divs.
    I'm working with two divs. When I scroll in one div, can I make the other div scroll as well? Is it possible to capture the scroll event in div1 and apply it to div2 so that div2 scrolls? Additionally, I don't want div1 to scroll at all.
  • Vizualinx

    ✅1
    1

    2 years ago

    bind div size to variable
    How can i bind a div size to a variable?
  • Samuel T

    2

    2 years ago

    Filter in formula
    I'm trying to add a filter somewhere here that will make only items with the status as "paid" be the ones calculated. Still figuring out how formulas work
  • Samuel T

    33

    2 years ago

    Redirects on mobile
    Hi guys, everything works fine on a pc, login, logout redirects
    But on the phone, when I login it just redirects back to login
    I've tried clearing cache and also incognito but nothing worked
  • Patrick Mast

    7

    2 years ago

    How can I get help on a private project?
    I have a project that I'm building in Toddle which cannot yet be revealed. I need some help with DNS settings. How can I get help with that privately? Thanks!
  • Samuel T

    37

    2 years ago

    Zoom in on form
    How do I prevent zooming in on forms when focused?
  • shiva

    0

    2 years ago

    Pagination
    can someone teach me how to create pagination from scratch?
  • Sam B

    9

    2 years ago

    Blocked navigation to a page. What can be the reason?
    I have a log in page, and I use xano as backend. My login works well, it returns what it needs to return.

    I added a switch in the success of form submit event, to navigate to different pages depending on a boolean value. It always seem to throw Blocked navigation.

    And this is my switch. See anything amiss?