@progress/kendo-angular-dropdowns
Version:
Dropdowns Package for Angular 2
50 lines (49 loc) • 1.77 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable:max-line-length */
var core_1 = require("@angular/core");
/**
* Used for rendering the header content of the list.
*
* To define the header template, nest a `<ng-template>` tag with the `kendo<ComponentName>HeaderTemplate` directive inside the component tag.
*
* You can use:
* - The `kendoAutoCompleteHeaderTemplate` directive for the AutoComplete.
* - The `kendoComboBoxHeaderTemplate` directive for the ComboBox.
* - The `kendoDropDownListHeaderTemplate` directive for the DropDownList.
* - The `kendoMultiSelectHeaderTemplate` directive for the MultiSelect.
*
* @example
* ```ts
* _@Component({
* selector: 'my-app',
* template: `
* <kendo-combobox [data]="listItems">
* <ng-template kendoComboBoxHeaderTemplate>
* <h4>Header template</h4>
* </ng-template>
* </kendo-combobox>
* `
* })
* class AppComponent {
* public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
* }
* ```
* For more examples, refer to the article on [templates]({% slug templates_ddl_kendouiforangular %}).
*/
var HeaderTemplateDirective = (function () {
function HeaderTemplateDirective(templateRef) {
this.templateRef = templateRef;
}
return HeaderTemplateDirective;
}());
HeaderTemplateDirective.decorators = [
{ type: core_1.Directive, args: [{
selector: '[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate]'
},] },
];
/** @nocollapse */
HeaderTemplateDirective.ctorParameters = function () { return [
{ type: core_1.TemplateRef, },
]; };
exports.HeaderTemplateDirective = HeaderTemplateDirective;
;