XForms Tutorial > I-6.2.6. The textarea Element

xforms:textarea Element
 
이 폼 컨트롤은 한 라인이 아니라 멀티 라인에 걸쳐 텍스트를 적을 수 있는 공간을 만드는 HTML 의 <textarea>와 유사한 유저인터페이스를 제공한다. 일반적으로 메일의 내용이나 게시판 등처럼 특정 내용을 기술하고자 할 때 많이 사용되는 컨트롤이다. 이 컨트롤이 사이즈, 즉 HTML cols/rows처럼 사이즈를 지정하고자 할 경우에는 Style-sheet의 width/height 통해서 지정해야 한다.
Common Attributes : Common, UI Common, Single Node Binding
Special Attributes : inputmode, incremental
  • Data Binding Restrictions
  • Binds to xsd:string or any derived simpleContent
Sample.
…(생략)...
<xforms:model id="mymodel">
 <xforms:instance id="request_01">
  <root xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <node1></node1>
  </root>
 </xforms:instance>
 <xforms:instance id="response_01">
  <root xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></root>
 </xforms:instance>
</xforms:model>

<body>
 <xforms:textarea model="mymodel" ref="instance('request_01')/node1" style="position:absolute; top:50px; left:38px; height:67px; width:455px; "></xforms:textarea>
</body>
...(생략)...
  • ref attribute를 통해 입력된 데이터가 instance('request_01')/node1에 Single-node Binding.

댓글 없음: