1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved How do I add an image to a Button?

Discussion in 'Development' started by Minetron26, Oct 14, 2018.

  1. Minetron26

    Minetron26 Witch

    Messages:
    55
    GitHub:
    minetron26
    Hello, I have seen that some forms have images on their buttons, how can I add an image to a button with FormAPI?
     
  2. DaPigGuy

    DaPigGuy Slime

    Messages:
    86
    GitHub:
    DaPigGuy
    PHP:
    $form->addButton("DaPigGuy"SimpleForm::IMAGE_TYPE_URL"https://avatars3.githubusercontent.com/u/8540562?s=400&u=6a21505b092244f64b0830b308f058f733dd7403&v=4");
     
  3. Minetron26

    Minetron26 Witch

    Messages:
    55
    GitHub:
    minetron26
    Thank you!
     
    Last edited: Oct 15, 2018
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.