@mattfox Can I declare this angular controller within the HTML page im currently working on and have the function in the controller referenced a DOM element by ID?
J
Posts made by jramirez
-
RE: on-value-updated call javascript function
-
on-value-updated call javascript function
I wondering how I can call a JS function from
on-value-updated="myFunction()"
<ma-get-point-value point="pHCD1AccelPeak" on-value-updated="testFunc('a')"></ma-get-point-value>
In my html page I have this:
<script> function myFunction () { console.log("test") } </script>
I have a value that is being updated properly but I cannot get the function to be called.
-
RE: SVG ma-selector change text within SVG
@phildunlap Great that works! Thank you very much
-
RE: SVG ma-selector change text within SVG
@phildunlap Thanks that works, but what if I just wanted to change it to a constant value without needing to use the input tag??
-
SVG ma-selector change text within SVG
I am trying to change the text within an SVG image. I am able to target the text using
ma-selector
and I can change its style like its fill color. I tried changing the text usingng-value
but that did not work. Any ideas?<ma-svg ng-include="'/modules/mangoUI/web/dev/img/Bar_Gauge_Acc.svg'" style="width: 150px"> <div ma-selector="#Axis" style="fill: red;" ng-value="'string'"></div> </ma-svg>