dialog: add title setter to API
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user