예제
간트 일정
호출자가 소유한 일정 프로젝션에서 작업, 마일스톤, 기준 일정, 의존성을 표시합니다.
공개 계약
ResourceSchedule실행 미리 보기
실시간복사 가능한 소스
코드 예시
TSX
import { ResourceSchedule } from "@nexia/sdk/host";
export function ResourceScheduleExample() {
const project = {
app_key: "manufacturing",
resource_key: "work_order",
resource_id: "1042",
display: "WO-1042",
};
const operation = {
app_key: "manufacturing",
resource_key: "operation",
resource_id: "cutting",
display: "CNC cutting",
};
return (
<div className="h-[32rem]">
<ResourceSchedule
state="ready"
view="gantt"
fill
projection={{
schedule_key: "production-plan",
revision: "1",
items: [
{
resource: project,
type: "task",
date_semantics: "date_only",
start: "2026-08-17",
end: "2026-08-27",
duration: 10,
duration_unit: "day",
progress: 0.46,
version: "1",
allowed_actions: [],
},
{
resource: operation,
parent: project,
type: "task",
date_semantics: "date_only",
start: "2026-08-17",
end: "2026-08-20",
duration: 3,
duration_unit: "day",
progress: 0.8,
version: "1",
allowed_actions: [],
},
],
dependencies: [],
}}
onCreateResource={() => undefined}
onOpenResource={() => undefined}
/>
</div>
);
}