javascript - Set Composite Component attribute with a js function -
I have a composite component, which has an attribute that gives the width of the component again, the width of the screen size So I have a JS function that calculates the appropriate value to set that attribute. The problem is that I do not know how to set the JS function in the attribute of the composite component; Here's my code ...
& lt; H: form id = "form slider" style = "width: 100%" & gt; & Lt; Comp: sliderComponent images = "# {sliderShowBean.sliderList}" slide speed = "2000" width = "# {getContWidth}" /> & Lt; / H: form & gt; Js function function getContWidth () {var width = $ ("# content_container_wide") With CSS ("width")
return width; };
Check if you are talking about JSF ... < / P>
Comments
Post a Comment