ASP.NET MVC コントロールヘルプ
DetailDialog Class
ファイル
wijmo.olap.js
モジュール
wijmo.olap
基本クラス
Popup
Show
   

グリッドセルの詳細の表示に使用されるダイアログを表します。

コンストラクタ

プロパティ

メソッド

イベント

コンストラクタ

constructor

constructor(element: any, options?: any): DetailDialog

Initializes a new instance of the DetailDialog class.

パラメーター
戻り値
DetailDialog

プロパティ

cellHeader

Gets the cell header for the value being shown.

This information is updated before the dialog is shown and is displayed above the detail grid.

string

cellValue

Gets the formatted cell value for the value being shown.

This information is updated before the dialog is shown and is displayed above the detail grid.

string

columnHeader

Gets the column header for the value being shown.

This information is updated before the dialog is shown and is displayed above the detail grid.

string

content

このPopup に含まれるHTML要素を取得または設定します。

継承元
Popup
HTMLElement

Static controlTemplate

PivotFieldEditorコントロールのインスタンス化に使用されるテンプレートを取得または設定します。

any

detailCount

Gets the number of items shown in the detail dialog.

This information is updated before the dialog is shown and is in the dialog header.

number

dialogResult

Gets or sets a value used as a return value for the Popup after it is hidden.

Popup を非表示にした後に、そのコンテンツを処理するために使用できる値を取得または設定します。

It can be set in response to button click events or in the call to the hide method to provide a result value to callers.

継承元
Popup
any

dialogResultEnter

Popup 表示中にユーザーが[Enter]キーを押したときにdialogResult として使用される値を取得または設定します。

このプロパティのデフォルト値は**null**です。

If the user presses Enter and the dialogResultEnter property is not **null**, the popup checks whether all its child elements are in a valid state. If so, the popup is closed and the dialogResult property is set to the value of the dialogResultEnter property.

継承元
Popup
any

dialogResultSubmit

ダイアログがフォーム要素によってホストされ、ユーザーがフォームを送信するときに、dialogResultとして使用される文字列を設定します。

このプロパティのデフォルト値は**null**です。

このプロパティを空でない文字列に設定すると、コントロールは フォームのsubmitイベントを処理し、フィールドを検証し、 指定した値に設定されたdialogResultでフォームを閉じます。以下に例を示します。

```typescript let dlg = new Popup('#theForm', { dialogResultSubmit: 'ok' }); dlg.show(true, () => { if (dlg.dialogResult == dlg.dialogResultSubmit) { // フォームは有効です。ここで結果を処理します } }); ```

また、Popupがフォーム以外の要素でホストされている場合に使用できるdialogResultEnterプロパティを参照してください。

継承元
Popup
string

fadeIn

Popup を表示するときにフェードインアニメーションを使用する かどうかを決定する値を取得または設定します。

このプロパティのデフォルト値は**true**です。

継承元
Popup
boolean

fadeOut

Gets or sets a value that determines whether the Popup should use a fade-out animation when it is hidden.

このプロパティのデフォルト値は**true**です。

継承元
Popup
boolean

hideTrigger

Gets or sets the actions that hide the Popup.

このプロパティのデフォルト値は**PopupTrigger.Blur**Blurです。 フォーカスを失った場合、またはEscキーを押した時にポップアップが非表示になります。

hideTrigger プロパティをClick に設定すると、ポップアップはオーナ要素を クリックする場合、またはEscキーを押した時非表示になります。

hideTriggerプロパティをLeaveに設定すると、マウスがポップアップまたはその所有者要素を離れた後、ポップアップは短い間隔で非表示になります。

hideTriggerプロパティをNoneに設定した場合、 ポップアップはhideメソッドが呼び出されたとき、 またはユーザーがEscapeキーを押したときにのみ非表示になります。

継承元
Popup
PopupTrigger

hostElement

コントロールをホストしているDOM要素を取得します。

継承元
Control
HTMLElement

isDisabled

コントロールが無効かどうかを判定する値を取得または設定します。

無効化されたコントロールは、マウスイベントやキーボードイベントを取得できません。

継承元
Control
boolean

isDraggable

ポップアップをそのヘッダーでマウスによってドラッグできるかどうかを示す値を取得または設定します。

ヘッダは、 '.wj-dialog-header' または '.modal-header'のCSSセレクタによって識別されます。 ダイアログに 'wj-dialog-header' または '.modal-header'クラスを持つ要素が含まれていない場合、 ユーザーがポップアップをドラッグすることができません。

このプロパティのデフォルト値は **false**です。

