This tag creates an area of the canvas that the user can use to
edit text. It is equivalent to the HTML <input
type="text">
, <input type="password">
,
and textarea
tags.
See the documentation for the <text>
tag for a description of the width
and height
attributes,
and of scrolling.
With the multiline
and
password
attributes set to false
(the default), this tag is similar to the HTML <input
type="text">
tag. In this use, long lines of text are
clipped according to the width
attribute.
Example 26. Simple inputtext
<canvas
height
="50
">
<inputtext
width
="150
">This text is editable.
</inputtext
>
</canvas
>
With the multiline
attribute set to
true
, this tag is similar to the HTML
<textarea>
tag. In this use, text is wrapped to
the length of the width
attribute, and the user
can press Enter to create multiple lines of input.
Example 27. Simple inputtext
<canvas
height
="50
">
<inputtext
width
="150
" multiline
="true
">This text is editable.
</inputtext
>
</canvas
>
With password
set to true
, this
tag is similar to the HTML <input type="password">
tag. Input characters are displayed as the asterisk
('*
') character.
Example 28. Password inputtext
<canvas
height
="20
">
<inputtext
width
="100
" password
="true
">password.
</inputtext
>
</canvas
>
Name (CSS property) | Type (tag) | Type (js) | Default | Category |
---|---|---|---|---|
enabled
|
boolean | Boolean | read/write | |
If true, the inputtext will be editable | ||||
password
|
boolean | Boolean | read/write | |
If true, the inputtext contents will be obscured |
antiAliasType, cdata, direction, gridFit, hscroll, letterspacing, lineheight, maxhscroll, maxlength, maxscroll, multiline, pattern, resize, scroll, scrollevents, scrollheight, scrollwidth, selectable, sharpness, text, textalign, textdecoration, textindent, thickness, xscroll, yscroll
aaactive, aadescription, aaname, aasilent, aatabindex, align, backgroundrepeat, bgcolor, cachebitmap, capabilities, clickable, clickregion, clip, colortransform, context, contextmenu, cornerradius, cursor, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hasdirectionallayout, hassetheight, hassetwidth, height, layout, loadratio, mask, opacity, pixellock, playing, proxyurl, resource, resourceheight, resourcewidth, rotation, shadowangle, shadowblurradius, shadowcolor, shadowdistance, showhandcursor, source, stretches, subviews, tintcolor, totalframes, unstretchedheight, unstretchedwidth, usegetbounds, valign, visibility, visible, width, x, xoffset, xscale, y, yoffset, yscale
classroot, cloneManager, data, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, styleclass, subnodes, transition
Methods
getText() |
---|
This method is deprecated | |
---|---|
Use the text attribute instead |
LzInputText() |
---|
setHTML() |
---|
Parameter Name | Type | Description |
---|---|---|
htmlp | Boolean | If true, the text content is treated as HTML when displayed. |
updateData() |
---|
LzDatapath.updateData()
for more on this.
$lzc$set_hasdirectionallayout, addFormat, addText, clearText, escapeText, format, getAntiAliasType, getGridFit, getSelectionPosition, getSelectionSize, getSharpness, getTextHeight, getTextWidth, getThickness, makeTextLink, setSelection
bringToFront, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getCurrentTime, getDepthList, getDisplayObject, getID3, getMouse, getNextSelection, getPan, getPrevSelection, getProxyURL, getTotalTime, getVolume, init, isBehind, isInFrontOf, isMouseOver, measureHeight, measureWidth, play, proxyurl, searchSubviews, seek, sendAAEvent, sendBehind, sendInFrontOf, sendToBack, setAccessible, setAttributeRelative, setColor, setColorTransform, setPan, setProxyPolicy, setSource, setVolume, shouldYieldFocus, stop, unload, updateResourceSize
animate, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setOption, setSelected, updateData
ondirection, onhscroll, onlineheight, onmaxhscroll, onmaxlength, onmaxscroll, onpattern, onscroll, onscrollevents, onscrollheight, onscrollwidth, onselectable, ontextlink, onxscroll, onyscroll
onaddsubview, onbackgroundrepeat, onblur, onclick, onclickable, onclip, oncontext, oncornerradius, ondblclick, onerror, onfocus, onframe, onframesloadratio, ongesture, onheight, onkeydown, onkeyup, onlastframe, onload, onloadratio, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmousetrackout, onmousetrackover, onmousetrackup, onmouseup, onmouseupoutside, onopacity, onplay, onplaying, onremovesubview, onshadowangle, onshadowblurradius, onshadowcolor, onshadowdistance, onstop, ontimeout, ontouch, onvisible, onwidth, onx, ony
Copyright © 2002-2010 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.