
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
hyperdom-calendar
Advanced tools
A simple calender for Hyperdom
npm i hyperdom-calendar -S
Make sure you add calendar.min.css
to your styles.
var h = require('hyperdom').html
var calendar = require('hyperdom-calendar')
function render(model) {
model.contactCalendar = {}
return calendar(contactCalendar)
}
a Hyperdom model object is required for this component to work. The component will bind these properties to model.chosenObject
// returns todays date as date object
model.chosenObject.today
// returns selected date as date object , initially set to todays date
model.chosenObject.selected.date
// returns selected month as a digit
model.chosenObject.selected.month()
// returns next month from selected month as a digit
model.chosenObject.selected.nextMonth()
// returns prev month from selected month as a digit
model.chosenObject.selected.prevMonth()
// set day for current month current month, returns date object for that day
model.chosenObject.selected.setDay(day)
// returns month as a string
model.chosenObject.selected.monthString()
// returns day for selected date
model.chosenObject.selected.day()
// returns year for selected date
model.chosenObject.selected.year()
FAQs
calendar component for hyperdom js
We found that hyperdom-calendar demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.