継承元
Popup
boolean

isResizable

ポップアップを端からマウスでドラッグしてサイズを変更できるかどうかを決定する値を取得または設定します。

ホスト要素のmax-width、min-width、max-height、およびmin-heightのCSSプロパティを設定して、 ポップアップのサイズを制限できます。

このプロパティのデフォルト値は **false**です。

継承元
Popup
boolean

isTouching

現在、コントロールがタッチイベントを処理しているかどうかを示す値を取得します。

継承元
Control
boolean

isUpdating

コントロールが現在更新中かどうかを示す値を取得します。

継承元
Control
boolean

isVisible

Popup が現在表示されているかどうかを決定する値を取得します。

継承元
Popup
boolean

owner

Gets or sets the element that owns this Popup.

If the owner is null, the Popup behaves like a dialog. It is centered on the screen and must be shown using the show method.

継承元
Popup
HTMLElement

position

オーナ要素に対してツールチップを表示する必要があるPopupPositionを取得または設定します。

このプロパティのデフォルト値は **PopupPosition.BelowLeft**。

継承元
Popup
PopupPosition

removeOnHide

Popup が非表示になっているときにPopup 要素を DOMから削除するか非表示にするかを決定する値を取得または設定します。

このプロパティのデフォルト値は**true**です。

removeOnHideは、Popupが非表示になっている場合は、DOMからPopup要素を削除しますが、作成時に削除しないことに注意してください。

Popupにアクセスキー(accesskey属性)を持つ要素が含まれている場合、Popupが表示されていないときにアクティブ化する必要がありません。Popupは、作成後にDOMから削除します。 以下に例を示します。 ```typesript import { Popup} from '@grapecity/wijmo.input'; import { removeChild } from '@grapecity/wijmo'; // ポップアップを作成します let popup = new Popup('#popup', { owner: '#show' });

// accesskey要素にイベントハンドラを追加します(accesskey要素はDOMにあります) document.getElementById('alert').addEventListener('click', e => alert('hi'));

// ポップアップ(およびアクセスキー要素)をDOMから削除します // そのため、ポップアップが表示されるまでアクセスキーは機能しません removeChild(popup.hostElement); ```

継承元
Popup
boolean

rightToLeft

要素内のコントロールを右から左のレイアウトでホストするかどうかを示す値を取得します。

継承元
Control
boolean

rowHeader

Gets the row header for the value being shown.

This information is updated before the dialog is shown and is displayed above the detail grid.

string

showTrigger

Popup を表示するアクションを取得または設定します。

このプロパティのデフォルト値は**PopupTrigger.ClickOwner**です。 オーナー要素をクリックすると、ポップアップが表示されます。

showTrigger プロパティをNone に設定すると、 ポップアップはshow メソッドを呼び出すのみで表示されます。

継承元
Popup
PopupTrigger

tabOrder

Gets or sets a value of the **tabindex** attribute associated with the control.

**tabindex** attribute value can be defined statically for a Wijmo control by specifying it on the control's host HTML element. But this value can't be changed later during application lifecycle, because Wijmo controls have complex structure, and the control may need to propagate this attribute value to its internal element to work properly.

Because of this, to read or change control's **tabindex** dynamically, you should do it using this property.

継承元
Control
number

メソッド

addEventListener

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

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

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

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

デフォルトでは passive パラメータはfalseに設定されています。これはイベントハンドラが event.preventDefault() を呼び出すことを意味します。タッチイベントまたはマウスホイールイベントにpassiveハンドラを追加する場合は、このパラメータをtrueに設定するとアプリケーションのパフォーマンスが向上します。

passive イベントリスナーの詳細については、「<a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listeners">Improving scrolling performance with passive listeners</a>」を参考してください。

パラメーター
  • 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 should be handled by the control before it is handled by the target element.

  • passive: boolean Optional

    Indicates that the handler will never call preventDefault().

継承元
Control
戻り値
void

applyTemplate

applyTemplate(classNames: string, template: string, parts: Object, namePart?: string): HTMLElement

コントロールの新しいインスタンスにテンプレートを適用し、ルート要素を返します。

このメソッドはテンプレート化されたコントロールのコンストラクターによって呼び出される必要があります。テンプレートのパーツを対応するコントロールメンバにバインドする役割を持ちます。

以下のサンプルコードは、InputNumber コントロールのインスタンスにテンプレートを適用します。 このテンプレートには、'wj-part'属性が'input'、'btn-inc'、および'btn-dec'に設定された要素を含める必要があります。 コントロールのメンバである'_tbx'、'_btnUp'、'_btnDn'には、これらの要素への参照が割り当てられます。

