Added style support to pagination so you can apply styling to all elements under the pagination.
This commit is contained in:
		| @@ -2745,6 +2745,7 @@ class pagination extends IgniteTemplate { | |||||||
|         if (this.list) { |         if (this.list) { | ||||||
|             for (var i = 0; i < this.list.length; i++) { |             for (var i = 0; i < this.list.length; i++) { | ||||||
|                 var template = this.forEach(this.list[i]); |                 var template = this.forEach(this.list[i]); | ||||||
|  |  | ||||||
|                 template.construct(parent, this.element); |                 template.construct(parent, this.element); | ||||||
|  |  | ||||||
|                 var page = parseInt(i / this.pageSize); |                 var page = parseInt(i / this.pageSize); | ||||||
| @@ -2922,6 +2923,14 @@ class pagination extends IgniteTemplate { | |||||||
|  |  | ||||||
|         IgniteRendering.leave(); |         IgniteRendering.leave(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     onStyleChanged(name, newValue) { | ||||||
|  |         this.elements.forEach((element) => { | ||||||
|  |             element.style.setProperty(name, newValue, this._styles[name].priority); | ||||||
|  |         }); | ||||||
|  |  | ||||||
|  |         this._styles[name].value = newValue; | ||||||
|  |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| /** | /** | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user