Add more docs
This commit is contained in:
@@ -51,7 +51,6 @@ export interface Api extends LegacyModuleApiExtension, LegacyCustomisationsApiEx
|
|||||||
|
|
||||||
// @alpha
|
// @alpha
|
||||||
export interface BuiltinsApi {
|
export interface BuiltinsApi {
|
||||||
// (undocumented)
|
|
||||||
getRoomViewComponent(): React.ComponentType<RoomViewProps>;
|
getRoomViewComponent(): React.ComponentType<RoomViewProps>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -329,17 +328,11 @@ export type RuntimeModuleConstructor = new (api: ModuleApi) => RuntimeModule;
|
|||||||
|
|
||||||
// @alpha
|
// @alpha
|
||||||
export interface SpacePanelItemProps {
|
export interface SpacePanelItemProps {
|
||||||
// (undocumented)
|
|
||||||
className?: string;
|
className?: string;
|
||||||
// (undocumented)
|
|
||||||
contextMenuTooltip?: string;
|
contextMenuTooltip?: string;
|
||||||
// (undocumented)
|
|
||||||
icon?: JSX.Element;
|
icon?: JSX.Element;
|
||||||
// (undocumented)
|
|
||||||
label: string;
|
label: string;
|
||||||
// (undocumented)
|
|
||||||
onSelected?(): void;
|
onSelected?(): void;
|
||||||
// (undocumented)
|
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,5 +21,12 @@ export interface RoomViewProps {
|
|||||||
* @alpha
|
* @alpha
|
||||||
*/
|
*/
|
||||||
export interface BuiltinsApi {
|
export interface BuiltinsApi {
|
||||||
|
/**
|
||||||
|
* Returns the RoomView component used by Element Web to render a room such that
|
||||||
|
* modules can render it as part of their own custom room views.
|
||||||
|
*
|
||||||
|
* @alpha
|
||||||
|
* @returns The RoomView component.
|
||||||
|
*/
|
||||||
getRoomViewComponent(): React.ComponentType<RoomViewProps>;
|
getRoomViewComponent(): React.ComponentType<RoomViewProps>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,12 +12,34 @@ import { JSX } from "react";
|
|||||||
* @alpha
|
* @alpha
|
||||||
*/
|
*/
|
||||||
export interface SpacePanelItemProps {
|
export interface SpacePanelItemProps {
|
||||||
|
/**
|
||||||
|
* A CSS class name for the item
|
||||||
|
*/
|
||||||
className?: string;
|
className?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An icon to show in the item
|
||||||
|
*/
|
||||||
icon?: JSX.Element;
|
icon?: JSX.Element;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The label to show in the item
|
||||||
|
*/
|
||||||
label: string;
|
label: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A tooltip to show when hovering over the item
|
||||||
|
*/
|
||||||
contextMenuTooltip?: string;
|
contextMenuTooltip?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Styles to apply to the item
|
||||||
|
*/
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
//notificationState?: NotificationState;
|
|
||||||
|
/**
|
||||||
|
* Callback when the item is selected
|
||||||
|
*/
|
||||||
onSelected?(): void;
|
onSelected?(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user