javascript - apply css style to a div within an angular js directive -


In my instructions I'm handling jqueryui I was having an issue where it was very upset and Firefox so I took some suggestions and when the instructions were issued then I added a div to the dome ... changed the shape of it ... and in the end I I joined the original device and got rid of the added divis.

The only problem that really took care of my jitter issue is that during the recycling it should be added to a square in the added class which will appear on screen in size .... That class has not been added.

My command is as follows:

  Instruction ('resizable', function () {return {restricted: 'a', scope: {callback: '& amp; OnResize '}, link: function post links (scope, amm, ethers) {elem.resizable ({accessory: function () (returns (jQuery ("& lt; div>"). CSS ({height: jQuery ( This).), Width: jQuery (this) .with ()} AddClass ('resizeHelper'));}}); elem.on ('resizestop', function (evt, ui) {if (scope.callback) {Scope .callback ();}}); window.e = elem;}};});   

I want to add the CSS class:

  .resizeHelper {border: 2px dashed #cccccc; background: black; Opacity: 0.2;}   

I have installed a planker to better present the problem:

If you see the source and resize the size of the initial div You will see that a class has been added which deals with the actual resize event, then the original divisor has been terminated .... But the CSS class is never added. < P>

assistant Using options is different from the support options for other APIs (like draggable) in the jQuery UI. This option expects a simple string as a class name for the proxy object.

See:

The revised code will be,

  elem.resizable ({helper: 'resizeHelper'});   

In addition to using the angular, it is better to use angular as a side note. Element for JQuery as a proxy because it loads in the corner, it is better for testing purposes

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -