albertovasquez / richhtml Goto Github PK
View Code? Open in Web Editor NEWAttempt to write some robust replacements to extjs bloated grid and windows controls
Attempt to write some robust replacements to extjs bloated grid and windows controls
this would be nice so we can check jquery responses like we do everywhere else
Firefox / Chrome: http://gyazo.com/06e0c7a79c366af6674c5801ba17c39f
Safari Mac: [screenshot](https://s3.amazonaws.com/uploads.hipchat.com/6803/13705/tpw6jox2n82zdht/Screen shot 2013-02-05 at 15.28.59.png)
update dom / css to reflect new sprite
Add methods to update specific entry (row) of data with new data provided (json).
if given a new json object of data with an id, there should be a method to update the given row with the updated data. The method has a separate initial param for the ID of the row to update so that the provided json isn't required to have an id property.
example:
json object: var foo = { id: 5, name: 'John doe', address: '123 Somewhere' }
method:
richGrid.updateRow(foo.id, foo);
when initializing new richGrid, attach it to the jquery dom, so that an additional lookup does not have to be provided when attaching binds.
current:
var foo = new richGrid({});
$(foo).on('rowselect', function(){});
should be
var foo = new richGrid({});
foo.on('rowselect', function(){});
and update title of richwindow accordingly when shown.
if title not supplied, fall back on one supplied when initializing
given the following example json return
JSONresults = [{foo: true}]
the value of foo is equal to the boolean true
new RichHTML.grid({
columns: [{
id: 'foo',
dataIndex: 'foo',
renderer: function(item) {
return item == true ? 'Yes' : 'No';
}
}]
});
when rendering, it will always return "No", as by the time the render function interprets the value, it has had it's type changed. within the render function, item = "true" (typeof string, not typeof boolean, which it should be)
columns: [
{
id: 'nextDate',
dataIndex: 'nextdate',
text: lang('Next Date'),
sortable: true,
align: 'center'
},
{
text: lang('Taxable'),
sortable: true,
align: 'center',
renderer: recurringCharges.renderer.taxable
},
]
will result in the following dom
<thead>
<tr>
<th class="sortable" nowrap="nowrap" style="width: 100%;" dataindex="nextdate" colspan="1" rowspan="1">Next Date</th>
<th class="sortable" nowrap="nowrap" style="width:;" dataindex="" colspan="1" rowspan="1"
</tr>
</thead>
Title is plain enough
when defining a "groupBy" property, richHTML should be able to take a renderer to display the group's html within the table, instead of relying on the entire markup coming in via JSON.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.