-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
|textInput |`<input data-bind="textInput: value"/>` | `<input textInput="value"/>` | | ||
|value |`<input data-bind="value: value"/>` | `<input ko-value="value"/>` | | ||
|checked |`<input type="chackbox" data-bind="checked: isChecked"/>` | `<input type="chackbox" ko-checked="isChecked"/>` | | ||
|checkedValue |`<input type="chackbox" data-bind="checkedValue: $data, checked: isChecked"/>` | `<input type="chackbox" checkedValue="$data" checked="isChecked"/>` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Append the following on the next line of this table to get a better table format:
{:style="table-layout:auto"}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, awesome. will do.
|foreach |`<!-- ko foreach: elements --><!-- /ko -->` | `<each args="elements">` | | ||
| |`<div data-bind="foreach: elements"></div>` | `<div each="elements"></div>` | | ||
|component |`<!-- ko component: 'componentName' --> <!-- /ko -->` | `<component args="'componentName'">` | | ||
| |`<div data-bind="component: componentName"> </div>` | `<div component="'componentName'"> </div>` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div data-bind="component: componentName"> </div>
missed single quotes -> <div data-bind="component: 'componentName'"> </div>
|hasFocus |`<input data-bind="hasFocus: onFocus"/>` | `<input ko-focused="onFocus"/>` | | ||
|textInput |`<input data-bind="textInput: value"/>` | `<input textInput="value"/>` | | ||
|value |`<input data-bind="value: value"/>` | `<input ko-value="value"/>` | | ||
|checked |`<input type="chackbox" data-bind="checked: isChecked"/>` | `<input type="chackbox" ko-checked="isChecked"/>` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type="chackbox"
->type="checkbox"
|textInput |`<input data-bind="textInput: value"/>` | `<input textInput="value"/>` | | ||
|value |`<input data-bind="value: value"/>` | `<input ko-value="value"/>` | | ||
|checked |`<input type="chackbox" data-bind="checked: isChecked"/>` | `<input type="chackbox" ko-checked="isChecked"/>` | | ||
|checkedValue |`<input type="chackbox" data-bind="checkedValue: $data, checked: isChecked"/>` | `<input type="chackbox" checkedValue="$data" checked="isChecked"/>` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type="chackbox"->type="checkbox"
Thanks @omiroshnichenko. Good catches! |
@bdenham please add |
I added the whatsnew. |
This PR is a:
Summary
When this pull request is merged, it will create a new topic that shows developers how to use the Magento binding syntax for UI components instead of the more complex Knockout binding equivalents.
Additional information
HTML preview: http://cicd1.corp.magento.com/~mmansoor/devdocs/gh-pages/branches/bd-magedoc-2893-mage-binding/_site/guides/v2.2/ui_comp_guide/concepts/magento-bindings.html
Jira story: https://jira.corp.magento.com/browse/MAGEDOC-2893
whatsnew
Added a topic about the Magento binding syntax.