```typescript this.applyTemplate('wj-control wj-inputnumber', templateString, { _tbx: 'input', _btnUp: 'btn-inc', _btnDn: 'btn-dec' }, 'input'); ``````

パラメーター
  • classNames: string

    Names of classes to add to the control's host element.

  • template: string

    An HTML string that defines the control template.

  • parts: Object

    A dictionary of part variables and their names.

  • namePart: string Optional

    Name of the part to be named after the host element. This determines how the control submits data when used in forms.

継承元
Control
戻り値
HTMLElement

beginUpdate

beginUpdate(): void

次に endUpdate が呼び出されるまで通知を中断します。

継承元
Control
戻り値
void

containsFocus

containsFocus(): boolean

このコントロールにフォーカスのある要素が含まれているかどうかをチェックします。

継承元
Control
戻り値
boolean

deferUpdate

deferUpdate(fn: Function): void

beginUpdate/endUpdateブロック内で関数を実行します。

この関数の実行が完了するまでコントロールは更新されません。 このメソッドは、関数が例外を生成した場合でもendUpdate が呼び出されるようにします。

パラメーター
継承元
Control
戻り値
void

dispose

dispose(): void

ホスト要素との関連付けを解除することによってコントロールを破棄します。

dispose メソッドは、addEventListener メソッドによって追加されたイベントリスナーを自動的に削除します。

コントロールを動的に作成および削除するアプリケーションでは、dispose メソッドを呼び出すことが重要です。コントロールを破棄しないと、メモリリークが発生する可能があります。

継承元
Control
戻り値
void

Static disposeAll

disposeAll(e?: HTMLElement): void

HTML要素に含まれるすべてのWijmoコントロールを破棄します。

パラメーター
継承元
Control
戻り値
void

endUpdate

endUpdate(): void

beginUpdate の呼び出しによって中断された通知を再開します。

継承元
Control
戻り値
void

focus

focus(): void

このコントロールにフォーカスを設定します。

継承元
Control
戻り値
void

Static getControl

getControl(element: any): Control

指定したDOM要素でホストされているコントロールを取得します。

パラメーター
  • element: any

    The DOM element that hosts the control, or a CSS selector for the host element (e.g. '#theCtrl').

継承元
Control
戻り値
Control

getTemplate

getTemplate(): string

コントロールのインスタンスの作成に使用されたHTMLテンプレートを取得します。

このメソッドは、クラス階層をさかのぼってコントロールのテンプレートを指定する最も近い祖先を探します。 たとえば、ComboBox コントロールのプロトタイプを指定した場合、 そのプロトタイプによってDropDown 基本クラスで定義されたテンプレートがオーバーライドされます。

継承元
Control
戻り値
string

hide

hide(dialogResult?: any): void

Hides the Popup.

パラメーター
  • dialogResult: any Optional

    Optional value assigned to the dialogResult property before closing the Popup.

継承元
Popup
戻り値
void

initialize

initialize(options: any): void

指定したオブジェクトからプロパティをコピーしてコントロールを初期化します。

このメソッドを使用すると、各プロパティの値をコードで設定する代わりにプレーンなデータオブジェクトを使用してコントロールを初期化できます。

例:

```typescript grid.initialize({ itemsSource: myList, autoGenerateColumns: false, columns: [ { binding: 'id', header: 'Code', width: 130 }, { binding: 'name', header: 'Name', width: 60 } ] });

// 以下と同等です。 grid.itemsSource = myList; grid.autoGenerateColumns = false; // など ```

初期化データは適用時に型チェックされます。初期化オブジェクトに不明なプロパティ名または無効なデータ型が含まれている場合、このメソッドは例外をスローします。

パラメーター
  • options: any

    Object that contains the initialization data.

継承元
Control
戻り値
void

invalidate

invalidate(fullUpdate?: boolean): void

非同期更新を発生させるため、コントロールを無効にします。

パラメーター
  • fullUpdate: boolean Optional

    Whether to update the control layout as well as the content.

継承元
Control
戻り値
void

Static invalidateAll

invalidateAll(e?: HTMLElement): void

指定したHTML要素に含まれるすべてのWijmoコントロールを無効化します。

このメソッドは、コントロールの表示状態やサイズを変更する動的なパネルをアプリケーションで使用している場合に使用します。たとえば、スプリッタ、アコーディオン、およびタブコントロールは通常、その中の要素の表示状態を変更します。この場合、その要素に含まれるコントロールに通知しないと、それらのコントロールが適切に機能しなくなる可能性があります。

