Changes between Version 3 and Version 4 of TutorialAddingNewParameter


Ignore:
Timestamp:
Nov 21, 2013, 11:27:21 AM (11 years ago)
Author:
Marek Kurdej
Comment:

bold

Legend:

Unmodified
Added
Removed
Modified
  • TutorialAddingNewParameter

    v3 v4  
    2323}}}
    2424
    25 2. Invoke ```addParameters()``` in your component constructor.
     252. Invoke ```addParameters()``` **in component constructor**.
    2626This function returns an object that allows you to add parameters.
    27 Then, '''after ```()```''', add parameters:
     27Then, **after ```()```**, add parameters:
    2828
    2929For a ''required'' parameter: add a line like ```("parameter-name", value<!ParameterType>(&variableToSetWithParameterValue)->required(), "parameter description"```.
     
    4242In the ```<components``` section, modify your component by adding the required and, optionally, the defaulted arguments.
    4343
    44 '''Before the modification:'''
     44**Before the modification:**
    4545{{{#!xml
    4646<component name="mycomp" type="MyComponent" />
    4747}}}
    4848
    49 '''After the modification:'''
     49**After the modification:**
    5050{{{#!xml
    5151<component name="mycomp" type="MyComponent" integer-value="12345" />