javascript - Class is added to classList but html doesn't update - Angular 2 / Ionic -


this function gets executed when clicked:

movecover() {     this.movestate = (this.movestate == 'up') ? 'down' : 'up';     this.tds = this.elref.nativeelement.queryselector('ion-slides');     this.myrenderer.setelementclass(this.tds, 'movecover', true);      let thisel  = this.elref.nativeelement.queryselector('table.table.table-bordered.table-fixed.monthview-datetable');     this.myrenderer.setelementclass(thisel, 'marginchange', true);     console.log('element class list   ' + thisel.classlist);   } 

the class isn't being added element selector table.table.table-bordered.table-fixed.monthview-datetable. gets right element using selector, because in log message see class listed after added classlist above code. html doesn't change nothing happens. trying modify element part of plugin, , gets generated template. i'm wondering if matters, i'm guessing not because in above code, ion-slides selector affected adding class, , generated template.

the css classes being added looks this:

.movecover {     height: 100%;     transition: height 0.75s ease-in;   }    .marginchange {     top: 0;   } 

i trying change top value 23px 0 marginchange. movecover should (change height 100%, transition doesn't work.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -