getControlSkins()

Pixelsilk API function to get the skins for a control--requires the advanced-admin-access permission
Parameters:
controlId: the unique identifier of the control

Output:
The function getControlSkins returns an object containing the skins and related information

C# Example:
Guid controlId = <control's id>;
object controlSkins = GetControlSkins(controlId);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/getControlSkins HTTP/1.1
HOST: www.example.com
Content-Length: 123
Content-Type: application/x-www-form-urlencoded
Cookie: auth=6B3D0F923FD1...2E613AEA1E25

Request Data:
Unencoded Data:
json={
   "controlId":"d83198a3-1e97-4d4c-b9d6-3b78d4649f43"
}&token=7AdbNHZQBtwc...RPTEK8UvSUQ=

Url-encoded Data:
json=%7b%0d%0a+++...%22%0d%0a%7d&token=7AdbNHZQBtwc...TEK8UvSUQ%3d

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=436149495091...0167BE5A6FA; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 252

Response Data:
{"id":"8e6ff0c3-8924-4196-b019-1265ff0370ae", "content":"\n","viewItem":"","alternatingItem":"", "addEditItem":"","itemDetail":"","firstItem":"", "separator":"","lastItem":"","activeItem":"", "isSectionSkin":false,"sectionId":null,"typeId":null}

JavaScript Example:
Method Call:
pixelsilk2.getControlSkins(input, callback)

Input Object:
{
    controlId:"70de7e42-b90f-4de0-bdc1-5c3ae4b8cbe1"
}

Returned Data:
{
    "id":"c00b92c7-0cd5-43b1-8df1-060ab80416d9",
    "content":"<div class='clear'>
        <a href=''>Add Item</a></div>",
    "viewItem":"",
    "alternatingItem":"",
    "addEditItem":"",
    "itemDetail":"",
    "firstItem":"",
    "separator":"",
    "lastItem":"",
    "activeItem":"",
    "isSectionSkin":false,
    "sectionId":null,
    "typeId":null
}

Back to Controls »