rename method to toString()
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -34,8 +34,7 @@ export class UmbUfmRenderElement extends UmbLitElement {
|
||||
});
|
||||
}
|
||||
|
||||
getAsText(): string {
|
||||
console.log(this.shadowRoot);
|
||||
override toString(): string {
|
||||
return this.shadowRoot?.textContent ?? '';
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user