Added prop shortcut to property.
This commit is contained in:
		| @@ -240,6 +240,18 @@ class IgniteTemplate { | |||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Sets a property on the element this template will construct. (Shorthand for property()) | ||||||
|  |      * @param {String} name Name of the property to set. | ||||||
|  |      * @param {Any|IgniteProperty} value Value of the property to use. If a Property is passed the value will auto update. | ||||||
|  |      * @param {Boolean} reflect If true whenever this property is changed it's value will be passed back to the Property that was passed as value if one was passed. | ||||||
|  |      * @param {Function} converter Optional function that can be used to convert the value if needed. | ||||||
|  |      * @returns This ignite template so function calls can be chained. | ||||||
|  |      */ | ||||||
|  |     prop(name, value, reflect = false, converter = null) { | ||||||
|  |         return this.property(name, value, reflect, converter); | ||||||
|  |     } | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Sets a property on the element this template will construct. |      * Sets a property on the element this template will construct. | ||||||
|      * @param {String} name Name of the property to set. |      * @param {String} name Name of the property to set. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user