-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Dynamic td width while creating table #1439
Comments
@nknapp please help! |
What issue are you currently having? More code would be needed to help resolve the issue. |
@magikstm actually tdWidth comes from server but it is not being rendered in client. while I check the source on client, it shows: c but when I display tdWidth inside a span or div, it shows: 9.99 which means data is coming from server. It is not working while I place it inside the style tag of an element. |
@amirzandi could you please share more of your code? Especially the part that creates the "tdWidth" value as well as how you link it to that part of your page. |
@magikstm this is the client side:
{{else}} {{/if}} |
You're iterating in "corrects" in your "each" statement, but that object doesn't hold the "tdWidth" object. I think you may need to change this: To this: Ref: http://handlebarsjs.com/ (under "Handlebars Paths") |
@magikstm ohhhhh you saved my day.... thank you very much... thanks a lot. |
I am creating a table which includes two rows with dynamic numbers of td.
The important part is to set the width for each td and the width has been calculated and passed to view.
tdWidth: 100/numberOfChars => which gives a percentage for width
I am using following code but it is not working:
any helps appreciated.
The text was updated successfully, but these errors were encountered: