Changes between Version 4 and Version 5 of rp_xml_ele_string


Ignore:
Timestamp:
May 17, 2010, 9:40:28 PM (7 years ago)
Author:
mmc
Comment:

Added information about the new binary mode display

Legend:

Unmodified
Added
Removed
Modified
  • rp_xml_ele_string

    v4 v5  
    3333The {{{<hints>}}} parameter represents a hint for the user, shown below the editing area.
    3434
    35 You can see working code in the [browser:trunk/examples/zoo zoo of example's] in the [browser:trunk/examples/zoo/string string example] or on the hub in the directory /apps/rappture/examples/zoo/string.
     35If binary data is loaded into a string element, it changes to show a binary data icon and information about the data type:
     36
     37[[rpimage(zoo_string3.gif)]]
     38
     39If you expect binary data for a particular string element, you can force the binary display mode by setting the string size to {{{binary}}} as follows:
     40{{{
     41  <string id="tarfile">
     42    <about>
     43      <label>Archive File</label>
     44      <description>Upload a gzipped tar file containing the input data</description>
     45    </about>
     46    <size>binary</size>
     47  </string>
     48}}}
     49
     50You can see working code in the [browser:trunk/examples/zoo zoo of examples] in the [browser:trunk/examples/zoo/string string example] directory, or on the hub in the directory /apps/rappture/examples/zoo/string.  There's also an example of [browser:trunk/examples/zoo/binary handling binary data].