Added target attribute support. Ignite Object now supports setProperties. Added null check for props. Fixed some documentation wording.
This commit is contained in:
@ -841,7 +841,7 @@ class IgniteTemplate {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value attribute of the element to be constructed by this template.
|
||||
* Sets the src attribute of the element to be constructed by this template.
|
||||
* @param {String|IgniteProperty} value The value to set for the src attribute of the element to be constructed by this template.
|
||||
* @param {Function} converter An optional function that can convert the value if needed.
|
||||
* @returns This ignite template so function calls can be chained.
|
||||
@ -851,8 +851,8 @@ class IgniteTemplate {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value attribute of the element to be constructed by this template.
|
||||
* @param {String|IgniteProeprty} value The value to set for the href attribute of the element to be constructed by this template.
|
||||
* Sets the href attribute of the element to be constructed by this template.
|
||||
* @param {String|IgniteProperty} value The value to set for the href attribute of the element to be constructed by this template.
|
||||
* @param {Function} converter An optional function that can convert the value if needed.
|
||||
* @returns This ignite template so function calls can be chained.
|
||||
*/
|
||||
@ -860,6 +860,16 @@ class IgniteTemplate {
|
||||
return this.attribute("href", value, converter);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the target attribute of the element to be constructed by this template.
|
||||
* @param {String|IgniteProperty} value The value to set for the target attribute of the element to be constructed by this template.
|
||||
* @param {Function} converter An optional function that can convert the value if needed.
|
||||
* @returns This ignite template so function calls can be chained.
|
||||
*/
|
||||
target(value, converter = null) {
|
||||
return this.attribute("target", value, converter);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name attribute of the element to be constructed by this template.
|
||||
* @param {String|IgniteProperty} value The value to set for the name attribute of the element to be constructed by this template.
|
||||
|
Reference in New Issue
Block a user