Toolbar, élément (Liste)
Dernière modification : jeudi 15 juillet 2010
S’applique à : SharePoint Foundation 2010
Dans cet article
Attributs
Éléments enfants
Éléments parents
Occurrences
Définit la barre d’outils d’une liste, qui est la section d’un affichage rendu au-dessus de l’en-tête de l’affichage.
<Toolbar
Position = "After"
Type = "Standard" | "FreeForm">
</Toolbar>
Attributs
Attribut |
Description |
---|---|
Position |
Facultatif Text. Si Position = "After" est spécifié, la barre d'outils s'affiche sous le corps de l'affichage. Sinon, la barre d'outils s'affiche au-dessus du corps de l'affichage. |
Type |
Obligatoire Text. Spécifie le type de barre d'outils ; ce type peut être Standard ou FreeForm. |
Éléments enfants
Nombreux |
Éléments parents
Occurrences
Minimum : 0 Maximum : 1 |
Exemple
L’extrait suivant tiré du fichier Schema.xml pour les listes personnalisées définit la commande New de la barre d’outils. Dans cet exemple, l’option de création d’éléments n’est affichée que pour les utilisateurs habilités à ajouter des éléments de liste.
<Toolbar Position="After" Type="Freeform">
<IfHasRights>
<RightsChoices>
<RightsGroup PermAddListItems="required" />
</RightsChoices>
<Then>
<HTML><![CDATA[ <table width=100% cellpadding=0 cellspacing=0 border=0 > <tr> <td colspan="2" class="ms-partline"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td> </tr> <tr> <td class="ms-addnew" style="padding-bottom: 3px"> <img src="/_layouts/images/rect.gif" alt=""> <a class="ms-addnew" ID="idAddNewItem" href="]]></HTML>
<URL Cmd="New" /><HTML><![CDATA[" ONCLICK="javascript:NewItem(']]></HTML>
<URL Cmd="New" /><HTML><![CDATA[', true);javascript:return false;" target="_self">]]></HTML><HTML><!-- _locID_text="onetid6" _locComment="{StringCategory=HTX}" -->$Resources:core,addnewitem;</HTML><HTML><![CDATA[</a> </td> </tr> <tr><td><IMG SRC="/_layouts/images/blank.gif" width=1 height=5 alt=""></td></tr> </table>]]></HTML>
</Then>
</IfHasRights>
</Toolbar>