Created
February 23, 2017 10:49
-
-
Save xmeng1/c98cb0f540a1d51b423118a267e805b8 to your computer and use it in GitHub Desktop.
dynamicl_control_DOM_by_event
According to debug find that we can get the element by click event and so on.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setCssDynamical($event) { | |
console.log($event); | |
$event.source.trigger.nativeElement.childNodes[0].setAttribute("style", "font-size: 20px;font-weight: bold") | |
//mat-select-trigger | |
//mat-select-placeholder | |
//let elt = document.getElementsByClassName("mat-select-placeholder").item(0); | |
//elt.setAttribute("style", "font-size: 20px;font-weight: bold"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment