Apple WebObjects 3.5 Tools And Techniques Manuel d'utilisateur Page 86

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 88
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 85
Chapter 3 Working With Dynamic Elements
86
Use the toolbar to add a custom WebObject element (see “Custom
WebObjects”) to your page, then use the Inspector to set its type to the
name of the reusable component.
Drag a component that has been stored on a palette to the component
window (see “Palettes”).
A component that is designed for reuse can export keys and actions, which
become attributes that the parent component can bind, just as it would set the
attributes of any other dynamic element. When the component is added to a
parent component, these attributes show up in the Custom WebObject
Inspector. The attributes must be enumerated in the
.api file for the component.
For example, the WOSimpleArrayDisplay shared component that lives in the
WOExtensions framework exports the following attributes, as defined in its
.api
file:
When you use this component in one of your pages, it looks like this:
Vue de la page 85
1 2 ... 81 82 83 84 85 86 87 88

Commentaires sur ces manuels

Pas de commentaire