User:Jcreer/SMS:DMI Table Elements: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
(Created page with "=====Element ''< table >''===== {|class="wikitable" |- |width="70"|'''Info''' |width="530"| Table widget with columns and rows. Will most likely have multiple column and row...")
 
No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOINDEX__
{{TOCright}}
==Elements==
=====Element ''<column>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Definition of the column in the table.  A widget defined in a column will be the widget used for each cell in the column.
|-
|'''Versions'''
|1, 2
|-
|'''Attributes'''
|none
|-
|'''Children'''
|width="530"|[[SMS:Dynamic Model Interface Schema#Element <text>|text]], read_only, [[SMS:Dynamic Model Interface Schema#Element <optional>|optional]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], all elements starting with “custom_control”, [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]]
|-
|'''Used by'''
| [[SMS:Dynamic Model Interface Schema#Element < table >|table]]
|-
|'''Example'''
|width="530"|Column1 is read only, Column 2 isn’t read only and is also optional.  This means the column can have empty fields and a warning message won’t be displayed.
< table >
    <column>                 
      <text>Column1</text>
      <read_only></read_only>
  </ column >
  < column >                     
      <text>Column2</text>
      <optional></optional>
    </ column >
</ table >
|}
=====Element ''<row>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"| Typically a user would only use row if there is a fixed table and wanting to display row text or to specify specific rows as read only.  Row tags are placed inside a [[SMS:Dynamic Model Interface Schema#Element < table >|< table >]]. 
|-
|'''Versions'''
| 1, 2
|-
|'''Attributes'''
|none
|-
|'''Children'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <text>|text]], read_only, [[SMS:Dynamic Model Interface Schema#Element <optional>|optional]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], all elements starting with “custom_control”, [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
|-
|'''Used by'''
| width="530"| [[SMS:Dynamic Model Interface Schema#Element < table >|table]]
|-
|'''Example '''
|width="530"|Row 1 is read only, row 2 isn’t
< table >
    <row>                     
        <text>Row1</text>
        <read_only></read_only>
    </row>
    <row>                     
        <text>Row2</text>
    </row>
</ table >
|}
=====Element ''< table >''=====
=====Element ''< table >''=====
{|class="wikitable"
{|class="wikitable"
Line 31: Line 100:
  </ table >
  </ table >
|}
|}
==Attributes==
=====Attributes ''<fixed_row_count>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Used to set a fixed number of rows in a table.  The insert and delete button automatically become disabled
|-
|'''Values'''
| integer
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| table
|}
=====Attributes ''<max_row_count>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Used to set the maximum number of rows allowed in a table or curve.
|-
|'''Values'''
| integer
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| table, control_curve
|}
=====Attributes ''<min_height>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Used to set the minimum display  height of a table.
|-
|'''Values'''
| integer (pixels)
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| table
|}
=====Attributes ''<min_row_count>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Used to set the maximum number of rows allowed in a table.
|-
|'''Values'''
| integer
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| table
|}
=====Attributes ''<read_only>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Specifies that a column or row should be read only when this attribute is used
|-
|'''Values'''
| nonr
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| row, column, table
|}
{{Navbox SMS}}
[[Category:Jcreer|DMI]]

Latest revision as of 16:14, 4 March 2019


Elements

Element <column>
Info Definition of the column in the table. A widget defined in a column will be the widget used for each cell in the column.
Versions 1, 2
Attributes none
Children text, read_only, optional, dependency, text_box, combo_box, edit_box, all elements starting with “custom_control”, check_box
Used by table
Example Column1 is read only, Column 2 isn’t read only and is also optional. This means the column can have empty fields and a warning message won’t be displayed.
< table >
	…
   <column>                   	
      <text>Column1</text>
      <read_only></read_only>
  </ column >
  < column >                      	
      <text>Column2</text>
      <optional></optional>
   </ column >
</ table >
Element <row>
Info Typically a user would only use row if there is a fixed table and wanting to display row text or to specify specific rows as read only. Row tags are placed inside a < table >.
Versions 1, 2
Attributes none
Children text, read_only, optional, dependency, text_box, combo_box, edit_box, all elements starting with “custom_control”, check_box, text_style
Used by table
Example Row 1 is read only, row 2 isn’t
< table >
	…
    <row>                      	
       <text>Row1</text>
       <read_only></read_only>
    </row>
    <row>                      	
       <text>Row2</text>
    </row>
</ table >
Element < table >
Info Table widget with columns and rows. Will most likely have multiple column and row tags.
Versions 1, 2
Attributes none
Children read_only, column, row, dependency, unique_name, text_style
Used by item
Example Read only table with 2 columns and 3 rows. The number of rows are fixed.
< table >
    <unique_name>myTable </unique_name> 
    <read_only></read_only>                	
    <fixed_row_count>3</fixed_row_count>
    <column>
       <text>hours</text>
    </column>
    <column>
        <text>minutes</text>
    </column>
</ table >

Attributes

Attributes <fixed_row_count>
Info Used to set a fixed number of rows in a table. The insert and delete button automatically become disabled
Values integer
Versions 3
Used by table
Attributes <max_row_count>
Info Used to set the maximum number of rows allowed in a table or curve.
Values integer
Versions 3
Used by table, control_curve
Attributes <min_height>
Info Used to set the minimum display height of a table.
Values integer (pixels)
Versions 3
Used by table
Attributes <min_row_count>
Info Used to set the maximum number of rows allowed in a table.
Values integer
Versions 3
Used by table
Attributes <read_only>
Info Specifies that a column or row should be read only when this attribute is used
Values nonr
Versions 2
Used by row, column, table