dialog: add title setter to API

This commit is contained in:
Elijah Duffy
2025-07-22 11:16:56 -07:00
parent 1a111121a1
commit 04d88422e9

View File

@@ -23,6 +23,11 @@
unfreeze: () => void; unfreeze: () => void;
/** if the default controls are used, returns true if the dialog is frozen */ /** if the default controls are used, returns true if the dialog is frozen */
isFrozen: () => boolean; isFrozen: () => boolean;
/**
* title sets the dialog title. WARNING: Title is NOT bindable and
* changes made via this API will NOT propagate to consuming components.
*/
title: (title: string) => void;
} }
/** /**
@@ -107,7 +112,8 @@
isLoading: () => loading, isLoading: () => loading,
freeze: () => (frozen = true), freeze: () => (frozen = true),
unfreeze: () => (frozen = false), unfreeze: () => (frozen = false),
isFrozen: () => frozen isFrozen: () => frozen,
title: (newTitle) => (title = newTitle)
}; };
</script> </script>