クラス IgxExpansionPanelBodyComponent

階層

  • IgxExpansionPanelBodyComponent

コンストラクタ

プロパティ

アクセサー

コンストラクタ

constructor

プロパティ

cdr

cdr: ChangeDetectorRef

element

element: ElementRef

panel

role

role: string = "region"

パネル ボディの role 属性を取得/設定します。 デフォルトは 'region'; 取得

 const currentRole = this.panel.body.role;

設定

 this.panel.body.role = 'content';
 <igx-expansion-panel-body [role]="'custom'"></igx-expansion-panel-body>

アクセサー

label

  • get label(): string
  • set label(val: string): void
  • パネル ボディの aria-label 属性を取得します。 最後の ‘-region' で初期値のパネル id になります。 取得

     const currentLabel = this.panel.body.label;

    返却 string

  • パネル ボディの aria-label 属性を設定します。

     this.panel.body.label = 'my-custom-label';
     <igx-expansion-panel-body [label]="'my-custom-label'"></igx-expansion-panel-body>

    パラメーター

    • val: string

    返却 void

labelledBy

  • get labelledBy(): string
  • set labelledBy(val: string): void
  • パネル ボディの aria-labelledby 属性を取得します。 初期値のパネル ヘッダー id になります。 取得

     const currentLabel = this.panel.body.labelledBy;

    返却 string

  • パネル ボディの aria-labelledby 属性を設定します。

     this.panel.body.labelledBy = 'my-custom-id';
     <igx-expansion-panel-body [labelledBy]="'my-custom-id'"></igx-expansion-panel-body>

    パラメーター

    • val: string

    返却 void