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
Copy file name to clipboardExpand all lines: components/typeahead/readme.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ export class TypeaheadDirective implements OnInit {
26
26
@Input() public typeaheadSingleWords:boolean=true;
27
27
@Input() public typeaheadWordDelimiters:string='';
28
28
@Input() public typeaheadPhraseDelimiters:string='\'"';
29
+
@Input() public typeaheadItemTemplate:TemplateRef<any>;
29
30
30
31
// not yet implemented
31
32
@Input() private typeaheadAppendToBody:boolean;
@@ -51,6 +52,7 @@ export class TypeaheadDirective implements OnInit {
51
52
-`typeaheadSingleWords` (`?boolean=true`) - break words with spaces. If `true` the text `"exact phrase" here match` would match with `match exact phrase here` but not with `phrase here exact match` (kind of "google style").
52
53
-`typeaheadWordDelimiters` (`?string=" "`) - should be used only in case `typeaheadSingleWords` attribute is `true`. Sets the word delimiter to break words. Defaults to space.
53
54
-`typeaheadPhraseDelimiters` (`?string="'\""`) - should be used only in case `typeaheadSingleWords` attribute is `true`. Sets the word delimiter to match exact phrase. Defaults to simple and double quotes.
55
+
-`typeaheadItemTemplate` (`?TemplateRef`) - used to specify a custom item template. Template variables exposed are called `item` and `index`;
54
56
-`typeaheadAppendToBody` (*not implemented*) (`?boolean=false`) - if `true` the typeahead popup will be appended to $body instead of the parent element
55
57
-`typeaheadEditable` (*not implemented*) (`?boolean=true`) - if `false` restrict model values to the ones selected from the popup only will be provided
56
58
-`typeaheadFocusFirst` (*not implemented*) (`?boolean=true`) - if `false` the first match automatically will not be focused as you type
0 commit comments