You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`mode`| Set the UI style for this field. Can be one of 'default' (Stack Selector), 'select' (Select Dropdown) or 'typeahead' (Typeahead Field). |
52
-
|`resource`| Specify the Runway Resource to be used for this field. |
53
-
|`relationship_name`| The name of the Eloquent Relationship this field should use. When left empty, Runway will attempt to guess it based on the field's handle. |
54
-
|`create`| By default you may create new models. Set to `false` to only allow selecting from existing models. |
55
-
|`with`| Specify any relationships you want to be eager loaded when this field is augmented. This option accepts an array of relationships. |
56
-
|`title_format`| Configure the title format used for displaying results in the fieldtype. You can use Antlers to pull in model data. |
|`mode`| Set the UI style for this field. Can be one of 'default' (Stack Selector), 'select' (Select Dropdown) or 'typeahead' (Typeahead Field). |
52
+
|`resource`| Specify the Runway Resource to be used for this field. |
53
+
|`relationship_name`| The name of the Eloquent Relationship this field should use. When left empty, Runway will attempt to guess it based on the field's handle. |
54
+
|`create`| By default you may create new models. Set to `false` to only allow selecting from existing models. |
55
+
|`with`| Specify any relationships you want to be eager loaded when this field is augmented. This option accepts an array of relationships. |
56
+
|`title_format`| Configure the title format used for displaying results in the fieldtype. You can use Antlers to pull in model data. |
57
+
|`query-scopes`| Allows you to specify a [query scope](https://statamic.dev/extending/query-scopes-and-filters#scopes) which should be applied when retrieving selectable models. You should specify the query scope's handle, which is usually the name of the class in snake case. For example: `MyAwesomeScope` would be `my_awesome_scope`. |
57
58
58
59
## Has Many
59
60
@@ -101,16 +102,18 @@ Loop through the models and do anything you want with the data.
|`mode`| Set the UI style for this field. Can be one of 'default' (Stack Selector), 'select' (Select Dropdown) or 'typeahead' (Typeahead Field). |
107
-
|`resource`| Specify the Runway Resource to be used for this field. |
108
-
|`relationship_name`| The name of the Eloquent Relationship this field should use. When left empty, Runway will attempt to guess it based on the field's handle. |
109
-
|`create`| By default you may create new models. Set to `false` to only allow selecting from existing models. |
110
-
|`with`| Specify any relationships you want to be eager loaded when this field is augmented. This option accepts an array of relationships. |
111
-
|`title_format`| Configure the title format used for displaying results in the fieldtype. You can use Antlers to pull in model data. |
112
-
|`reorderable`| Determines whether the models can be reordered. Defaults to `false`. |
113
-
|`order_column`| When reordering is enabled, this determines which column should be used for storing the sort order. When the relationship uses a pivot table, the order column must exist on the pivot table. |
|`mode`| Set the UI style for this field. Can be one of 'default' (Stack Selector), 'select' (Select Dropdown) or 'typeahead' (Typeahead Field). |
108
+
|`resource`| Specify the Runway Resource to be used for this field. |
109
+
|`relationship_name`| The name of the Eloquent Relationship this field should use. When left empty, Runway will attempt to guess it based on the field's handle. |
110
+
|`create`| By default you may create new models. Set to `false` to only allow selecting from existing models. |
111
+
|`with`| Specify any relationships you want to be eager loaded when this field is augmented. This option accepts an array of relationships. |
112
+
|`title_format`| Configure the title format used for displaying results in the fieldtype. You can use Antlers to pull in model data. |
113
+
|`reorderable`| Determines whether the models can be reordered. Defaults to `false`. |
114
+
|`order_column`| When reordering is enabled, this determines which column should be used for storing the sort order. When the relationship uses a pivot table, the order column must exist on the pivot table. |
115
+
|`query-scopes`| Allows you to specify a [query scope](https://statamic.dev/extending/query-scopes-and-filters#scopes) which should be applied when retrieving selectable models. You should specify the query scope's handle, which is usually the name of the class in snake case. For example: `MyAwesomeScope` would be `my_awesome_scope`. |
0 commit comments