Link Field

Documentation

Input Parameters

Name Type Description
className string The class name to apply to the main element.
description string The link description.
el HTMLElement The element to render the link to.
onChange (value: ILinkFieldValue) The change event.
value ILinkFieldValue The link value.
Name Type
Description string
Url string

Interface

Name Type/Description
get() Returns the link element.
getFabricComponent() Returns the fabric component.
getValue() Returns the dropdown selected option(s).

JavaScript

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

// Create the link field
var el = document.querySelector("#link");
$REST.JS.Fabric.({
    el: el
});

TypeScript

import { Fabric } from "gd-sprest-js";

// Create the link field
let el = document.querySelector("#link");
Fabric.({
    el
});