extjs - Display date and time of record with grid cell data -


i using single-cell grid show notifications in application. how show date , time of notification each cell data? data present in model of associated store. want phabricator https://secure.phabricator.com/

any pointers how may so?

one way accomplish use templatecolumn. can specify tpl in config of html representing 2 sources of data.

here fiddle created demonstrating , simple , more complex tpl resembles data on site referenced.

here simple example of template column:

                {                     xtype: 'templatecolumn',                     header:'name',                     tpl:'{first_name} {last_name}'                 } 

and more complex template column similar style 1 referenced:

                {                     xtype: 'templatecolumn',                     header: 'example date',                     flex: 1,                     tpl:'<span style="display:inline-table;width:50%;">{first_name}</span><span style="width: 50%;display: inline-table;text-align: right;">{mydate}</span>'                 } 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -