Rewire hover as a flow trigger
Add "survol"/"fin_survol" trigger events (mouseenter/mouseleave, same anti-doublon pattern as bindClicks()) so hovering an element can run flow nodes, instead of the old static hover-text-only control removed from the properties panel. Also add "Contenu" as a settable "Modifier un élément" property so an action can display a defined text on another element on hover — the concrete use case that motivated this. Verified live with Playwright: a "Au survol" trigger on one element correctly updates another element's text via the action, and text stays put with no "Fin du survol" wired (explicit, no implicit revert, consistent with "Au clic").
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
|
||||
ELEMENT_ACTION_PROPERTIES = [
|
||||
("visibilite", "Visibilité"),
|
||||
# Voir TRIGGER_EVENTS ("survol"/"fin_survol") : c'est ce qui permet à un
|
||||
# créateur de reconstruire l'ancien comportement "texte affiché au
|
||||
# survol" (et bien d'autres) à la main dans la Logique de la scène —
|
||||
# poser "Modifier un élément → Contenu" sur un déclencheur "Au survol"
|
||||
# d'un AUTRE élément. La valeur est un texte littéral (pas encore de
|
||||
# binding vers un champ d'objet ici — voir applyOpenRowBindings pour le
|
||||
# mécanisme équivalent, propre à "Ouvrir la ligne cliquée").
|
||||
("contenu", "Contenu — texte affiché"),
|
||||
("bg_color", "Couleur de fond"),
|
||||
("border_color", "Couleur de bordure"),
|
||||
("width", "Largeur en %"),
|
||||
|
||||
@@ -2,4 +2,6 @@ TRIGGER_LABELS = {
|
||||
"clic": "Au clic",
|
||||
"soumission": "À la soumission",
|
||||
"affichage": "À l'affichage de l'écran",
|
||||
"survol": "Au survol",
|
||||
"fin_survol": "Fin du survol",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user