2017-02-08 16 views
1

コンテナのサイズ変更時に剣道グリッドの高さを変更する必要があるケースがたくさんあります。 私はnpmパッケージで見ました:@ progress/kendo-angular-resize-sensor しかし、私は実際にはどのドキュメントも公開されていません。kendo-angular-resize-sensorに関するドキュメント

今後利用できますか? はいの場合は?

ありがとうございました。

答えて

0

最優先事項は、グリッドを「デフォルトで」応答させることです。これには、列の自動サイズ変更と最小幅の設定が含まれます。

これらの機能の代わりにfollowing snippetを手動で使用することができます。

@Component({ 
    template: ` 
    <kendo-grid 
     [height]="gridHeight"> 
     ... 
    </kendo-grid> 
    <!-- An internal component that will soon go public --> 
    <kendo-resize-sensor (resize)="resize()"></kendo-resize-sensor> 
    ` 
}) 
export class AppComponent { 
    public gridHeight: number = 300; 

    public resize(): void { 
     // The Grid height is actually applied to the content area, not as total 
     // This is **a bug** that will be fixed soon. 
     this.gridHeight = this.elementRef.nativeElement.offsetHeight - 100; 
    } 

    ... 
} 

我々は、実装の詳細としてリサイズセンサーを維持するために望んでいました。それでも、クライアントアプリケーションで使用する可能性があります。我々は今後数週間でそれについてのドキュメントを追加します。

関連する問題