class()

Adds a class attribute to the element using a given string.

Calling myElement.class() without an argument returns a string with its current classes.

उदाहरण

सिंटैक्स

class(class)
class()

पैरामीटर्स

class
String:

class to add.

This page is generated from the comments in src/core/p5.Element.js . Please feel free to edit it and submit a pull request!

संबंधित संदर्भ