0.12.1 • Published 9 years ago
ergo-js v0.12.1
Build
Install dependencies
npm install
Build project
gulp
Bower
Install as bower component
bower install ergo-js
Quick 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)
mixins
andplugins
replaced byinclude
events.reg()
andevents.unreg()
renamed toevents.on()
andevents.off()
events.off()
without arguments removes all event listeners- Option
selector
ofselectable
mixin renamed tolookup
- Using ES5 getters and setters (get*/set* accessors are deprecated)
- Less support
- New layout option
autoClass
adds component name as element class - Added
flex
as standalone layout - Component shortcuts should be prefixed with
$
(access to component likewidget.myComponent
is deprecated) - New
autoRender
option valuenon-empty
renders only non-empty containers - Installing ergo-js as bower dependency
format
shortcut syntax extended to use predefinded formatters:'#{property|format}'
or'#{*|format}'
- Filtering and sorting became part of widget (
renderFilter
/renderSorter
anddynamicFilter
/dynamicSorter
) - New event shortcut syntax (
onClick: 'action:selectItem'
calls methodaction
with argselectItem
) - New
action
method rises specified event - Multikey datasource support:
dataId: ['a', 'b', 'c']
- New autoHeight mode
fit
adjusts widget height to container if it lesser than container height - New static option
as
combinescls
andstate
behaviour
Road Map
- Focus management
- CSS animations
- Flex layout
- Mobile support
- Themes
- Performance optimization
and more new widgets :)
0.12.1
9 years ago