@progress/kendo-angular-dropdowns
Version:
Dropdowns Package for Angular 2
52 lines (51 loc) • 1.78 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable:max-line-length */
var core_1 = require("@angular/core");
/**
* Used for rendering the footer content of the list.
*
* To define the footer template, nest a `<ng-template>` tag with the `kendo<ComponentName>FooterTemplate` directive inside the component tag.
*
* You can use:
* - The `kendoAutoCompleteFooterTemplate` directive for the AutoComplete.
* - The `kendoComboBoxFooterTemplate` directive for the ComboBox.
* - The `kendoDropDownListFooterTemplate` directive for the DropDownList.
* - The `kendoMultiSelectFooterTemplate` directive for the MultiSelect.
*
*
* @example
* ```ts
* _@Component({
* selector: 'my-app',
* template: `
* <kendo-combobox [data]="listItems">
* <ng-template kendoComboBoxFooterTemplate>
* <h4>Footer 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 FooterTemplateDirective = (function () {
function FooterTemplateDirective(templateRef) {
this.templateRef = templateRef;
}
return FooterTemplateDirective;
}());
FooterTemplateDirective.decorators = [
{ type: core_1.Directive, args: [{
selector: '[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate]'
},] },
];
/** @nocollapse */
FooterTemplateDirective.ctorParameters = function () { return [
{ type: core_1.TemplateRef, },
]; };
exports.FooterTemplateDirective = FooterTemplateDirective;
;