Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

複合メニューへのコンポーネントの追加

次に、以下の要素を、XData Contents ブロック内の <composite> 要素に追加します。

  • 1 つの<html> 要素。この要素の内容は “Zen Contacts” です。

  • 1 つの<hmenu> 要素。この要素の width 属性の値は 100% です。

  • 1 つの <menuItem> 要素。これは、<hmenu> 要素に追加します。この要素に、次の属性と値を追加します。

    • id=“m1”

    • caption=“Home”

    • link=“ZenTutorial.HomePage.cls”

  • さらに 2 つの <menuItem> 要素。これらは <hmenu> に追加します。id 属性の値はそれぞれ “m2”、“m3” です。caption 属性の値には、両方とも “TBA” を代入します。これらのメニュー・アイテムは、このアプリケーションで将来作成されるページ用のプレースホルダにすぎません。

完成した XData Contents ブロックは次のようになります。


XData Contents [XMLNamespace="http://www.intersystems.com/zen"]
{
  <composite>
    <html id="title" enclosingClass="title">ZEN Contacts</html>
    <hmenu width="100%">
      <menuItem id="m1" caption="Home" link="ZenTutorial.HomePage.cls"
      help="Go to display page" />
      <menuItem id="m2" caption="TBA" link="" help="To Be Added" />
      <menuItem id="m3" caption="TBA" link="" help="To Be Added" />
    </hmenu>
  </composite>
}
Note:

複合コンポーネントを Web ページの Zen ページ・クラス以外の部分に単独で表示することはできません。

FeedbackOpens in a new tab