Widget Core Function
UI Experience: Dropdown list for the userData Organization: Allows engineers to create selection tables directly within the calculator builder without external file dependencies.
Key Features
- Create custom selection tables directly in the builder
- Store and access the row index of selected items
- Access entire rows of data once a user makes a selection
- Support for radio button display as an alternative to dropdowns
- Mix of numbers and strings in data tables
Video Tutorial
Create a Data Table Example
Watch Tutorial
Learn how to create and configure data table lookups step by step
Visual Presentation

Configuration
Example Code
Configuration Parameters
Set to “lookup” to define the widget type
Whether or not to enable the autosize function on the lookup. Will only work if the table has preferred sections (not currently possible without sharedTables)
If
true, the lookup widget will display as a set of radio buttons instead of as a dropdown listLookup Column Object - The column labels and properties for the lookup to display
The data to be displayed in the lookup, which may be a mix of numbers and strings. Index 0 will always be displayed in the dropdown itself.
Data Column Structure
Each column in thedataColumns array should follow this structure:
Column Properties
The display name for the column header
The internal key used to reference this column’s data
The data type for this column: “string”, “number”, or “boolean”
Data Table Structure
ThedataTable is a matrix where:
- Each row represents one option in the lookup
- Each column corresponds to the columns defined in
dataColumns - Index 0 (first column) is always displayed in the dropdown
- Data can be a mix of numbers, strings, and booleans
Example Data Table
Display Options
Dropdown Display (Default)
The standard dropdown interface where users select from a list of options.Radio Button Display
SetradioListDisplay: true to display options as radio buttons instead of a dropdown. This is useful when:
- You have a small number of options (typically 2-5)
- You want all options visible at once
- The selection is a key decision point in the calculation
Examples from Current Calculators
| Reference ID | Calculator Link |
|---|---|
| lookup (k_4) | Steel Beam Calculator |
Best Practices
- Column Design: Keep the first column (index 0) as the primary identifier that users will see in the dropdown
- Data Organization: Organize your data logically with the most commonly used options first
- Mixed Data Types: Take advantage of the ability to mix strings and numbers in the same table
- Radio vs Dropdown: Use radio buttons for 2-5 options, dropdowns for more options
- Clear Labels: Use descriptive column labels that clearly indicate what each column represents
- Default Selection: Set appropriate default values using row indices (starting from 0)
Accessing Selected Data
Once a user makes a selection, you can access:- The selected row index using the widget’s
referenceId - Specific column values using lookup functions in equation widgets
- The entire row data for complex calculations