This package provides a set of traits to use in your classes to generate HTML attributes.
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist ui-awesome/html-attribute:^0.2
or add
"ui-awesome/html-attribute": "^0.2"
to the require section of your composer.json
file.
List of traits avaibles to use in your classes:
-
Note: Use enum classes DataAttributeValues for specify the data attribute keys.
- CanBeAutofocus
- CanBeHidden
- HasAlt
- HasClass
- HasData
- HasHeight
- HasId
- HasLang
- HasName
- HasReferrerPolicy
- HasRel
- HasSrc
- HasStyle
- HasTabIndex
- HasTitle
- HasType
- HasValue
- HasWidth
- CanBeDisabled
- CanBeMultiple
- CanBeReadOnly
- CanBeRequired
- HasAccept
- HasAutoComplete
- HasDirname
- HasFieldAttributes
- HasForm
- HasFormaction
- HasFormenctype
- HasFormmethod
- HasFormnovalidate
- HasFormtarget
- HasMax
- HasMaxLength
- HasMin
- HasMinLength
- HasPlaceholder
- HasSize
Check the documentation testing to learn about testing.
The MIT License (MIT). Please see License File for more information.