Skip to content

Commit 18f3284

Browse files
committed
Initial selection now suppports Array or Object
1 parent d88a987 commit 18f3284

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,16 @@ That list contains a maximum of one elements if the lookup is a single entry loo
122122

123123
### Reference
124124

125-
| Attribute | Type | Description |
126-
| ------------------- | --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
127-
| `label` | `String` | Optional lookup label. Label is hidden if attribute is omitted. |
128-
| `selection` | `[ LookupSearchResult ]` | Lookup initial selection if any.. |
129-
| `placeholder` | `String` | Lookup placeholder text |
130-
| `isMultiEntry` | `Boolean` | Whether the lookup is single (default) or multi entry. |
131-
| `required` | `Boolean` | Whether the lookup is a required field. Note: Property can be set with `<c-lookup required>`. |
132-
| `errors` | `[{ "id": String, "message": String }]` | List of errors that are displayed under the lookup. |
133-
| `scrollAfterNItems` | `Number` | A null or integer value used to force overflow scroll on the result listbox after N number of items. Valid values are null, 5, 7, or 10. Use null to disable overflow scrolling. |
134-
| `customKey` | `String` | Custom key that can be used to identify this lookup when placed in a collection of similar components. |
125+
| Attribute | Type | Description |
126+
| ------------------- | --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
127+
| `label` | `String` | Optional lookup label. Label is hidden if attribute is omitted. |
128+
| `selection` | `[ LookupSearchResult ] | LookupSearchResult` | Lookup initial selection if any. Array for multi-entry lookup or an Object for single entry lookup. |
129+
| `placeholder` | `String` | Lookup placeholder text |
130+
| `isMultiEntry` | `Boolean` | Whether the lookup is single (default) or multi entry. |
131+
| `required` | `Boolean` | Whether the lookup is a required field. Note: Property can be set with `<c-lookup required>`. |
132+
| `errors` | `[{ "id": String, "message": String }]` | List of errors that are displayed under the lookup. |
133+
| `scrollAfterNItems` | `Number` | A null or integer value used to force overflow scroll on the result listbox after N number of items. Valid values are null, 5, 7, or 10. Use null to disable overflow scrolling. |
134+
| `customKey` | `String` | Custom key that can be used to identify this lookup when placed in a collection of similar components. |
135135

136136
| Function | Description |
137137
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |

0 commit comments

Comments
 (0)