Added role attribute helper.
This commit is contained in:
parent
fea4a2684d
commit
6cc18174f1
@ -887,6 +887,16 @@ class IgniteTemplate {
|
||||
return this.attribute("for", value, converter);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the role attribute of the element to be constructed by this template.
|
||||
* @param {String|IgniteProperty} value The value to set for the for attribute of the element this template will construct.
|
||||
* @param {Function} converter An optional function that can convert the value if needed.
|
||||
* @returns {IgniteTemplate} This ignite template so function calls can be chained.
|
||||
*/
|
||||
role(value, converter = null) {
|
||||
return this.attribute("role", value, converter);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a checked attribute to this template.
|
||||
* @param {Boolean|IgniteProperty} value The value to set for the checked attribute.
|
||||
|
Loading…
x
Reference in New Issue
Block a user