これが起こる場合は、動的コンテナーで適切なイベントを処理し、invalidateAllメソッドを呼び出してコンテナー内のWijmoコントロールのレイアウト情報が適切に更新されるようにする必要があります。

パラメーター
  • e: HTMLElement Optional

    Container element. If set to null, all Wijmo controls on the page will be invalidated.

継承元
Control
戻り値
void

onDragged

onDragged(e?: EventArgs): void

draggedイベントを発生させます。

パラメーター
継承元
Popup
戻り値
void

onDragging

onDragging(e: CancelEventArgs): void

draggingイベントを発生させます。

パラメーター
継承元
Popup
戻り値
void

onGotFocus

onGotFocus(e?: EventArgs): void

gotFocus イベントを発生させます。

パラメーター
継承元
Control
戻り値
void

onHidden

onHidden(e?: EventArgs): void

hiddenイベントを発生させます。

パラメーター
継承元
Popup
戻り値
void

onHiding

onHiding(e: CancelEventArgs): boolean

hidingイベントを発生させます。

パラメーター
継承元
Popup
戻り値
boolean

onInvalidInput

onInvalidInput(e: CancelEventArgs): void

invalidInput イベントを発生させます。

イベントハンドラがイベントをキャンセルした場合、コントロールは無効な入力とフォーカスを保持します。

パラメーター
継承元
Control
戻り値
void

onLostFocus

onLostFocus(e?: EventArgs): void

lostFocus イベントを発生させます。

パラメーター
継承元
Control
戻り値
void

onPositionChanged

onPositionChanged(e?: EventArgs): void

positionChangedイベントを発生させます。

パラメーター
継承元
Popup
戻り値
void

onPositionChanging

onPositionChanging(e: PopupBoundsChangingEventArgs): boolean

Raises the positionChanging event.

パラメーター
継承元
Popup
戻り値
boolean

onRefreshed

onRefreshed(e?: EventArgs): void

refreshedイベントを発生させます。

パラメーター
継承元
Control
戻り値
void

onRefreshing

onRefreshing(e?: EventArgs): void

refreshingイベントを発生させます。

パラメーター
継承元
Control
戻り値
void

onResized

onResized(e?: EventArgs): void

resizedイベントを発生させます。

パラメーター
継承元
Popup
戻り値
void

onResizing

onResizing(e: CancelEventArgs): void

resizingイベントを発生させます。

パラメーター
継承元
Popup
戻り値
void

onShowing

onShowing(e: CancelEventArgs): boolean

showingイベントを発生させます。

パラメーター
継承元
Popup
戻り値
boolean

onShown

onShown(e?: EventArgs): void

shownイベントを発生させます。

パラメーター
継承元
Popup
戻り値
void

onSizeChanged

onSizeChanged(e?: EventArgs): void
パラメーター
継承元
Popup
戻り値
void

onSizeChanging

onSizeChanging(e: PopupBoundsChangingEventArgs): boolean

Raises the sizeChanging event.

パラメーター
継承元
Popup
戻り値
boolean

refresh

refresh(fullUpdate?: boolean): void

コントロールを更新します。

パラメーター
  • fullUpdate: boolean Optional

    Whether to update the control layout as well as the content.

継承元
Control
戻り値
void

Static refreshAll

refreshAll(e?: HTMLElement): void

HTML要素で存在するすべてのWijmoコントロールを更新する。

コントロールが時間おいて更新される代わりに直ちに更新されること以外はinvalidateAll メソッドと同様です。

パラメーター
  • e: HTMLElement Optional

    Container element. If set to null, all Wijmo controls on the page will be invalidated.

継承元
Control
戻り値
void

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.

継承元
Control
戻り値
number

show

show(modal?: boolean, handleResult?: Function): void

Popup を表示します。

パラメーター
  • modal: boolean Optional

    Whether to show the popup as a modal dialog. If provided, this sets the value of the modal property.

  • handleResult: Function Optional

    Callback invoked when the popup is hidden. If provided, this should be a function that receives the popup as a parameter.

    The **handleResult** callback allows callers to handle the result of modal dialogs without attaching handlers to the hidden event. For example, the code below shows a dialog used to edit the current item in a CollectionView. The edits are committed or canceled depending on the dialogResult value. For example:

    ```typescript function editCurrentItem(popupEditor: Popup, view: CollectionView) { view.editItem(view.currentItem); popupEditor.show(true, (e: Popup) => { if (e.dialogResult == 'wj-hide-ok') { view.commitEdit(); } else { view.cancelEdit(); } }); } ```

