Klipfolio Dashboard 5 API

Object Item

Object
   |
   +--Item

The Item object is the direct API to access the properties of individual item contained within the Items object or Items.Deleted object.


Properties Summary
 boolean alerting
          Specifies whether this item is highlighted and causing the Klip to alert.
 boolean autoremove
          Specifies whether the item may be removed automatically due to the user's Klipfolio Dashboard preferences setting for Auto Remove (default true).
 boolean candelete
          Specifies whether this item can be deleted by a user.
 boolean canpurge
          Specifies whether this item can be purged after an Klip.onRefresh() has completed.
 boolean canvisit
          Specifies whether this item becomes visited when a user clicks on it (or dismisses all items in the Klip).
 double creation
          Specifies UNIX Epoch timestamp (in seconds) of when the item was created.
 String getDataCount
          Returns the number of data elements for iteration or index access using Item.getData().
 boolean hidden
          Specifies whether this item is hidden (not visible) to the user.
 double lastmodified
          Specifies UNIX Epoch timestamp (in seconds) of when the item was last modified.
 boolean recent
          Returns true if this item was added/modified during the last refresh.
 boolean visited
          Specifies whether this item appears visited (dimmed).
   
Function Summary
 array actions( text1, function1[, text2, function2, text3, function3, ...])
           Adds a custom menu option(s) above "Copy" in the menu that appears when the user right-clicks on individual items in a Klip.
 function getData( name [, <integer> n] | <integer> index )
           Gets the data element of an Item.
 function hasData( <String> property )
           Returns true if the property exists in the Item and has data.
 function onClick( [<integer> index] )
           Specifies a Handler Function to call when the user clicks on this item.
 function onDelete( [<integer> index] )
           Specifies a Handler Function to call when the user attempts to delete this item.
 function setData( <String> name, <String> value [, <integer> n] | <integer> index, <String> value1 )
           Sets a data element an Item.

Properties Detail

alerting

boolean alerting

autoremove

boolean autoremove

candelete

boolean candelete

canpurge

boolean canpurge

canvisit

boolean canvisit

creation

double creation

getDataCount

String getDataCount

hidden

boolean hidden

lastmodified

double lastmodified

recent

boolean recent

visited

boolean visited

Function Detail

actions

array actions( text1, function1[, text2, function2, text3, function3, ...])

getData

function getData( name [, <integer> n] | <integer> index )

hasData

function hasData( <String> property )

onClick

function onClick( [<integer> index] )

onDelete

function onDelete( [<integer> index] )

setData

function setData( <String> name, <String> value [, <integer> n] | <integer> index, <String> value1 )

Klipfolio Dashboard 5 API

© 2009 Klipfolio Inc. All Rights Reserved.