-
Notifications
You must be signed in to change notification settings - Fork 130
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
input value not visible #347
Comments
It must be some error in how you are using JsViews. But for me to help you would need to create a minimalistic self-contained sample page (preferably a working jsfiddle) which shows the problem, and with all other irrelevant code and content removed. I cannot debug into your real app, it takes too long... Also I am on vacation travelling, so will have very little time if any in the next two weeks to look more closely, With a jsfiddle if I see the problem right away I can let you know. Otherwise it will be after I return... |
Here is a minimal version of the same issue,
https://jsfiddle.net/vdgnepwk/1/ Hope, It is easier to debug now. and here is a complete light version Thank You, |
OK - well you are not using the correct syntax at all for data-linking elements, or two-way binding. See for example the doc topics
In your case if you want to bind to .v you write:
You can also use full data-link syntax to data-link to other targets such as placeholder:
|
I'm not exactly sure what you are trying to achieve, but at least part of the problem is that you are not data-link'ing the values when using jsviews with $.link: With jsrender you can bind attributes 'inline': <input type="text" name="{>key}" value="{>prop.v}"... etc .. > WIth jsviews you want to data-link the attributes The {:prop.v:} indicates two way binding to the value of the input via the colon on each side. Hope that helps On Aug 26, 2016, at 11:20 AM, Kashirin Alex notifications@github.com wrote:
|
Correct me if wrong, And of-course there is meaning of linking value as field-name . The whole thing is all good except the browser's rendering of the |
Regards, the prop.v it is the child of prop.n(key) On Aug 26, 2016 8:09 PM, "Paul Martin" notifications@github.com wrote:
|
There are two ways to datalink in jsviews: {^{>someProperty /}} or
both are functionally equivalent. However for inputs we need to bind logically to the 'value' attribute. That can Binding can be done directionally. One can control the direction by specifying the // bind such that only observable updates to someProperty are reflected in the input // bind such that observable updates to someProperty are reflected in the input // bind such that updates to someProperty are not reflected in the input In all 3 examples the location of the ':' (beginning or end or both) defines the direction observable means you must use $.observable() in order for the the binding to var foo { // this statement observably updates someProperty, such that all bound // this input would be updated // this statement does not observably update someProperty // this input would not be updated In your template you have something similar to: {^{props foo }} {^{props}} is an iterator for objects. In this example, it will be redrawn when foo is observably modified: On Aug 26, 2016, at 2:22 PM, Kashirin Alex notifications@github.com wrote:
|
Just a request. I find it much better to reply to issue comments by going to the GitHub issue, and adding comment there. You can get Markdown formatting to work correctly, and you can see other people's comments. Replying to comments by replying directly to the email notification works very badly. It shows up as new comments but without correct formatting, and if you insert inline comments in the other persons previous email, then your added inline comments get lost in the '...' section on GitHub Issues itself and are not seen at all. Also, Alex, make sure to read the relevant documentation topics. There are many examples and explanations. Those doc topics are there to avoid needing to give repeat explanations here, or create issues which can be in fact avoided by reading the relevant docs. I pointed you to these topics, to start with:
and there are are many more, e.g. on {{props}} and other API features you are using. Once you have done full exploration of docs and samples, then you can create an issue if necessary... |
Thank You, |
Hello,
Unable to figure out why is the value of input text type is not being visible (value="v" is set while nothing seen, on any browsers)
It is with template.link follow observeAll.
here is a link to the issue,
https://thither.direct/store/id/1S?page=1&MPN=W0133-171&length=10&CAT=a21-b191-&view=products&keyWords=2005-2011&
the actual field values of MPN,CAT,keyWords are set on the left-side inputs while none are shown as input's values.
Thank You,
Kashirin Alex
The text was updated successfully, but these errors were encountered: