
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@hexaflexa/timegrid-react
Advanced tools
This is the React wrapper for the HexaFlexa Timegrid web component (@hexaflexa/timegrid).
npm install --save @hexaflexa/timegrid-react
import { HfTimegrid, defineCustomElements } from '@hexaflexa/timegrid-react';
defineCustomElements();
import { HfTimegridConfig } from '@hexaflexa/timegrid';
const startDate: string = '2024-02-15';
const timegridConfig: TimegridConfig = {
daysConfig: {
daysCount: 3,
},
resources: [
{ id: '1', title: 'Resource 1' },
{ id: '2', title: 'Resource 2' },
],
events: [
{
id: '1',
resources: ['1'],
title: 'Event 1',
start: '2024-02-15 09:00',
end: '2024-02-15 10:00',
},
{
id: '2',
resources: ['2'],
title: 'Event 2',
start: '2024-02-15 10:00',
end: '2024-02-15 11:00',
},
],
};
function onStartDateChanged(event: any) {
console.log('onStartDateChanged', event);
}
function onEventNew(event: any) {
console.log('onEventNew', event);
const newEvent = event.detail;
newEvent.id = timegridConfig.events!.length * 100 + '';
newEvent.title = 'New Event ' + newEvent.id;
timegridConfig.events!.push(newEvent);
timegridConfig = { ...timegridConfig };
timegridRef.current!.config = timegridConfig;
}
let timegridRef: RefObject<HTMLHfTimegridElement> = React.createRef();
hf-timegrid {
display: block;
width: 100%;
height: 100%;
border: 2px solid #ddd;
border-radius: 10px;
}
hf-timegrid element anywhere in your template:<HfTimegrid startDate={startDate} config={timegridConfig}
onStartDateChanged={(event) => onStartDateChanged(event)}
onEventNew={(event) => onEventNew(event)}
ref={timegridRef}
/>
Demos and documentation can be found on the HexaFlexa Timegrid page.
API documentation for the hf-timegrid custom element can be found in the hf-timegrid documentation page.
Non-Commercial Use Only License
Free for Non-Commercial Use: Non-exclusive, worldwide, royalty-free license to use the Component for non-commercial purposes only.
Commercial Use Restricted: You may not use the Component for any commercial purposes without obtaining a separate commercial license.
© 2024-2026 HexaFlexa. All rights reserved.
FAQs
Timegrid web component for React made with đź’— by HexaFlexa!
We found that @hexaflexa/timegrid-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.