GithubHelp home page GithubHelp logo

richhtml's People

Contributors

albertovasquez avatar alpeb avatar jdboliva avatar mgrandy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mgrandy dsoundmn

richhtml's Issues

Update row data in grid

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);

attach .richgrid to actual jquery object

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(){});

when using a renderer, the value passed to the function has it's type altered

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)

grid doesn't allocate width to columns defined without a dataIndex

    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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.