OOUI/Elements/Flagged/nl

De class  is een attribuut-mixin, wat betekent dat het wordt gebruikt om extra functionaliteit toe te voegen aan een element dat door een andere class is gemaakt. De class biedt een eigenschap  waaraan de naam (of een array met namen) van opmaakvlaggen is toegewezen, waarmee het uiterlijk van een widget wordt aangepast om het belang en de functionaliteit ervan beter te beschrijven.

Wanneer een element is geconfigureerd met een eigenschap, wordt de CSS-styling bijgewerkt. 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 and 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.)

Please see Buttons and Switches for an example of these flags.

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
The,  ,  , and   flags are used internally to show different messages. It should not be set directly, use  instead.