Module view.fields.object_type_field
ObjectTypeField module.
Class ObjectTypeField
ObjectTypeField:ObjectField (opts) | ObjectTypeField constructor. |
Class ObjectTypeField
ObjectTypeField class. Used to represent object types (UnitTypeField and FeatureTypeField).- ObjectTypeField:ObjectField (opts)
-
ObjectTypeField constructor.
It's possible to use this directly, by specifying the bridge parameter.
Alternatively, there are: UnitTypeField and FeatureTypeField classes.
Parameters:
- opts Table
- title string Title.
- bridge Object bridge.
See also:
Usage:
-- using the bridge parameter ObjectTypeField({ name = "myUnitTypeField", bridge = unitBridge, title = "My unit type", }) -- Using the generated field class FeatureTypeField({ name = "myFeatureTypeField", title = "My feature type", })
- opts Table