Two-way data binding
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- angular, javascript, react
Research direction
Review the Angular, React, and Vue tutorial pages linked in the issue, then locate the existing event-binding examples in each sample app. Done means all three apps demonstrate editable text fields and a checkbox, plus a button that swaps the text values and toggles the checkbox through model-to-view updates.
Written by the indexing model from the issue text.
Description
Thank you for all three sample apps (angular, react, vue), really helpful in evaluations and discussions,
Would it be possible to extend all three apps, with the two-way binding, even the simplest way?
Like for example: two text fields and one checkbox, which can be edited in UI, for view to model changes.
And one button, with the click logic to swap the text fields’ bound data values and toggle the checkbox bound data value, for model to view changes?
The reason I am asking is that two-way binding looks like a kind of challenge.
You can use two-way data binding with the following components: CheckBox, RadioButton, Input, DatePicker, Switch, TextArea. In order to use it, you have to use a library called Origami ...
Data binding not mentioned at all, only event binding. There are more possibilities in React, one could be shown as example.
v-model binding doesn’t work as expected for custom elements. In order to use two way data binding, you should bind and update the value yourself like this
<ui5-input
:value="inputValue"
@input="inputValue = $event.target.value">
</ui5-input>
- Dominant language
- JavaScript
- Stars
- 39
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from UI5/sample-webcomponents-angular
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in UI5/sample-webcomponents-angular
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
web-platform-tests/interop#1455 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100