ASP.NET MVC コントロールヘルプ
LayoutItem Class
ファイル
c1.nav.js
モジュール
c1.nav
基本クラス
DisposableObject
派生クラス
Group, Tile
Show
   

Defines the base class for the layoutitem. Now there are two kinds of layoutitems: Tile and Group.

コンストラクタ

プロパティ

メソッド

コンストラクタ

constructor

constructor(opts?: any): LayoutItem

Initializes a new LayoutItem.

パラメーター
戻り値
LayoutItem

プロパティ

hostElement

Gets the outest element which represents this layoutitem.

型
HTMLElement

layout

Gets the layout which owns this item.

型
LayoutBase

parent

Gets the parent which owns this layoutitem.

It could be a Group or a LayoutBase.

型
any

メソッド

addEventListener

addEventListener(target: EventTarget, type: string, fn: any, capture?: boolean): void

このControl が所有する要素にイベントリスナーを追加します。

コントロールは、アタッチされているリスナーとそのハンドラのリストを保持し、コントロールが破棄されているときにそれらを簡単に削除すること ができます(dispose と removeEventListener メソッドを参照してください)。

イベントリスナーを削除しないと、メモリリークが発生する可能があります。

パラメーター
  • target: EventTarget

    Target element for the event.

  • type: string

    String that specifies the event.

  • fn: any

    Function to execute when the event occurs.

  • capture: boolean Optional

    Whether the listener is capturing.

継承元
DisposableObject
戻り値
void

dispose

dispose(fullDispose?: boolean): void

オブジェクトを破棄します。

パラメーター
  • fullDispose: boolean Optional

    A boolean value decides wehter to keep the current status when disposing. If true, all the current status will be cleared. Otherwise, keep the current status.

戻り値
void

draw

draw(): void

Draws the layout item.

Adds the codes to implement the paiting parts.

戻り値
void

initialize

initialize(options: any): void

Initializes the object by copying the properties from a given object.

パラメーター
  • options: any

    Object that contains the initialization data.

戻り値
void

remove

remove(): boolean

Removes the current layoutitem from its parent.

戻り値
boolean

removeEventListener

removeEventListener(target?: EventTarget, type?: string, fn?: any, capture?: boolean): number

このControl が所有する要素にアタッチされている1つまたは複数のイベントリスナーを解除します。

パラメーター
  • target: EventTarget Optional

    Target element for the event. If null, removes listeners attached to all targets.

  • type: string Optional

    String that specifies the event. If null, removes listeners attached to all events.

  • fn: any Optional

    Handler to remove. If null, removes all handlers.

  • capture: boolean Optional

    Whether the listener is capturing. If null, removes capturing and non-capturing listeners.

継承元
DisposableObject
戻り値
number

render

render(container?: HTMLElement): HTMLElement

Renders the layoutitem in the specified container.

パラメーター
  • container: HTMLElement Optional

    the container element where the layoutitem renders in.

戻り値
HTMLElement