Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support placeholder property #144

Merged
merged 1 commit into from
May 29, 2024
Merged

feat: support placeholder property #144

merged 1 commit into from
May 29, 2024

Conversation

barmac
Copy link
Contributor

@barmac barmac commented May 28, 2024

This PR add support for placeholder property on String and Text fields.

Related to bpmn-io/bpmn-js-element-templates#92

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label May 28, 2024
@barmac barmac requested review from a team, philippfromme and marstamm and removed request for a team May 28, 2024 07:41
placeholder: 'This field has a placeholder'
},
{
label: 'Input with placeholder',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I remember correctly that we assume a string/text type in these cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you do. This is why placeholder should be supported in such properties.

@@ -0,0 +1,72 @@
export const template = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: We decided to only support it for C8?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could implement it for both platforms, but that means greater effort in bpmn-js-element-templates project.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave it C8 for now ✔️

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though it really feels like a core element template issue thing that should not depend on a specific platform.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll be able to port it over, one day.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have it in the core then.

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Just #144 (comment) to consider (parity between C7 and C8).

@barmac barmac force-pushed the allow-placeholder branch from 9473b18 to a5446d5 Compare May 29, 2024 15:40
@barmac barmac merged commit 97d2f64 into main May 29, 2024
3 checks passed
@barmac barmac deleted the allow-placeholder branch May 29, 2024 15:40
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants