Changes between Version 3 and Version 4 of TutorialAddingNewParameter
- Timestamp:
- Nov 21, 2013, 11:27:21 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TutorialAddingNewParameter
v3 v4 23 23 }}} 24 24 25 2. Invoke ```addParameters()``` in your component constructor.25 2. Invoke ```addParameters()``` **in component constructor**. 26 26 This function returns an object that allows you to add parameters. 27 Then, '''after ```()```''', add parameters:27 Then, **after ```()```**, add parameters: 28 28 29 29 For a ''required'' parameter: add a line like ```("parameter-name", value<!ParameterType>(&variableToSetWithParameterValue)->required(), "parameter description"```. … … 42 42 In the ```<components``` section, modify your component by adding the required and, optionally, the defaulted arguments. 43 43 44 '''Before the modification:''' 44 **Before the modification:** 45 45 {{{#!xml 46 46 <component name="mycomp" type="MyComponent" /> 47 47 }}} 48 48 49 '''After the modification:''' 49 **After the modification:** 50 50 {{{#!xml 51 51 <component name="mycomp" type="MyComponent" integer-value="12345" />