1. Summary of Changes
HTML5 is designed with extensibility in mind for data that should be associated with a particular element but need not have any defined meaning. data-* attributes allow us to store extra information on the standard, semantic HTML elements without other hacks such as non-standard attributes, extra properties on DOM.
However, custom attributes have no special meaning generally and are only special to the owner's application. They can be used to simplify an application's logic. By allowing JForm to support data attributes, it can be greatly aid development of extensions both core and third party.
2. Testing Instructions
Add data attribute in XML form, for example
<field name="name"
type="text"
description="COM_USERS_USER_FIELD_NAME_DESC"
label="COM_USERS_USER_FIELD_NAME_LABEL"
required="true"
size="30"
data-action-type="click" // add data attribute like this
/>
Login into administrator
Click on menu Users => Manage => Add New User
Inspect the filed = Name
Labels |
Added:
?
|
Category | ⇒ | com_fields |
Status | New | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-20 12:10:02 |
Closed_By | ⇒ | brianteeman |
Hello, I want to ask you if this issue is solved on the version 3.8.6.
Thank you
Should be helpful to get this done.. Can you explain a few use cases of how a developer can leverage this ?