The classable trait and matching interface can be used to add HTML element class related methods like addClass(), addClasses() and the like.
addClass()
addClasses()
Trait: Traits_Classable Interface: Interface_Classable
Traits_Classable
Interface_Classable
use AppUtils; class HTMLElement implements Interface_Classable { use Traits_Classable; }
classesToAttribute()
class="foo bar"
classesToString()
foo bar
getClasses()
hasClass()
removeClass()
There was an error while loading. Please reload this page.
New here?
Have a look at the overview for a list of all helper classes available in the package.
Table of contents
Find the current page in the collapsible "Pages" list above, and expand the page, to view a table of contents.