bpmn-io / form-js

View and visually edit JSON-based forms.
https://bpmn.io/toolkit/form-js/
Other
419 stars 109 forks source link

Adding Direction Property to Properties Panel - RTL support #1185

Open guy-ng opened 6 months ago

guy-ng commented 6 months ago

Adding Direction Property to Properties Panel

This feature proposal outlines adding a "direction" property to the properties panel for elements and the main form. Here's the breakdown:

Property: direction

Values: ltr: Left-to-Right text direction (default) rtl: Right-to-Left text direction inherit: Inherits direction from parent element

Implementation: Element Properties Panel:

Main Form Properties Panel:

Benefits:

Additional Considerations:

okaeiz commented 6 months ago

This looks exactly like what we need. Using Direction, if it's set to RTL, it should render the placeholder and the label of the element on right. Also, if the the user enters some value, it should be rendered on right. This can be applied on a variety of elements such as text field, number, text area, select, date-time, etc.