Main Content
setInputParametersLayoutGrid
Specify layout grid for input parameters
Syntax
setInputParametersLayoutGrid(check_obj, [row col])
Description
setInputParametersLayoutGrid(check_obj, [row col])
specifies
the layout grid for input parameters in the Model Advisor. Use the setInputParametersLayoutGrid
method
when there are multiple input parameters.
Input Arguments
check_obj | Instantiation of the ModelAdvisor.Check class |
row | Number of rows in the layout grid |
col | Number of columns in the layout grid |
Examples
The following example is a fragment of code from a check definition function. The example does not execute as shown without the full check definition function.
rec = ModelAdvisor.Check('com.mathworks.sample.Check1'); rec.setInputParametersLayoutGrid([3 2]); % define input parameters inputParam1 = ModelAdvisor.InputParameter; inputParam1.Name = 'Skip font checks.'; inputParam1.Type = 'Bool'; inputParam1.Value = false; inputParam1.Description = 'sample tooltip'; inputParam1.setRowSpan([1 1]); inputParam1.setColSpan([1 1]); inputParam2 = ModelAdvisor.InputParameter; inputParam2.Name = 'Standard font size'; inputParam2.Value='12'; inputParam2.Type='String'; inputParam2.Description='sample tooltip'; inputParam2.setRowSpan([2 2]); inputParam2.setColSpan([1 1]); inputParam3 = ModelAdvisor.InputParameter; inputParam3.Name='Valid font'; inputParam3.Type='Combobox'; inputParam3.Description='sample tooltip'; inputParam3.Entries={'Arial', 'Arial Black'}; inputParam3.setRowSpan([2 2]); inputParam3.setColSpan([2 2]); rec.setInputParameters({inputParam1,inputParam2,inputParam3});