Help forum

how do I change colour of this checkbox element ?

  • shiva

    2 years ago

    1281598764645224541-image.png
  • Neville

    2 years ago

    do you mean the colour of the checkbox itself? currently blue?
  • Tod

    2 years ago

    Great energy @Neville! Your continuous contribution to the toddle Community just made you advance to Community Level 4!
  • Lucas G

    2 years ago

    You can do it with CSS though last I checked, it’s limited in Safari
  • So the common route is to hide the checkbox and make a custom one
  • shiva

    2 years ago

    Yes, but I cant access the css - I got the checkbox from a package
  • shiva

    2 years ago

    @Tom Ireland can you help here please?
  • Tom Ireland

    2 years ago

    I'd agree with Lucas tbh. Also, if it's from a package, it depends on what has been made available in the package out of the box as to what you can do. Otherwise, you'd need to clone it. Looking at the screenshot, it looks like it's from the 'syncdeskui' package and it doesn't look like there's any styling options for that as attributes, so you'd be probably better off creating your own and work off that as an example.
  • shiva

    2 years ago

    how do I create a checkbox though
  • I am clueless here
  • Tom Ireland

    2 years ago

    You need to add an input field and choose the type Checkbox from the 'Attribute' tab.
  • shiva

    2 years ago

    but I still cant style it because it doesnt show the checked state when I change the state
  • Tom Ireland

    2 years ago

    Hey, Shiva. Are you able to share a short screencast? It would be good to see how you’ve set it up so we can better support you.
  • shiva

    2 years ago

    1281935184463138847-image.png
  • @shiva

    Armand

    2 years ago

    Are you feeding through the data to the class in the attribute tab of the element?
    In other words, you either have the data for each row (and whether they are checked or not) in an attribute or coming from an API. Based on that it will activate the style (as far as I know this should always be a True/False output in the formula).

    See in my images:
    1281944750731300924-Screenshot_2567-09-07_at_18.47.29.png
    1281944751071035463-Screenshot_2567-09-07_at_18.50.01.png
    1281944750441627741-Screenshot_2567-09-07_at_18.47.36.png
  • shiva

    2 years ago

    but it should show the state atleast first,, it doesnt show the state at all
  • Tod

    2 years ago

    Great energy @Yaniv Tsoref! Your continuous contribution to the toddle Community just made you advance to Community Level 2!