This addon it's the last member of the Ember Power Project family and itcombines ember-basic-dropdown and ember-power-calendarinto a single datepicker component that exposes the public APIs of both components as one.
As the components this one is born from, it aims to be flexible and customizable so you cantaylor your perfect datepicker. For that it extrictly follows DDAU approach and all itssubcomponents can be omitted or replaced by your own.
This addon is in active development so expect some churn.A changelog file will be maintained to surface what changed and when and ease updates.
ember install ember-power-datepicker
If you are using sass, you can import the styles in your app.scss
@import "ember-power-datepicker";
This component doesn't has any style of itself, so the only thing this import is doing isin turn importing the styles of ember-basic-dropdown and ember-power-calendar, sothis is just a convenience.If you already use and import the styles of those addons yourself, you don't have toimport these.
The API of the component will remind you the APIs of its both parents. It leveragescontextual components and most of the options you can pass to the original componentsare accepted by this addon.
Let's see a basic example:
The {{dp.trigger}}
and {{dp.content}}
come from ember-basic-dropdown.You can learn more about them here: https://www.ember-basic-dropdown.com/docs/how-to-use-it
The {{dp.nav}}
and dp.days
components along with the selected
and onSelect
propertiescome from ember-power-calendar.You can learm more about them it here: http://www.ember-power-calendar.com/docs/action-handling
The selected
and onSelect
are the only mandatory options. You can omit them, but ifyou do and you don't allow users to select a date, what do you want a datepicker for?
This addon is only tested back to Ember 2.8. It may or may not work in older versions.Javascript wise the addon should work back to IE10, but CSS wise the default styles useflexbox, so expect only IE11 support unless you roll out your own template using <table>
,which you can.
This addon also provides a convenientdatepickerSelect('selector', dateOrMoment)
test helper to interact with the component in tests.
Import this helpers in your tests like this:
import { datepickerSelect } from 'ember-power-datepicker/test-support';
Ember Power Calendar Customizable Calendar Component for Ember. Disclaimer Version 0.14 of this addon requires Ember 3.11 or greater.Versions below 0.14 would work with Ember 3.0+ (and perhaps 2.12+)
Ember-Power-Select Ember Power Select is a select component written in Ember with a focus in flexibility and extensibility. It is designed to work well with the way we build Ember apps, so it plays ni
ember-bootstrap-power-select Integrate Ember Power Select into your Ember Bootstrapforms. Compatibility Ember Power Select v4 or above Ember Bootstrap v4 or above Ember.js v3.16 or above Ember CLI v3.
Powerjson 是由 JSON 改进而成的数据交换格式,它将 JSON 支持了部分 JavaScript 语法,使其更加高效可用,并且解决了许多 JSON 历史遗留下来的问题。 它支持 单引号字符串, 多行字符串, 注释, 运算符, 导入文件, 导入其它 PJSON 文件 等。 Simple Demo { // 字符串 helloText: 'hello world', Mu
Power*Architect 是一个数据建模工具,主要用在数据仓库和数据集市的模型设计。 It allows the designer to open multiple concurrent source database connections, create and explore profiles of the source data, discover differences betwe
PowerPlot是一个iOS可视化类库,可以用于科学和商业领域的可视化图表绘制。可以绘制柱状图、折线图等等,是一个可以高度定制化的类库,满足开发者大部分可视化绘制需求。 [Code4App.com]