Socket
Book a DemoInstallSign in
Socket

ember-cli-input-helpers

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-input-helpers

Helper functions for binding HTML input elements to properties.

latest
Source
npmnpm
Version
1.2.3
Version published
Maintainers
1
Created
Source

ember-cli-input-helpers

Helper functions for binding HTML input elements to properties.

Install

ember install ember-cli-input-helpers

Features

  • Computed properties for transforming input strings to JavaScript objects
  • Works well with Ember.Data

Usage

Date

Use the date computed property to convert the date input string to/from a JavaScript Date object.

import { date as dateInput } from 'ember-cli-input-helpers/computed';

const Person = DS.Model ({
  // The birthday as a date type.
  birthday: DS.attr ('date'),
  
  // Property specifically for inputs.
  birthdayInput: dateInput ('birthday')
});

Then use the birthdayInput property in the {{input}} helper, and not birthday property.

{{input value=model.birthdayInput}}

Keywords

ember-addon

FAQs

Package last updated on 21 Jan 2023

Did you know?

Socket

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.

Install

Related posts