GenerateInputPattern
GenerateInputPattern[myWidget]⟹pattern
returns a pattern that is consistent with myWidget.
GenerateInputPattern[myOptionsList]⟹pattern
returns a pattern for an option that is consistent with myOptionsList.
GenerateInputPattern[myInputsList]⟹pattern
returns a pattern for an input that is consistent with myInputsList.
Details
-
AllowNull The value of AllowNull in the options list needs to match BooleanP. Please reformat your input. InvalidWidget The given widget, `1`, does not match WidgetP. Please reformat your input. MainUnitNotProvidedInUnitsList In the atomic WidgetUnit `1`, the main unit `2` is not contained within the other unit list `3`. Please add this unit to the full list of units. MissingRequiredKey Unable to build a pattern for the given input/options packet or widget, `1`, because a required key is missing. For options, the required keys are {OptionName, Default, AllowNull, Description}. For input, the required keys are {InputName, Description, Widget}. Please include these required keys. For a widget, run ValidWidgetQ.
Input
Output
System Options
Messages
Examples
Basic Examples (5)
Additional Examples (7)
Build a pattern for an alternatives widget:
Build a pattern for an alternatives widget (with labels):
Build a pattern for a tuples widget:
Build a pattern for an enumeration widget:
Build a pattern for a span widget:
Build a pattern for a very nested widget:
Create a pattern for an atomic WidgetUnit: