このライブラリはDHTML要素を作成する関数を含んでいます。 関連リンク: Extension Overview, DekiScript Overview, Extension Demos.
Assembly: mindtouch.deki.services
SID: http://services.mindtouch.com/deki/d.../2007/07/dhtml
関数:
- dhtml.alert
- dhtml.div
- dhtml.form
- dhtml.inputbox
- dhtml.table
dhtml.alert(subscribe : str, title : str) : xml
警告ダイアログにメッセージを表示します。
引数:
| 名前 | 型 | 説明 |
subscribe
| str
| オプション チャネルを購読 (デフォルト: "*") |
title
| str
| オプション ダイアログのタイトル (デフォルト: nil) |
サンプル:
| 表示 |
| 全てのチャネルを購読する2つの入力ボックスと警告ダイアログを埋め込む: {{ dhtml.inputbox{ length: 50, label: "Input Box 1: ", publish: "inputbox1"} }}
{{ dhtml.inputbox{ length: 50, label: "Input Box 2: ", publish: "inputbox2"} }}
{{ dhtml.alert() }} | |  |
| 最初のチャネルのみを購読する2つの入力ボックスと警告ダイアログを埋め込む: {{ dhtml.inputbox{ length: 50, label: "Input Box 1: ", publish: "inputbox1"} }}
{{ dhtml.inputbox{ length: 50, label: "Input Box 2: ", publish: "inputbox2"} }}
{{ dhtml.alert("inputbox1") }} | |
|
dhtml.div(subscribe : str) : xml
div要素内の内容を表示。
引数:
| 名前 | 型 | 説明 |
subscribe
| str
| オプション. チャネルを購読 (デフォルト: "default") |
購読書式:
| 名前 | 型 | 説明 |
html
| str
| HTML の内容 |
サンプル:
| 表示 |
| 入力を促し、div内に結果を表示: {{ dhtml.inputbox{ length: 50, label: "Enter Text: ", publish: "inputbox1", field: "html" } }}
{{ dhtml.div{ subscribe: "inputbox1" } }} | |
|
dhtml.form(inputs : list, button : str, length : num, publish : str) : xml
複数のテキストボックスとサブミット・ボタンを持つフォームを表示。
引数:
| 名前 | 型 | 説明 |
inputs
| list
| オプション 入力フィールド (デフォルト: [{ label: nil, value: nil, field: nil, hidden: false }]) |
button
| str
| オプション 入力ボタン (デフォルト: "Ok") |
length
| num
| オプション 入力文字数 (デフォルト: 16) |
publish
| str
| オプション 公開するチャネル (デフォルト: "default") |
サンプル:
| 表示 |
| 緯度/経度の入力を促すフォームとその地図作成を埋め込む: {{ dhtml.form( [{label: "Latitude: ", field: "latitude", hidden: false}, {label: "Longitude: ", field: "longitude", hidden: false}], "Show Map", 50, "form1" ) }}
{{ google.map{ subscribe: "form1", zoom: 8 } }} | | |
dhtml.inputbox(label : str, value : str, button : str, length : num, field : str, publish : str) : xml
シンプルなテキストボックスとサブミット・ボタンを表示
引数:
| 名前 | 型 | 説明 |
label
| str
| オプション ラベル (デフォルト: nil) |
value
| str
| オプション 入力値 (デフォルト: nil) |
button
| str
| オプション ボタンn (デフォルト: "Ok") |
length
| num
| オプション 入力文字数 (デフォルト: 16) |
field
| str
| オプション メッセージフィールド名 (デフォルト: "text") |
publish
| str
| オプション チャネルの公開 (デフォルト: "default") |
サンプル:
| 表示 |
| 住所を入力するテキストボックスとその住所からの地図作成を埋め込む: {{ dhtml.inputbox("Address: ", "<enter an address>", "Show Map", 50, "address", "inputbox1") }}
{{ google.map{ subscribe: "inputbox1", zoom: 8 } }} | | |
dhtml.table(columns : list, subscribe : str) : xml
テーブルの表示
引数:
名前
| 型 | 説明 |
columns
| list
| コラム・オブジェクト |
subscribe
| str
| オプション 購読チャネル (デフォルト: "default") |
サンプル:
| 表示 |
| 最近、検索した緯度/軽度をテーブル表示を埋め込む: {{ dhtml.form( [{label: "Latitude: ", field: "latitude", hidden: false}, {label: "Longitude: ", field: "longitude", hidden: false}], "Show Map", 50, "form1" ) }}
{{ google.map{ subscribe: "form1", zoom: 8 } }}
Recent Searches:
{{ dhtml.table([{ label: "Latitude", field: "latitude" }, { label: "Longitude", field: "longitude" }], "form1") }} | | |