Klipfolio Dashboard 5 API

Object TextArea

Object
   |
   +--TextArea

The TextArea object provides an API to an textarea component that enables users to enter multiple lines of text. A TextArea object is very similar to a TextField object, which is a single-line component. Both components support the standard cut/copy/paste operations.

Use myTab.addTextArea() to add a textarea to a tab, where myTab is a Tab object.

Example

The following onLoad() function creates a new tab called 'New Tab', then adds a textarea.
 function onLoad() {
 
     // Create a new tab
     Setup.addTab( "New Tab" );
 
     // Add a textarea to the tab
     Setup[0].addText( "Enter multiple lines of text:" );
     Setup[0].addTextArea();
 }
 
The call to Setup.addTab( "New Tab" ) adds a new Tab object to the Klip's Setup array.

Each Tab object in the Setup array corresponds to a tab in a Klip's Customize window. This window is visible when a user right-clicks on a Klip and chooses the command 'Customize Klip...'

Each Tab object can have multiple UI components, and each Klip can have multiple tabs. Use the Button, Checkbox, ComboBox, ListControl, Spacer, Text, TextArea, and TextField objects in a tab to enable users to configure the Klip to their preferences.


Properties Summary
 boolean disabled
          The enabled (true) or disabled (false) state of this component.
 String value
          The text contained within this component.
   
Function Summary
 function onBlur()
           Specifies a Handler Function for Klipfolio Dashboard to call when the user moves focus away from the textarea.
 function onChange( [<String> text] )
           Specifies a Handler Function for Klipfolio Dashboard to call when the user types a character into the textarea.
 function onFocus()
           Specifies a Handler Function for Klipfolio Dashboard to call when the user places the textarea in focus.

Properties Detail

disabled

boolean disabled

value

String value

Function Detail

onBlur

function onBlur()

onChange

function onChange( [<String> text] )

onFocus

function onFocus()

Klipfolio Dashboard 5 API

© 2009 Klipfolio Inc. All Rights Reserved.