Сумрачное
настоящее
и
Светлое будущее
<x-grid></x-grid>
<element name="x-foo" constructor="XFoo">
<section>I'm an x-foo!</section>
<script>
this.register({
prototype: {
readyCallback: function() { /* some **/ }
}
});
</script>
<style>
section{ paddin:10px; }
</style>
</element>
<x-grid>
<x-column name="Year" sort="Number"></x-column>
</x-grid>
<dom-module id="contact-card">
<link rel="import" type="css" href="contact-card.css">
<template>
<content></content>
<iron-icon icon="star" hidden$="{{!starred}}">
</template>
<script>
Polymer({
is: 'contact-card',
properties: {
starred: Boolean
}
});
</script>
</dom-module>
<contact-card starred> Maksim Kozhukh </contact-card>
<x:datatable data="records">
<x:column id="year" sort="int">Year</x:column>
</x:datatable>
<script src="//cdn.webix.com/edge/webix.js"></script>
<link href="//cdn.webix.com/edge/webix.css"></link>
<script>
webix.ui({
view: "datatable",
data: records
})
</script>
webix.ui({
view:"layout",
rows:[
{ view:"toolbar", elements:some },
{ cols:[
{ view:"tree", width:250, data:categories },
{ view:"datatable",
autoConfig:true, data:records }
]},
{ template:"copyright", height:40 }
]
})
var top = view:"toolbar", elements:some };
var center = { cols:[
{ view:"tree", width:250, data:categories },
{ view:"datatable",
autoConfig:true, data:records }
]};
var bottom = { template:"copyright", height:40 };
webix.ui({
rows:[ top, center, bottom ]
});
webix.ui({
view:"list", id:"mylist",
on:{
onItemClick:function(id, ev){
this.remove(id);
}
}
});
$$("mylist").add({ some:"New" });
webix.protoUI({
name:"mytree",
myCoolMethod:function(){ alert(1); }
}, webix.ui.tree)
webix.ui({ view:"mytree" });
//or
<x:mytree data="tree_data"></x:mytree>
webix.ui({
view:"list",
url:"/contacts/all",
save:"rest->/contacts/"
});