getClass(value);
value. The markup element which CSS classes are to be returned.
The getClass method returns the current CSS classes of the component.
To execute the example, connect links to the PP.js library and to the PP.css visual styles table. Create a button that is an instance of the Button class and get the information about the current CSS classes using the getClass method:
<script type="text/javascript">
var b1 = new PP.Ui.RibbonButton({
Content: "Button"});
b1.addToNode("btn1");
console.log(b2.getClass("btn1"))
</script>
After executing the example the button is added to the HTML page. In the console button information about current CSS classes of the button is displayed:
Released
See also: