Added target attribute support. Ignite Object now supports setProperties. Added null check for props. Fixed some documentation wording.

This commit is contained in:
2021-09-22 09:43:18 -07:00
parent 46ff7743a1
commit 31503e62d1
3 changed files with 39 additions and 4 deletions

View File

@ -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.