継承元
Popup
戻り値
void

イベント

dragged

Popup がドラッグされた後に発生します。

isDraggableプロパティも参考してください。

継承元
Popup
引数
EventArgs

dragging

Popupがドラッグされようとしているときに発生します。

isDraggableプロパティも参考してください。

継承元
Popup
引数
CancelEventArgs

gotFocus

コントロールがフォーカスを取得したときに発生します。

継承元
Control
引数
EventArgs

hidden

Occurs after the Popup has been hidden.

継承元
Popup
引数
EventArgs

hiding

Occurs before the Popup is hidden.

継承元
Popup
引数
CancelEventArgs

invalidInput

無効な入力値が検出された場合に発生します。

ユーザーが適切な型に変換できない値、または有効な範囲外の値を入力または貼り付けると、無効な入力が発生する可能性があります。

イベントハンドラがイベントをキャンセルした場合、コントロールは無効なコンテンツとフォーカスを保持するため、ユーザーはエラーを修正できます。

イベントがキャンセルされない場合、コントロールは無効な入力を無視し、元のコンテンツを保持します。

継承元
Control
引数
CancelEventArgs

lostFocus

コントロールがフォーカスを失ったときに発生します。

継承元
Control
引数
EventArgs

positionChanged

ユーザーがPopupを移動するときに発生します。つまり、draggingイベントとdraggedイベントの間。

When the user drags the Popup, it raises the following events: - dragging (once, cancelable) - positionChanging (several times while the user moves the mouse) - positionChanged (several times while the user moves the mouse) - dragged (once, at the end of the resizing process)

isDraggableプロパティも参考してください。

継承元
Popup
引数
EventArgs

positionChanging

ユーザーがPopupを移動するときに発生します。つまり、draggingイベントとdraggedイベントの間。

When the user drags the Popup, it raises the following events: - dragging (once, cancelable) - positionChanging (several times while the user moves the mouse, cancelable) - positionChanged (several times while the user moves the mouse) - dragged (once, at the end of the resizing process)

isDraggableプロパティも参考してください。

You can use the positionChanging event to cancel or to modify the Popup bounds as the user drags the control.

たとえば、次のサンプルコードは、ポップアップを全画面表示に保ち、ユーザーがPopupの一部を画面からドラッグできないようにします。

```typescript new Popup('#thePopup', { isDraggable: true, isResizable: true, hideTrigger: 'None',

// ブラウザウィンドウ内でポップアップを完全に保持します positionChanging: (s: Popup, e: PopupBoundsChangingEventArgs) => { let bnd = e.bounds; bnd.left = Math.max(Math.min(bnd.left, innerWidth + scrollX - bnd.width), scrollX); bnd.top = Math.max(Math.min(bnd.top, innerHeight + scrollY - bnd.height), scrollY); } }); ```

継承元
Popup
引数
PopupBoundsChangingEventArgs

refreshed

コントロールが内容を更新した後で発生します。

継承元
Control
引数
EventArgs

refreshing

コントロールが内容を更新する直前に発生します。

継承元
Control
引数
EventArgs

resized

Popup がサイズ変更された後に発生します。

isResizableプロパティも参考してください。

継承元
Popup
引数
EventArgs

resizing

Popupのサイズが変更されようとしているときに発生します。

isResizableプロパティも参考してください。

継承元
Popup
引数
CancelEventArgs

showing

Popup が表示される前に発生させます。

継承元
Popup
引数
CancelEventArgs

shown

Occurs after the Popup has been shown.

継承元
Popup
引数
EventArgs

sizeChanged

ユーザーがPopupのサイズを変更するときに発生します。つまり、resizingイベントとresizedイベントの間。

When the user resizes the Popup, it raises the following events: - resizing (once, cancelable) - sizeChanging (several times while the user moves the mouse, cancelable) - sizeChanged (several times while the user moves the mouse) - resized (once, at the end of the resizing process)

isResizableプロパティも参考してください。

継承元
Popup
引数
EventArgs

sizeChanging

Occurs while the user resizes the Popup, between the resizing and resized events.

When the user drags the Popup, it raises the following events: - resizing (once, cancelable) - sizeChanging (several times while the user moves the mouse, cancelable) - sizeChanged (several times while the user moves the mouse) - resized (once, at the end of the resizing process)

isResizableプロパティも参考してください。

継承元
Popup
引数
PopupBoundsChangingEventArgs