@progress/kendo-angular-dropdowns
Version:
Dropdowns Package for Angular 2
37 lines (36 loc) • 1.14 kB
TypeScript
import { TemplateRef } from '@angular/core';
/**
* Used for rendering content when there is no data present.
*
* To define the no-data template, nest a `<ng-template>` tag with the `kendo<ComponentName>NoDataTemplate` directive inside the component tag.
*
* You can use:
* - The `kendoAutoCompleteNoDataTemplate` directive for the AutoComplete.
* - The `kendoComboBoxNoDataTemplate` directive for the ComboBox.
* - The `kendoDropDownListNoDataTemplate` directive for the DropDownList.
* - The `kendoMultiSelectNoDataTemplate` directive for the MultiSelect.
*
*
* @example
* ```ts
* _@Component({
* selector: 'my-app',
* template: `
* <kendo-combobox [data]="listItems">
* <ng-template kendoComboBoxNoDataTemplate>
* <h4>No data!</h4>
* </ng-template>
* </kendo-combobox>
* `
* })
* class AppComponent {
* public listItems: Array<string> = [];
* }
* ```
*
* For more examples, refer to the article on [templates]({% slug templates_ddl_kendouiforangular %}).
*/
export declare class NoDataTemplateDirective {
templateRef: TemplateRef<any>;
constructor(templateRef: TemplateRef<any>);
}