rename method to toString()

This commit is contained in:
Niels Lyngsø
2024-10-08 08:25:50 +02:00
parent 2afcf96614
commit e71440b4c7
3 changed files with 4 additions and 5 deletions

View File

@@ -375,7 +375,7 @@ export abstract class UmbBlockEntryContext<
* @returns {string} - the value of the label.
*/
getLabel() {
return this.#labelRender.getAsText();
return this.#labelRender.toString();
}
#updateCreatePaths() {

View File

@@ -34,8 +34,7 @@ export class UmbUfmRenderElement extends UmbLitElement {
});
}
getAsText(): string {
console.log(this.shadowRoot);
override toString(): string {
return this.shadowRoot?.textContent ?? '';
}

View File

@@ -34,8 +34,8 @@ export class UmbUfmVirtualRenderController extends UmbControllerBase {
override hostConnected(): void {}
getAsText(): string {
return this.#element.getAsText();
override toString(): string {
return this.#element.toString();
}
override destroy(): void {