OOUI/Elements/Flagged/fr

La classe  est un attribut mixin, c'est à dire qu'elle est utilisée pour ajouter des fonctionnalités supplémentaires à un élément créé par une autre classe. La classe fournit une propriété  qui contient le nom (ou un tableau de noms) des drapeaux de mise en forme, servant à personnaliser l'aspect et le comportement d'un widget pour mieux décrire son importance et sa fonctionnalité.

Lorsqu'un élément est configuré avec une propriété, la présentation de son CSS est mise à jour. A widget that is configured to be ‘destructive’, for example, will be styled with the ‘oo-ui-flaggedElement-destructive’ CSS class.

For a full list of supported methods and configuration options provided by the  class, please see the code-level documentation.

Any flags can be set, and styling for them is defined in specific widgets/elements, including:



ButtonElement et Tool

 * - Progressive styling is applied to convey that the widget will move the user forward in whatever process they are in.
 * - Destructive styling is applied to convey that the widget will remove something.
 * - Primary styling is applied when there is only one possible action, or to convey that this is the most common or recommended of several possible actions. (It is only meaningful for framed buttons with primary or destructive flag.)

Voir Boutons et sélecteurs pour un exemple de ces drapeaux.

ProcessDialog
Actions, which are a special kind of button used in process dialogs, use these flags:


 * - The primary action (e.g., ‘save’ or ‘done’) moves the user forward in whatever process they are in. The primary action is positioned in the upper right corner of the dialog window. Since this is a button, the meaning of  action for ButtonElement above also applies.
 * - The safe action (e.g., ‘Cancel’) will make no changes. ‘Safe’ actions are usually configured without an action. Actions widgets that have no configured action will close the window without making changes. The safe action is positioned in the upper left corner of the dialog.
 * - Indicates that this action will go to the previous panel in the dialog. Actions with this flag automatically receive a "back" icon, replacing the label (on mobile only). It should only be used on "safe" actions.
 * - Indicates that this action will close the dialog. Actions with this flag automatically receive a "close" icon, replacing the label. It should only be used on "safe" actions.

Please see the documentation on action sets for more information about how the primary and safe flags are used.

TextInputWidget
The  flag is used internally to mark the user input as invalid. It should not be set directly, use  method.

MessageWidget
Les drapeaux :,  ,  , et   sont utilisés en interne pour afficher différents messages. Ne doit pas être initialisé directement, utiliser  à la place.