PricingBlog

Classes use

  • rscott-1210101899005665361

    Bishop

    2 years ago

    In Toddle are classes mostly just used for CSS purposes?
  • lucasg-1210104184318337034

    Lucas G

    2 years ago

    They are purely for styling elements
  • Though they don’t function exactly like in other builders where they are reusable. You’d use a stylesheet if you wanted to go that route
  • lucasg-1210104696518352896

    Lucas G

    2 years ago

    Technically they can be used in a JS function as a querySelector type of thing but yeah, they’re for styling
  • nocode.lad-1210146705832411197

    noCode.Lad

    2 years ago

    Classes work in JS selectors? I always just used to set the attributes (Id, class) and then get the element that way
  • lucasg-1210221697991442483

    Lucas G

    2 years ago

    Get element by ID uses an ID set by attribute but query selector targets anything with the class added to it and toddle classes work for this without issue 👍 they’re almost like regular classes the only difference is the reusable aspect. They style the element they are applied to only
    1