Skip to content

Instantly share code, notes, and snippets.

@kerbeh
Last active May 29, 2018 06:35
Show Gist options
  • Save kerbeh/4c39b5d018b4e4f95fdf558412eeb30c to your computer and use it in GitHub Desktop.
Save kerbeh/4c39b5d018b4e4f95fdf558412eeb30c to your computer and use it in GitHub Desktop.
<!-- Tile Starts Here -->
<!-- Wrap each Tile in a padded Div to add spacing -->
<div style="padding:0.5rem;">
<!-- Set img-url to the location of an image and that image will be auto centered in the tile -->
<!-- Add or remove the show-menu attribute to add or remove a menu -->
<d2l-image-tile img-url="/content/enforced/391623-TKS_BL_1/images/1474_Deakin-LAW-5.jpg" show-menu dropdown-aria-label="Tile Options">
<!-- Add any content here to be displayed below the tiles Image. Short Text is recomend but anytype of content is supported -->
<p>Law</p>
<!-- Menu starts here -->
<d2l-menu slot="d2l-image-tile-menu">
<!-- Add one d2l-menu-item-link per link. Set teh HREF as the link address and set text as the Links name -->
<d2l-menu-item-link text="Example Link" href="http://example.com"></d2l-menu-item-link>
</d2l-menu>
<!-- Menu ends here -->
</d2l-image-tile>
</div>
<!-- Tile Ends Here -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment