本文整理匯總了TypeScript中@angular/core.Input函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript Input函數的具體用法?TypeScript Input怎麽用?TypeScript Input使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Input函數的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: materializeDropdownStream
@Input() set materializeDropdownStream(stream$:Observable<any>) {
this.stream$ = stream$;
}
示例2: isOpen
/**
* Returns whether or not the popover is currently being shown
*/
@Input()
public get isOpen(): boolean { return this._popover.isShown; }
示例3: nzLabel
/** group 的 label,支持 'string' 和 `TemplateRef` */
@Input()
set nzLabel(value: string | TemplateRef<void>) {
this.isLabelString = !(value instanceof TemplateRef);
this._label = value;
}
示例4: isActive
@HostBinding("class.active")
@Input()
public get isActive():boolean {
return this._isActive;
}
示例5: loadingProp
@Input("waitingFor")
set loadingProp(prop: string) {
this._loadingProp = prop
}
示例6: content
@Input() set content(content: string){
const parsed = marked.parse(content.trim());
this.contentPlaceholder.nativeElement.innerHTML = parsed;
}
示例7: placeholder
@Input()
public get placeholder():string {
return this._placeholder || this.localeValues.single.placeholder;
}
示例8: matAutosize
@Input('mat-autosize')
get matAutosize(): boolean { return this.enabled; }
示例9: matTextareaAutosize
@Input()
get matTextareaAutosize(): boolean { return this.enabled; }
示例10: matAutosizeMinRows
@Input()
get matAutosizeMinRows(): number { return this.minRows; }