0.12.1 • Published 10 years ago
ergo-js v0.12.1
Build
Install dependencies
npm installBuild project
gulpBower
Install as bower component
bower install ergo-jsQuick start
Подключаем сценарии ядра и виджетов
<script src="lib/ergojs-core.js" type="text/javascript"></script>
<script src="lib/ergojs-widgets-all.js" type="text/javascript"></script>Подключаем стили
<link href='lib/ergojs.css' rel='stylesheet' type='text/css'>Самый лучший момент для создания виджетов - после загрузки страницы, поэтому воспользуемся обработчиком события jQuery.ready
$(document).ready(function(){
// создаем простой виджет и добавляем его в <body/>
var w = $.ergo({
etype: 'box'
});
w.render('body');
});Release History
Release 12.1
- Migrated to jQuery 2 (no more IE8 support)
mixinsandpluginsreplaced byincludeevents.reg()andevents.unreg()renamed toevents.on()andevents.off()events.off()without arguments removes all event listeners- Option
selectorofselectablemixin renamed tolookup - Using ES5 getters and setters (get*/set* accessors are deprecated)
- Less support
- New layout option
autoClassadds component name as element class - Added
flexas standalone layout - Component shortcuts should be prefixed with
$(access to component likewidget.myComponentis deprecated) - New
autoRenderoption valuenon-emptyrenders only non-empty containers - Installing ergo-js as bower dependency
formatshortcut syntax extended to use predefinded formatters:'#{property|format}'or'#{*|format}'- Filtering and sorting became part of widget (
renderFilter/renderSorteranddynamicFilter/dynamicSorter) - New event shortcut syntax (
onClick: 'action:selectItem'calls methodactionwith argselectItem) - New
actionmethod rises specified event - Multikey datasource support:
dataId: ['a', 'b', 'c'] - New autoHeight mode
fitadjusts widget height to container if it lesser than container height - New static option
ascombinesclsandstatebehaviour
Road Map
- Focus management
- CSS animations
- Flex layout
- Mobile support
- Themes
- Performance optimization
and more new widgets :)
0.12.1
10 years ago