Media Object

Documentation

JavaScript

var $REST = require("gd-sprest-bs");

// Create the media object
var el = document.querySelector("#icon");
var media = $REST.Components.Media({
    el: el,
    icon: {
        icon: $REST.IconTypes.BootstrapReboot,
        className: "mr-3"
    },
    body: [
        "<h5>Media Object Example</h5>",
        "This is an example of a media object."
    ].join('\n')
});

TypeScript

import { Components, IconTypes } from "gd-sprest-bs";

// Create the media object
let el = document.querySelector("#icon");
let media = Components.Media({
    el: el,
    icon: {
        icon: IconTypes.BootstrapReboot,
        className: "mr-3"
    },
    body: [
        "<h5>Media Object Example</h5>",
        "This is an example of a media object."
    ].join('\n')
});