Skip to content
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

Jquery-knob in foreignObject #366

Open
tonmoycsedu opened this issue Feb 12, 2020 · 0 comments
Open

Jquery-knob in foreignObject #366

tonmoycsedu opened this issue Feb 12, 2020 · 0 comments

Comments

@tonmoycsedu
Copy link

tonmoycsedu commented Feb 12, 2020

Hi,
I am trying to add a jquery knob to my svg using 'foreignObject' tag. Everything works fine, but I can't seem to see the input value in the knob. I even tried explicitly setting the 'data-displayinput' attribute to be 'true', but still does not work. Any idea what might be the issue? Thanks.

<foreignObject class="label-bg" id="0_node" x="0" y="0" width="100" height="50" style="inline-block"><div style="display:inline;width:50px;height:50px;"><canvas width="100" height="100" style="width: 50px; height: 50px;"></canvas><input class="dial" data-displayprevious="true" data-displayinput="true" id="0_knob" name="Unhealthy_Days" data-min="2.5" data-max="5.5" value="2.5" data-step="0.1" style="width: 29px;height: 16px;position: absolute;vertical-align: middle;margin-top: 16px;margin-left: -39px;border: 0px;background: none;font: bold 10px Arial;text-align: center;color: rgb(102, 204, 102);padding: 0px;-webkit-appearance: none;"></div></foreignObject>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant