...
Note |
---|
This page is intended to help illustrate how a Type/Definition interaction looks, in order to aid with the writing and maintaining of new WidgetDefinitions forĀ any WidgetType. If you're looking for specific documentation on the fields available to you in the SimpleSearch type, or how widgets of this type look/work, refer instead to this page. |
WidgetType
This is going to dig a bit deeper into the type JSON for SimpleSearch. The WidgetType is quite large, so the following explanation is broken down into component sections which describe what they do and how they can be used to define a WidgetDefinition which conforms to this Type.
...
Code Block |
---|
["String", "Integer", "Float", "Boolean", "Date", "Link"] |
Notice for example that the valueType for agreementStatus is "String", whereas later on the same path is described as an "Enum". The filters are described in more detail below, but it is important to note that a valueType String means that the resulting field will be displayed as simple text in the resulting table.
Likewise "Boolean" and "Date" types are used to drive display of either a FormattedUTCDate, or a tick/cross for true/false., and "Link" is used to attempt to generate
These columns are then used to populate a component which offers the ability to pick one or several of these to form the columns for our display table in the output. The label will be the default label displayed for that column, although this can be overwritten.
...