Files
rio/frontend/code/components/separatorListItem.ts
2024-04-03 19:23:29 +02:00

32 lines
827 B
TypeScript

import { ComponentBase, ComponentState } from './componentBase';
import { LayoutContext } from '../layouting';
export type SeparatorListItemState = ComponentState & {
_type_: 'SeparatorListItem-builtin';
};
export class SeparatorListItemComponent extends ComponentBase {
state: Required<SeparatorListItemState>;
createElement(): HTMLElement {
return document.createElement('div');
}
updateElement(
deltaState: SeparatorListItemState,
latentComponents: Set<ComponentBase>
): void {}
updateNaturalWidth(ctx: LayoutContext): void {
this.naturalWidth = 0;
}
updateAllocatedWidth(ctx: LayoutContext): void {}
updateNaturalHeight(ctx: LayoutContext): void {
this.naturalHeight = 1;
}
updateAllocatedHeight(ctx: LayoutContext): void {}
}