Contact Support
Text Configuration
19 Apr 20171 minute to read
The “data-ej-showText” attribute is used to show or hide the Tile caption. By default, the “data-ej-showText” attribute is to true on initialization. The “data-ej-text” attribute is used to set the caption of a Tile as a Text on initialization. The “data-ej-textAlignment” attribute is used to align the Tile text as normal on initialization. The possible position values for “data-ej-textAlignment” are as follows:
- normal
- left
- right
- center
Refer to the following code examples.
<div id="tile"></div>
Add the following code inside the script tag.
$("#tile").ejTile({ tileSize: "medium", imagePosition: "center", textAlignment: "center", imageUrl: "http://js.syncfusion.com/UG/web/Content/tile/camera.png", text: "Camera" });