Exposed loading spinner class via a property for the data table.
This commit is contained in:
@ -287,7 +287,8 @@ class DataTable extends IgniteElement {
|
|||||||
secondaryPageButtonClass: "btn text-center flex-grow-1 btn-secondary",
|
secondaryPageButtonClass: "btn text-center flex-grow-1 btn-secondary",
|
||||||
refresh: null,
|
refresh: null,
|
||||||
pendingFilter: null,
|
pendingFilter: null,
|
||||||
loading: false
|
loading: false,
|
||||||
|
loadingSpinnerClass: "spinner-border"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -385,7 +386,7 @@ class DataTable extends IgniteElement {
|
|||||||
|
|
||||||
//Loading spinner
|
//Loading spinner
|
||||||
new div().show(this.loading).class("d-flex justify-content-center mt-3").child(
|
new div().show(this.loading).class("d-flex justify-content-center mt-3").child(
|
||||||
new div().class("spinner-border")
|
new div().class(this.loadingSpinnerClass)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user