Articles in this section
Category / Section

How to render mobile button with image only option?

1 min read

To render an image only button in Mobile JavaScript, add contentType property as image and provide with imageClass property that holds the class name to render image for the particular button.

Refer to the following code example for rendering a button with image only option.

HTML

<input id="button11" type="button" data-role="ejmbutton" data-ej-contenttype="image" data-ej-imageclass="play" />

Refer to the following code example for defining style for the play class set to the imageClass property.

Style

 .play

  {

     background-image: url("themes/Play_Black.png");

  }

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied